ARM: shmobile: Remove romImage CONFIG_MEMORY_START
authorMagnus Damm <damm@opensource.se>
Wed, 5 Jun 2013 07:55:31 +0000 (16:55 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 12 Jun 2013 11:49:57 +0000 (20:49 +0900)
Instead of relying on CONFIG_MEMORY_START for memory
base address, let each romImage board header file
specify this information.

This is reworks code not to rely on CONFIG_MEMORY_START
which in turn is needed for ARCH_MULTIPLATFORM.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/compressed/head-shmobile.S
arch/arm/mach-shmobile/include/mach/zboot.h

index 19b2304436fa644a77969df87fe5faaeb8422dc9..e2d636336b7c783634747a6433e57eebc56b6d6c 100644 (file)
@@ -46,7 +46,7 @@ __image_start:
 __image_end:
        .long   _got_end
 __load_base:
-       .long   CONFIG_MEMORY_START + 0x02000000 @ Load at 32Mb into SDRAM
+       .long   MEMORY_START + 0x02000000 @ Load at 32Mb into SDRAM
 __loaded:
        .long   __continue
        .align
index 9320aff0a20f7521518291a101e6ff5710424ce8..308b5cfd1c16d3948d88b34ade787954913adcb0 100644 (file)
 
 #ifdef CONFIG_MACH_AP4EVB
 #define MACH_TYPE      MACH_TYPE_AP4EVB
+#define MEMORY_START   0x40000000
 #include "mach/head-ap4evb.txt"
 #elif defined(CONFIG_MACH_MACKEREL)
 #define MACH_TYPE      MACH_TYPE_MACKEREL
+#define MEMORY_START   0x40000000
 #include "mach/head-mackerel.txt"
 #else
 #error "unsupported board."