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>
1 parent 5d2d55e commit 9398e9ef1e4d0aebf60b618508c746b0cb6cafb9
@Lucas Stach Lucas Stach authored on 10 Dec 2019
Sascha Hauer committed on 11 Dec 2019
Showing 1 changed file
View
arch/arm/boards/avnet-zedboard/lowlevel.c