mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +02:00
xilinx: zynqmp: get chip ID at EL3
Modify the board init function to allow getting the chip ID when U-Boot proper is executed at EL3. Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
committed by
Michal Simek
parent
21c2fc7c6a
commit
4b2ad7b111
@@ -362,12 +362,10 @@ int board_init(void)
|
|||||||
#if defined(CONFIG_FPGA) && defined(CONFIG_FPGA_ZYNQMPPL) && \
|
#if defined(CONFIG_FPGA) && defined(CONFIG_FPGA_ZYNQMPPL) && \
|
||||||
!defined(CONFIG_SPL_BUILD) || (defined(CONFIG_SPL_FPGA_SUPPORT) && \
|
!defined(CONFIG_SPL_BUILD) || (defined(CONFIG_SPL_FPGA_SUPPORT) && \
|
||||||
defined(CONFIG_SPL_BUILD))
|
defined(CONFIG_SPL_BUILD))
|
||||||
if (current_el() != 3) {
|
|
||||||
zynqmppl.name = zynqmp_get_silicon_idcode_name();
|
zynqmppl.name = zynqmp_get_silicon_idcode_name();
|
||||||
printf("Chip ID:\t%s\n", zynqmppl.name);
|
printf("Chip ID:\t%s\n", zynqmppl.name);
|
||||||
fpga_init();
|
fpga_init();
|
||||||
fpga_add(fpga_xilinx, &zynqmppl);
|
fpga_add(fpga_xilinx, &zynqmppl);
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (current_el() == 3)
|
if (current_el() == 3)
|
||||||
|
Reference in New Issue
Block a user