diff mbox series

ARM: mach-imx: imx6ul: Print SOC revision on boot

Message ID 1607534423-158503-1-git-send-email-r.karszniewicz@phytec.de (mailing list archive)
State New, archived
Headers show
Series ARM: mach-imx: imx6ul: Print SOC revision on boot | expand

Commit Message

Robert Karszniewicz Dec. 9, 2020, 5:20 p.m. UTC
From: Stefan Riedmueller <s.riedmueller@phytec.de>

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>
---
 arch/arm/mach-imx/mach-imx6ul.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Shawn Guo Jan. 7, 2021, 3:25 a.m. UTC | #1
On Wed, Dec 09, 2020 at 06:20:23PM +0100, Robert Karszniewicz wrote:
> From: Stefan Riedmueller <s.riedmueller@phytec.de>
> 
> 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>

Applied, thanks.
diff mbox series

Patch

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();