[U-Boot] [PATCH 2/2] rockchip: rk322x: use ROCKCHIP_BOOT_MODE_REG to update reboot flag
Kever Yang
kever.yang at rock-chips.com
Thu Apr 19 08:16:34 UTC 2018
Use ROCKCHIP_BOOT_MODE_REG instead of grf structure so that
we can re-use the source code later.
Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
---
arch/arm/mach-rockchip/rk322x-board.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/arm/mach-rockchip/rk322x-board.c b/arch/arm/mach-rockchip/rk322x-board.c
index 8642a90..6295b1a 100644
--- a/arch/arm/mach-rockchip/rk322x-board.c
+++ b/arch/arm/mach-rockchip/rk322x-board.c
@@ -143,12 +143,9 @@ int board_usb_cleanup(int index, enum usb_init_type init)
#if defined(CONFIG_USB_FUNCTION_FASTBOOT)
int fb_set_reboot_flag(void)
{
- struct rk322x_grf *grf;
-
printf("Setting reboot to fastboot flag ...\n");
- grf = syscon_get_first_range(ROCKCHIP_SYSCON_GRF);
/* Set boot mode to fastboot */
- writel(BOOT_FASTBOOT, &grf->os_reg[0]);
+ writel(BOOT_FASTBOOT, CONFIG_ROCKCHIP_BOOT_MODE_REG);
return 0;
}
--
1.9.1
More information about the U-Boot
mailing list