]> git.sur5r.net Git - u-boot/commitdiff
rockchip: reset: Use the rk_clr/setreg() interface
authorSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 02:44:02 +0000 (19:44 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 03:42:35 +0000 (20:42 -0700)
Use this function in preference to the macro.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/rk3288/reset_rk3288.c

index 7affd11d2ff25902a18d956710d94e62fcdea622..bf7540a5d24ddb639e13c540a9058af039c8d25b 100644 (file)
@@ -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: