Skip to content

Commit b8a06b1

Browse files
martin-kaiserabelvesa
authored andcommitted
clk: imx25: print silicon revision during init
Print the imx25 silicon revision when the clocks are initialised. Use the same mechanism as for imx27, i.e. call mx25_revision. This function is unused at the moment. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Reviewed-by: Fabio Estevam <festevam@gmail.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Stephen Boyd <sboyd@kernel.org> Link: https://lore.kernel.org/r/20230802184046.153394-2-martin@kaiser.cx Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
1 parent 35ec2ab commit b8a06b1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/clk/imx/clk-imx25.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/of.h>
1414
#include <linux/of_address.h>
1515
#include <linux/of_irq.h>
16+
#include <soc/imx/revision.h>
1617

1718
#include "clk.h"
1819

@@ -220,6 +221,8 @@ static int __init __mx25_clocks_init(void __iomem *ccm_base)
220221

221222
imx_register_uart_clocks();
222223

224+
imx_print_silicon_rev("i.MX25", mx25_revision());
225+
223226
return 0;
224227
}
225228

include/soc/imx/revision.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#define IMX_CHIP_REVISION_3_3 0x33
2323
#define IMX_CHIP_REVISION_UNKNOWN 0xff
2424

25+
int mx25_revision(void);
2526
int mx27_revision(void);
2627
int mx31_revision(void);
2728
int mx35_revision(void);

0 commit comments

Comments
 (0)