| From f7975d4974b4843db8f2f8ba93667e88dd20671d Mon Sep 17 00:00:00 2001 |
| From: Magnus Damm <damm@opensource.se> |
| Date: Wed, 5 Jun 2013 16:55:31 +0900 |
| Subject: ARM: shmobile: Remove romImage CONFIG_MEMORY_START |
| |
| 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> |
| (cherry picked from commit 4f309d272f7139278f52cf1e2dcf5b2bc8c029d9) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| arch/arm/boot/compressed/head-shmobile.S | 2 +- |
| arch/arm/mach-shmobile/include/mach/zboot.h | 2 ++ |
| 2 files changed, 3 insertions(+), 1 deletion(-) |
| |
| diff --git a/arch/arm/boot/compressed/head-shmobile.S b/arch/arm/boot/compressed/head-shmobile.S |
| index 19b23044..e2d63633 100644 |
| --- a/arch/arm/boot/compressed/head-shmobile.S |
| +++ b/arch/arm/boot/compressed/head-shmobile.S |
| @@ -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 |
| diff --git a/arch/arm/mach-shmobile/include/mach/zboot.h b/arch/arm/mach-shmobile/include/mach/zboot.h |
| index 9320aff0..308b5cfd 100644 |
| --- a/arch/arm/mach-shmobile/include/mach/zboot.h |
| +++ b/arch/arm/mach-shmobile/include/mach/zboot.h |
| @@ -12,9 +12,11 @@ |
| |
| #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." |
| -- |
| 1.8.4.3.gca3854a |
| |