mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 14:41:26 +01:00
rockchip: reset: Use the rk_clr/setreg() interface
Use this function in preference to the macro. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
0906995bf3
commit
a49dc0a914
@ -22,11 +22,11 @@ int rk3288_reset_request(struct udevice *dev, enum reset_t type)
|
|||||||
return PTR_ERR(cru);
|
return PTR_ERR(cru);
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case RESET_WARM:
|
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);
|
writel(0xeca8, &cru->cru_glb_srst_snd_value);
|
||||||
break;
|
break;
|
||||||
case RESET_COLD:
|
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);
|
writel(0xfdb9, &cru->cru_glb_srst_fst_value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user