Skip to content

Commit

Permalink
clk: imx25: print silicon revision during init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
martin-kaiser authored and abelvesa committed Aug 14, 2023
1 parent 35ec2ab commit b8a06b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/clk/imx/clk-imx25.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <soc/imx/revision.h>

#include "clk.h"

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

imx_register_uart_clocks();

imx_print_silicon_rev("i.MX25", mx25_revision());

return 0;
}

Expand Down
1 change: 1 addition & 0 deletions include/soc/imx/revision.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define IMX_CHIP_REVISION_3_3 0x33
#define IMX_CHIP_REVISION_UNKNOWN 0xff

int mx25_revision(void);
int mx27_revision(void);
int mx31_revision(void);
int mx35_revision(void);
Expand Down

0 comments on commit b8a06b1

Please sign in to comment.