linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: mach-imx: imx6ul: Print SOC revision on boot and set system_rev
@ 2020-11-23 17:08 Robert Karszniewicz
  2020-11-23 17:08 ` [PATCH 2/2] ARM: mach-imx: imx6q: Set system_rev to show soc revision Robert Karszniewicz
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Robert Karszniewicz @ 2020-11-23 17:08 UTC (permalink / raw)
  To: Shawn Guo, Sascha Hauer, linux-arm-kernel
  Cc: Peng Fan, Stefan Riedmueller, Anson Huang, Russell King,
	NXP Linux Team, Pengutronix Kernel Team, Fabio Estevam

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

Add the print of the CPU type and SOC revision during boot and also set
the system_rev variable to the SOC revision so the correct SOC revision
will be shown in /proc/cpuinfo.

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 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c
index e018e716735f..9c92cc72b857 100644
--- a/arch/arm/mach-imx/mach-imx6ul.c
+++ b/arch/arm/mach-imx/mach-imx6ul.c
@@ -11,9 +11,11 @@
 #include <linux/regmap.h>
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
+#include <asm/system_info.h>
 
 #include "common.h"
 #include "cpuidle.h"
+#include "hardware.h"
 
 static void __init imx6ul_enet_clk_init(void)
 {
@@ -55,6 +57,10 @@ static inline void imx6ul_enet_init(void)
 
 static void __init imx6ul_init_machine(void)
 {
+	system_rev = imx_get_soc_revision();
+	imx_print_silicon_rev(cpu_is_imx6ull() ? "i.MX6ULL" : "i.MX6UL",
+		system_rev);
+
 	of_platform_default_populate(NULL, NULL, NULL);
 	imx6ul_enet_init();
 	imx_anatop_init();
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-05 10:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-23 17:08 [PATCH 1/2] ARM: mach-imx: imx6ul: Print SOC revision on boot and set system_rev Robert Karszniewicz
2020-11-23 17:08 ` [PATCH 2/2] ARM: mach-imx: imx6q: Set system_rev to show soc revision Robert Karszniewicz
2020-12-04 14:15 ` [PATCH 1/2] ARM: mach-imx: imx6ul: Print SOC revision on boot and set system_rev Robert Karszniewicz
2021-01-05  1:31 ` Shawn Guo
2021-01-05 10:04   ` Robert Karszniewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).