[PATCH] ARM: mach-imx: imx6ul: Print SOC revision on boot

Robert Karszniewicz r.karszniewicz at phytec.de
Wed Dec 9 12:20:23 EST 2020


From: Stefan Riedmueller <s.riedmueller at phytec.de>

Add the print of the CPU type and SOC revision during boot.

Signed-off-by: Stefan Riedmueller <s.riedmueller at phytec.de>
Signed-off-by: Robert Karszniewicz <r.karszniewicz at phytec.de>
---
 arch/arm/mach-imx/mach-imx6ul.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c
index e018e716735f..fb6d164a49f4 100644
--- a/arch/arm/mach-imx/mach-imx6ul.c
+++ b/arch/arm/mach-imx/mach-imx6ul.c
@@ -14,6 +14,7 @@
 
 #include "common.h"
 #include "cpuidle.h"
+#include "hardware.h"
 
 static void __init imx6ul_enet_clk_init(void)
 {
@@ -55,6 +56,9 @@ static inline void imx6ul_enet_init(void)
 
 static void __init imx6ul_init_machine(void)
 {
+	imx_print_silicon_rev(cpu_is_imx6ull() ? "i.MX6ULL" : "i.MX6UL",
+		imx_get_soc_revision());
+
 	of_platform_default_populate(NULL, NULL, NULL);
 	imx6ul_enet_init();
 	imx_anatop_init();
-- 
2.7.4




More information about the linux-arm-kernel mailing list