arm-trusted-firmware/plat/rpi/rpi4
Andre Przywara 5d2793a61a fix(rpi4): drop /memreserve/ region
Most DTBs used on the RaspberryPi contain a FDT /memreserve/ region,
that covers the original secondaries' spin table.
We need to reserve more memory than described there, to cover the whole
of the TF-A image, so we add a /reserved-memory node to the DTB.

However having the same memory region described by both methods upsets
the Linux kernel and U-Boot, so we have to make sure there is only one
instance describing this reserved memory.

Keep our currently used /reserved-memory node, since it's more capable
(it allows to mark the region as secure memory). Add some code to drop
the original /memreserve/ region, since we don't need this anymore,
because we take the secondaries out of their original spin loop.

We explicitly check for the currently used size of 4KB for this region,
to be alerted by any changes to this region in the upstream DTB.

Change-Id: Ia3105560deb3f939e026f6ed715a9bbe68b56230
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2021-08-16 17:29:59 +01:00
..
aarch64 rpi: move plat_helpers.S to common 2020-04-01 15:56:26 +01:00
include rpi4: update the iobase constant 2021-05-25 14:49:19 +02:00
platform.mk rpi4: enable RPi4 PCI SMC conduit 2021-07-28 09:41:05 +02:00
rpi4_bl31_setup.c fix(rpi4): drop /memreserve/ region 2021-08-16 17:29:59 +01:00
rpi4_pci_svc.c rpi4: SMCCC PCI implementation 2021-07-28 09:41:55 +02:00