rockchip: rk3128: check bootmode from pmu_sys_reg0

To keep synchronization with other paltforms, RK312x
will also check all bootmode information from one
register--PMU_SYS_REG0(0x0x100a0038).

This change should based on rk3126_ddr_300MHz_v2.09.bin

Change-Id: Ia09c87a2d55337b4d6f3ddc58f1a8dfcef8bb4a2
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
This commit is contained in:
Andy Yan 2017-11-10 11:23:37 +08:00 committed by Kever Yang
parent bab2d2c360
commit dd9a11eaf4
2 changed files with 2 additions and 5 deletions

View File

@ -223,7 +223,7 @@ config TPL_ROCKCHIP_BACK_TO_BROM
config ROCKCHIP_BOOT_MODE_REG
hex "Rockchip boot mode flag register address"
default 0x200081c8 if ROCKCHIP_RK3036
default 0x200081c8 if ROCKCHIP_RK3128
default 0x100a0038 if ROCKCHIP_RK3128
default 0x20004040 if ROCKCHIP_RK3188
default 0x110005c8 if ROCKCHIP_RK322X
default 0xff730094 if ROCKCHIP_RK3288

View File

@ -72,10 +72,7 @@ int setup_boot_mode(void)
rockchip_dnl_mode_check();
if (of_machine_is_compatible("rockchip,rk3128"))
reg = (void *)0x100a0038;
else
reg = (void *)CONFIG_ROCKCHIP_BOOT_MODE_REG;
reg = (void *)CONFIG_ROCKCHIP_BOOT_MODE_REG;
boot_mode = readl(reg);