diff options
author | york <yorksun@freescale.com> | 2010-07-02 22:26:03 +0000 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2010-07-26 13:07:53 -0500 |
commit | d51cc7a0cd1b9763a3250d44a07032f9b1bc96ae (patch) | |
tree | fa15276730927ad88fab76027743c3dcc5ff21f6 /include/configs | |
parent | a3f18529ec9cd291f040f6a9c6e9ecf0f7cb721f (diff) | |
download | u-boot-imx-d51cc7a0cd1b9763a3250d44a07032f9b1bc96ae.zip u-boot-imx-d51cc7a0cd1b9763a3250d44a07032f9b1bc96ae.tar.gz u-boot-imx-d51cc7a0cd1b9763a3250d44a07032f9b1bc96ae.tar.bz2 |
powerpc/p2020: Move INIT_RAM_ADDR physical address higher for 36-bit for P2020DS
If 36-bit is enabled, move INIT_RAM_ADDR physical address higher
to free lowest 4GB address space.
Signed-off-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/P2020DS.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/P2020DS.h b/include/configs/P2020DS.h index bf2acbf..a1ecf05 100644 --- a/include/configs/P2020DS.h +++ b/include/configs/P2020DS.h @@ -249,6 +249,18 @@ #define CONFIG_SYS_INIT_RAM_LOCK 1 #define CONFIG_SYS_INIT_RAM_ADDR 0xffd00000 /* Initial L1 address */ +#ifdef CONFIG_PHYS_64BIT +#define CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH 0xf +#define CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW CONFIG_SYS_INIT_RAM_ADDR +/* The assembler doesn't like typecast */ +#define CONFIG_SYS_INIT_RAM_ADDR_PHYS \ + ((CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH * 1ull << 32) | \ + CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW) +#else +#define CONFIG_SYS_INIT_RAM_ADDR_PHYS CONFIG_SYS_INIT_RAM_ADDR /* Initial L1 address */ +#define CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH 0 +#define CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW CONFIG_SYS_INIT_RAM_ADDR_PHYS +#endif #define CONFIG_SYS_INIT_RAM_END 0x00004000 /* End of used area in RAM */ #define CONFIG_SYS_GBL_DATA_SIZE 128 /* num bytes initial data */ |