]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: mvebu: Use default reg base address for SPL on A38x
authorStefan Roese <sr@denx.de>
Fri, 17 Apr 2015 16:12:41 +0000 (18:12 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:49:02 +0000 (13:49 +0200)
On A38x switching the regs base address without running from
SDRAM doesn't seem to work. So let the SPL still use the
default base address and switch to the new address in the
mail u-boot later.

Signed-off-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/include/mach/soc.h

index 619bc7efd1880ffccc4a1d29dba3db34e6551438..125b5f278d695bc136a512a79352670b3b4d3657 100644 (file)
 /* SOC specific definations */
 #define INTREG_BASE            0xd0000000
 #define INTREG_BASE_ADDR_REG   (INTREG_BASE + 0x20080)
+#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SYS_MVEBU_DDR_A38X)
+/*
+ * On A38x switching the regs base address without running from
+ * SDRAM doesn't seem to work. So let the SPL still use the
+ * default base address and switch to the new address in the
+ * main u-boot later.
+ */
+#define SOC_REGS_PHY_BASE      0xd0000000
+#else
 #define SOC_REGS_PHY_BASE      0xf1000000
+#endif
 #define MVEBU_REGISTER(x)      (SOC_REGS_PHY_BASE + x)
 
 #define MVEBU_SDRAM_SCRATCH    (MVEBU_REGISTER(0x01504))