]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: zynqmp: Reorder parameters for zynqmp_mmio_write()
authorMichal Simek <michal.simek@xilinx.com>
Mon, 23 Mar 2020 13:02:01 +0000 (14:02 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 6 Apr 2020 10:52:45 +0000 (12:52 +0200)
Parameter order is not correct based on zynqmp_mmio_write() declaration.

Fixes: be52372ff1bb ("arm64: zynqmp: Use zynqmp_mmio_read/write functions")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynqmp/zynqmp.c

index eb1bc0861e2f31a1a99e4cf1eadc84e405fb5286..3c92b1a5825f5a422770f60b617dd56683928997 100644 (file)
@@ -515,7 +515,7 @@ static int reset_reason(void)
 
        env_set("reset_reason", reason);
 
-       ret = zynqmp_mmio_write(~0, ~0, (ulong)&crlapb_base->reset_reason);
+       ret = zynqmp_mmio_write((ulong)&crlapb_base->reset_reason, ~0, ~0);
        if (ret)
                return -EINVAL;