summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ep93xx/include
diff options
context:
space:
mode:
authorRyan Mallon <ryan@bluewatersys.com>2009-05-21 22:11:52 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-05-24 19:21:32 +0100
commit6cb38c5f5d7dda38466389082d0d965188c41b81 (patch)
tree312eee0346a5ae0ba964e67ac57152e568da021e /arch/arm/mach-ep93xx/include
parenta2bd40d215b0997e21a0cfd06c1aa474ec3a0944 (diff)
downloadblackbird-op-linux-6cb38c5f5d7dda38466389082d0d965188c41b81.tar.gz
blackbird-op-linux-6cb38c5f5d7dda38466389082d0d965188c41b81.zip
[ARM] 5523/1: ep93xx phys offset selection
This patch adds a Kconfig option to select between ep93xx boards which boot from the SDRAM bank at 0x00000000 (SDCE3/SyncBoot) and those which boot from 0xc0000000 (SDCE0). This corrects a problem which causes invalid images to be built for boards which boot from 0xc0000000. Signed-off-by: Ryan Mallon <ryan@bluewatersys.com> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ep93xx/include')
-rw-r--r--arch/arm/mach-ep93xx/include/mach/memory.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-ep93xx/include/mach/memory.h b/arch/arm/mach-ep93xx/include/mach/memory.h
index 5c80c3c8158d..925b12ea0990 100644
--- a/arch/arm/mach-ep93xx/include/mach/memory.h
+++ b/arch/arm/mach-ep93xx/include/mach/memory.h
@@ -5,6 +5,12 @@
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
+#if defined(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET)
#define PHYS_OFFSET UL(0x00000000)
+#elif defined(CONFIG_EP93XX_SDCE0_PHYS_OFFSET)
+#define PHYS_OFFSET UL(0xc0000000)
+#else
+#error "Kconfig bug: No EP93xx PHYS_OFFSET set"
+#endif
#endif
OpenPOWER on IntegriCloud