]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
fsl-lsch3: Introduce place for common early SoC init
authorScott Wood <scottwood@freescale.com>
Sat, 21 Mar 2015 02:28:12 +0000 (19:28 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:31:09 +0000 (22:31 +0200)
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: York Sun <yorksun@freescale.com>
arch/arm/cpu/armv8/fsl-lsch3/Makefile
arch/arm/cpu/armv8/fsl-lsch3/soc.c [new file with mode: 0644]
arch/arm/include/asm/arch-fsl-lsch3/soc.h [new file with mode: 0644]
board/freescale/ls2085a/ls2085a.c

index f920eebc56b8eddb77c3bf8fb0c9b4b07a7cfdd2..65425904c18dd7e61807fbc5aac9531d73ee4f30 100644 (file)
@@ -6,6 +6,7 @@
 
 obj-y += cpu.o
 obj-y += lowlevel.o
+obj-y += soc.o
 obj-y += speed.o
 obj-$(CONFIG_MP) += mp.o
 obj-$(CONFIG_OF_LIBFDT) += fdt.o
diff --git a/arch/arm/cpu/armv8/fsl-lsch3/soc.c b/arch/arm/cpu/armv8/fsl-lsch3/soc.c
new file mode 100644 (file)
index 0000000..242a865
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * Copyright 2015 Freescale Semiconductor
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+#include <common.h>
+#include <fsl_ifc.h>
+#include <asm/arch-fsl-lsch3/soc.h>
+
+void fsl_lsch3_early_init_f(void)
+{
+       init_early_memctl_regs();       /* tighten IFC timing */
+}
diff --git a/arch/arm/include/asm/arch-fsl-lsch3/soc.h b/arch/arm/include/asm/arch-fsl-lsch3/soc.h
new file mode 100644 (file)
index 0000000..16b723d
--- /dev/null
@@ -0,0 +1,8 @@
+/*
+ * Copyright 2015 Freescale Semiconductor
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+void fsl_lsch3_early_init_f(void);
+
index 19f5a7b92ea4a846ef338e21810126f0556f31f2..dd0acf23b23a9d42138a71d266a5ad4a9e44b169 100644 (file)
@@ -15,6 +15,7 @@
 #include <fsl_debug_server.h>
 #include <fsl-mc/fsl_mc.h>
 #include <environment.h>
+#include <asm/arch-fsl-lsch3/soc.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -31,8 +32,7 @@ int board_init(void)
 
 int board_early_init_f(void)
 {
-       init_early_memctl_regs();       /* tighten IFC timing */
-
+       fsl_lsch3_early_init_f();
        return 0;
 }