diff options
author | Michal Simek | 2017-02-07 14:32:26 +0100 |
---|---|---|
committer | Michal Simek | 2017-06-20 16:42:13 +0200 |
commit | fb4000e87178bf20aeb0d6c6a71b0e25ff8dcda3 (patch) | |
tree | d7a2bf592e20f2825e1606c355d66e363e922c8b /board/xilinx | |
parent | 7033ae272ed50ccb73434d501098f41430a812a8 (diff) |
arm64: zynqmp: Check pmufw version
If PMUFW version is not v0.3 then panic.
ZynqMP switch to CCF based clock driver which requires
PMUFW to be present at certain version.
This patch ensure that you use correct and tested PMUFW
binary.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx')
-rw-r--r-- | board/xilinx/zynqmp/zynqmp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 3849b5885df..51a3d9f276b 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -113,6 +113,14 @@ static char *zynqmp_get_silicon_idcode_name(void) } #endif +int board_early_init_f(void) +{ +#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_CLK_ZYNQMP) + zynqmp_pmufw_version(); +#endif + return 0; +} + #define ZYNQMP_VERSION_SIZE 9 int board_init(void) |