summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-21 19:44:02 -0700
committerSimon Glass <sjg@chromium.org>2016-01-21 20:42:35 -0700
commita49dc0a91456dda9baec7e4778de4d96fa9174ec (patch)
tree0b1727535177df081fac3066bf946d06cc17f907
parent0906995bf3078fb760e480474ac4cb4f06556637 (diff)
downloadu-boot-a49dc0a91456dda9baec7e4778de4d96fa9174ec.tar.gz
u-boot-a49dc0a91456dda9baec7e4778de4d96fa9174ec.tar.xz
u-boot-a49dc0a91456dda9baec7e4778de4d96fa9174ec.zip
rockchip: reset: Use the rk_clr/setreg() interface
Use this function in preference to the macro. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/arm/mach-rockchip/rk3288/reset_rk3288.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-rockchip/rk3288/reset_rk3288.c b/arch/arm/mach-rockchip/rk3288/reset_rk3288.c
index 7affd11d2f..bf7540a5d2 100644
--- a/arch/arm/mach-rockchip/rk3288/reset_rk3288.c
+++ b/arch/arm/mach-rockchip/rk3288/reset_rk3288.c
@@ -22,11 +22,11 @@ int rk3288_reset_request(struct udevice *dev, enum reset_t type)
return PTR_ERR(cru);
switch (type) {
case RESET_WARM:
- writel(RK_CLRBITS(0xffff), &cru->cru_mode_con);
+ rk_clrreg(&cru->cru_mode_con, 0xffff);
writel(0xeca8, &cru->cru_glb_srst_snd_value);
break;
case RESET_COLD:
- writel(RK_CLRBITS(0xffff), &cru->cru_mode_con);
+ rk_clrreg(&cru->cru_mode_con, 0xffff);
writel(0xfdb9, &cru->cru_glb_srst_fst_value);
break;
default: