From: Kever Yang Date: Tue, 22 Aug 2017 07:34:58 +0000 (+0800) Subject: rockchip: rk322x: update the sysreg number for boot mode X-Git-Tag: v2017.11-rc1~3^2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4a18729726144678c090ad0e3c26f4829b1c4aeb;p=u-boot rockchip: rk322x: update the sysreg number for boot mode The boot mode for rk322x is stored in sysreg 0, update it. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- diff --git a/arch/arm/mach-rockchip/rk322x-board.c b/arch/arm/mach-rockchip/rk322x-board.c index dcd8cf805f..d44311457a 100644 --- a/arch/arm/mach-rockchip/rk322x-board.c +++ b/arch/arm/mach-rockchip/rk322x-board.c @@ -21,12 +21,12 @@ DECLARE_GLOBAL_DATA_PTR; static void setup_boot_mode(void) { struct rk322x_grf *const grf = (void *)GRF_BASE; - int boot_mode = readl(&grf->os_reg[4]); + int boot_mode = readl(&grf->os_reg[0]); debug("boot mode %x.\n", boot_mode); /* Clear boot mode */ - writel(BOOT_NORMAL, &grf->os_reg[4]); + writel(BOOT_NORMAL, &grf->os_reg[0]); switch (boot_mode) { case BOOT_FASTBOOT: