rockchip: update the raw read/write APIs for M0
authorXing Zheng <zhengxing@rock-chips.com>
Mon, 24 Oct 2016 13:06:25 +0000 (21:06 +0800)
committerXing Zheng <zhengxing@rock-chips.com>
Fri, 24 Feb 2017 12:07:21 +0000 (20:07 +0800)
commita9a4d23a7d6a810fc3e71ba9d7dac414519d0bf6
treeac18033dfd65a22146055e7be5e4717d1fb984b8
parent9a6376c8a1d0757ab8e862c60ebc2e09dc599c66
rockchip: update the raw read/write APIs for M0

Since the ATF project, we usually use the mmio_read_32 and
mmio_write_32. And the mmio_write_32, the firse parameter
is ADDR, the second is VALUE. In order to style consistency:

1/ rename readl/writel to mmio_read_32/mmio_write_32
2/ for keeping the same with mmio_write_32 in the ATF project,
   swap the order of the parameters for M0 mmio_write_32

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Signed-off-by: Lin Huang <hl@rock-chips.com>
plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h
plat/rockchip/rk3399/drivers/m0/src/main.c