mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-24 02:48:51 +09:00
powerpc/85xx: Move INIT_RAM_ADDR physical address to 36-bit space
If 36-bit physical address is used, move the INIT_RAM_ADDR to higher address. This frees the low 4GB address space for better use. Signed-off-by: York Sun <yorksun@freescale.com>
This commit is contained in:
parent
ebd7cb0ba9
commit
a3f18529ec
@ -330,8 +330,18 @@ _start_e500:
|
|||||||
lis r8,FSL_BOOKE_MAS2(CONFIG_SYS_INIT_RAM_ADDR, 0)@h
|
lis r8,FSL_BOOKE_MAS2(CONFIG_SYS_INIT_RAM_ADDR, 0)@h
|
||||||
ori r8,r8,FSL_BOOKE_MAS2(CONFIG_SYS_INIT_RAM_ADDR, 0)@l
|
ori r8,r8,FSL_BOOKE_MAS2(CONFIG_SYS_INIT_RAM_ADDR, 0)@l
|
||||||
|
|
||||||
|
#if defined(CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW) && \
|
||||||
|
defined(CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH)
|
||||||
|
lis r9,FSL_BOOKE_MAS3(CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW, 0,
|
||||||
|
(MAS3_SX|MAS3_SW|MAS3_SR))@h
|
||||||
|
ori r9,r9,FSL_BOOKE_MAS3(CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW, 0,
|
||||||
|
(MAS3_SX|MAS3_SW|MAS3_SR))@l
|
||||||
|
li r10,CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH
|
||||||
|
mtspr MAS7,r10
|
||||||
|
#else
|
||||||
lis r9,FSL_BOOKE_MAS3(CONFIG_SYS_INIT_RAM_ADDR, 0, (MAS3_SX|MAS3_SW|MAS3_SR))@h
|
lis r9,FSL_BOOKE_MAS3(CONFIG_SYS_INIT_RAM_ADDR, 0, (MAS3_SX|MAS3_SW|MAS3_SR))@h
|
||||||
ori r9,r9,FSL_BOOKE_MAS3(CONFIG_SYS_INIT_RAM_ADDR, 0, (MAS3_SX|MAS3_SW|MAS3_SR))@l
|
ori r9,r9,FSL_BOOKE_MAS3(CONFIG_SYS_INIT_RAM_ADDR, 0, (MAS3_SX|MAS3_SW|MAS3_SR))@l
|
||||||
|
#endif
|
||||||
|
|
||||||
mtspr MAS0,r6
|
mtspr MAS0,r6
|
||||||
mtspr MAS1,r7
|
mtspr MAS1,r7
|
||||||
|
Loading…
Reference in New Issue
Block a user