Skip to content
Snippets Groups Projects
Commit a49dc0a9 authored by Simon Glass's avatar Simon Glass
Browse files

rockchip: reset: Use the rk_clr/setreg() interface


Use this function in preference to the macro.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 0906995b
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment