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 <kever.yang@rock-chips.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
f9674f5eec
commit
4a18729726
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user