diff options
author | Ibai Erkiaga <ibai.erkiaga-elorza@xilinx.com> | 2020-08-05 01:17:29 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2020-08-20 10:49:20 +0300 |
commit | 4b2ad7b1111fe05e7e0b68922048210a5dfd04b0 (patch) | |
tree | 8bbd3b94d9a85c795f34005fb37863cefc833651 | |
parent | 21c2fc7c6a685aa2c1f95d3d23dd7494b5c2dd43 (diff) | |
download | u-boot-4b2ad7b1111fe05e7e0b68922048210a5dfd04b0.tar.xz |
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>
-rw-r--r-- | board/xilinx/zynqmp/zynqmp.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index cf5febc4c4..2b95a61dd0 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -362,12 +362,10 @@ int board_init(void) #if defined(CONFIG_FPGA) && defined(CONFIG_FPGA_ZYNQMPPL) && \ !defined(CONFIG_SPL_BUILD) || (defined(CONFIG_SPL_FPGA_SUPPORT) && \ defined(CONFIG_SPL_BUILD)) - if (current_el() != 3) { - zynqmppl.name = zynqmp_get_silicon_idcode_name(); - printf("Chip ID:\t%s\n", zynqmppl.name); - fpga_init(); - fpga_add(fpga_xilinx, &zynqmppl); - } + zynqmppl.name = zynqmp_get_silicon_idcode_name(); + printf("Chip ID:\t%s\n", zynqmppl.name); + fpga_init(); + fpga_add(fpga_xilinx, &zynqmppl); #endif if (current_el() == 3) |