u-boot/board/xilinx
Padmarao Begari 27d7d3cf43 board: xilinx: Store board info data in data section
Line 171 in README is describing that before relocation no code
should use global variable because global variables are placed
to BSS section which is initialized to 0 after relocation.

In the case of ZynqMP, where DTB reselection is enabled, the EEPROM
is read again after relocation. This prevents the issue from being
observed. However, in Versal Gen 2, where DTB reselection is also
enabled, the EEPROM is not read after relocation because it is not
yet wired in board_init(). This leads to a situation where the code
accesses an incorrect memory location, because none is really
checking the board_info is valid or not. To fix, move the board_info
into the data section and also check whether it is valid or not.

Signed-off-by: Padmarao Begari <padmarao.begari@amd.com>
Link: https://lore.kernel.org/r/20250409162553.588285-1-padmarao.begari@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
2025-04-16 15:39:48 +02:00
..
bootscripts xilinx: Add sd boot command script for reference 2019-10-08 09:11:13 +02:00
common board: xilinx: Store board info data in data section 2025-04-16 15:39:48 +02:00
mbv riscv: mbv: Align DT with QEMU 2024-10-29 18:11:49 +08:00
microblaze-generic xilinx: common: fix script address for Microblaze 2024-10-25 14:10:31 +02:00
versal xilinx: Free memory when variable is saved in boot_targets_setup() 2025-04-16 13:44:44 +02:00
versal-net arm64: versal-net: Add PL bit stream load support 2025-04-16 13:44:44 +02:00
zynq xilinx: zynq: fix dfu alt buffer clearing 2025-04-16 13:42:06 +02:00
zynqmp arm64: zynqmp: Start usb automatically via preboot on Kria 2025-04-16 13:44:44 +02:00
zynqmp_r5 Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
Kconfig xilinx: Introduce XILINX_MINI configuration 2024-11-19 15:57:56 +01:00