aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/mach-imx50.c
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2021-04-24 18:21:27 +0200
committerShawn Guo <shawnguo@kernel.org>2021-05-13 15:42:21 +0800
commit22b5059b95e4d3b50bdd3e262182864a5ad7ec12 (patch)
tree33897fa448d77ef89a1cc2b4ebd3e206a43f449f /arch/arm/mach-imx/mach-imx50.c
parentARM: imx: pm-imx5: Fix references to imx5_cpu_suspend_info (diff)
downloadlinux-dev-22b5059b95e4d3b50bdd3e262182864a5ad7ec12.tar.xz
linux-dev-22b5059b95e4d3b50bdd3e262182864a5ad7ec12.zip
ARM: imx: Initialize SoC ID on i.MX50
As on i.MX51 and i.MX53, initialize the SoC ID based on the SoC compatible string of the board. Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-imx50.c')
-rw-r--r--arch/arm/mach-imx/mach-imx50.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mach-imx50.c b/arch/arm/mach-imx/mach-imx50.c
index f4da205f57db..a2d35f9ba474 100644
--- a/arch/arm/mach-imx/mach-imx50.c
+++ b/arch/arm/mach-imx/mach-imx50.c
@@ -9,6 +9,12 @@
#include <asm/mach/arch.h>
#include "common.h"
+#include "hardware.h"
+
+static void __init imx50_init_early(void)
+{
+ mxc_set_cpu_type(MXC_CPU_MX50);
+}
static const char * const imx50_dt_board_compat[] __initconst = {
"fsl,imx50",
@@ -16,5 +22,6 @@ static const char * const imx50_dt_board_compat[] __initconst = {
};
DT_MACHINE_START(IMX50_DT, "Freescale i.MX50 (Device Tree Support)")
+ .init_early = imx50_init_early,
.dt_compat = imx50_dt_board_compat,
MACHINE_END