diff options
author | Lucas Stach <dev@lynxeye.de> | 2019-12-10 23:03:20 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-12-11 09:51:23 +0100 |
commit | 9398e9ef1e4d0aebf60b618508c746b0cb6cafb9 (patch) | |
tree | e6029182218865f948ae11610877819537438ab8 /common | |
parent | 5d2d55ebd6add4ea395022772c5736e67ba68e33 (diff) | |
download | barebox-9398e9ef1e4d0aebf60b618508c746b0cb6cafb9.tar.gz barebox-9398e9ef1e4d0aebf60b618508c746b0cb6cafb9.tar.xz |
ARM: zynq: zedboard: allow lowlevel init to be called as second stage
If the code is already executing in DRAM, the PS7 init must not be
executed, as it initializes the DRAM controller.
As the OCM can be configured to an address which aliases with the DRAM
address space we can't reliably infer if we are running from OCM or
DRAM from the execution address. So instead of using the address, look
at the OCM mapping, as the BootROM leaves a quite unique mapping behind
with 192KB OCM mapped at the low address and 64KB mapped to the high
address.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions