]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: zynqmp: Use zynqmp_mmio_read/write functions
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>
Wed, 13 Mar 2019 14:54:18 +0000 (20:24 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 16 Apr 2019 09:51:34 +0000 (11:51 +0200)
commitbe52372ff1bb52872e20543562b095424f040564
tree5f045d7122601f9062811dd05f2e7cf1eef571f3
parent1a474381b6f709582c5d71d0d7cc826ab96f8411
arm64: zynqmp: Use zynqmp_mmio_read/write functions

Changed the return type of reset_reason() to int from u32, because
zynqmp_mmio_read/write() returns signed value on error.
Replaced readl and writel functions with zynqmp_mmio_read &
zynqmp_mmio_write functions to access RESET_REASON(CRL_APB) registers.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynqmp/zynqmp.c