OSDN Git Service

ARM: mach-imx: imx6ul: Print SOC revision on boot
authorStefan Riedmueller <s.riedmueller@phytec.de>
Wed, 9 Dec 2020 17:20:23 +0000 (18:20 +0100)
committerShawn Guo <shawnguo@kernel.org>
Thu, 7 Jan 2021 03:25:18 +0000 (11:25 +0800)
Add the print of the CPU type and SOC revision during boot.

Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
Signed-off-by: Robert Karszniewicz <r.karszniewicz@phytec.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/mach-imx6ul.c

index eabcd35..35e8120 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "common.h"
 #include "cpuidle.h"
+#include "hardware.h"
 
 static void __init imx6ul_enet_clk_init(void)
 {
@@ -34,6 +35,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();