提交 3d238435 编写于 作者: M Michal Simek

xilinx: zynqmp: use zynqmp_mmio_read() in multi_boot()

When U-Boot runs in EL2 there is no access to csu_base registers that's why
this has to be done via firmware interface to find out multi boot register
value. Till now this function is called only from SPL in EL3.
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
上级 e49f2a7f
...@@ -346,9 +346,12 @@ int board_early_init_f(void) ...@@ -346,9 +346,12 @@ int board_early_init_f(void)
static int multi_boot(void) static int multi_boot(void)
{ {
u32 multiboot; u32 multiboot = 0;
int ret;
multiboot = readl(&csu_base->multi_boot); ret = zynqmp_mmio_read((ulong)&csu_base->multi_boot, &multiboot);
if (ret)
return -EINVAL;
return multiboot; return multiboot;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册