rockchip: Kconfig: move ROCKCHIP_BOOT_MODE_REG to soc Kconfig

Rockchip SoCs have different ROCKCHIP_BOOT_MODE_REG value,
move it to SoC's own Kconfig, and add address for rk3128 and
rk3328 so that all SoCs have available address.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Kever Yang 2019-07-09 22:14:20 +08:00
parent c83b5a2c53
commit 476dcb6b43
10 changed files with 27 additions and 8 deletions

View file

@ -225,14 +225,6 @@ config TPL_ROCKCHIP_BACK_TO_BROM
config ROCKCHIP_BOOT_MODE_REG
hex "Rockchip boot mode flag register address"
default 0x200081c8 if ROCKCHIP_RK3036
default 0x20004040 if ROCKCHIP_RK3188
default 0x110005c8 if ROCKCHIP_RK322X
default 0xff730094 if ROCKCHIP_RK3288
default 0xff738200 if ROCKCHIP_RK3368
default 0xff320300 if ROCKCHIP_RK3399
default 0x10300580 if ROCKCHIP_RV1108
default 0
help
The Soc will enter to different boot mode(defined in asm/arch-rockchip/boot_mode.h)
according to the value from this register.

View file

@ -13,6 +13,9 @@ config TARGET_KYLIN_RK3036
endchoice
config ROCKCHIP_BOOT_MODE_REG
default 0x200081c8
config SYS_SOC
default "rk3036"

View file

@ -13,6 +13,9 @@ config TARGET_EVB_RK3128
endchoice
config ROCKCHIP_BOOT_MODE_REG
default 0x100a0038
config SYS_SOC
default "rk3128"

View file

@ -9,6 +9,9 @@ config TARGET_ROCK
Expansion connectors provide access to display pins, I2C, SPI,
UART and GPIOs.
config ROCKCHIP_BOOT_MODE_REG
default 0x20004040
config SYS_SOC
default "rk3188"

View file

@ -5,6 +5,9 @@ config TARGET_EVB_RK3229
bool "EVB_RK3229"
select BOARD_LATE_INIT
config ROCKCHIP_BOOT_MODE_REG
default 0x110005c8
config SYS_SOC
default "rk322x"

View file

@ -139,6 +139,9 @@ config ROCKCHIP_FAST_SPL
voltage. This option is only available on boards which support it
and have the required PMIC code.
config ROCKCHIP_BOOT_MODE_REG
default 0xff730094
config SYS_SOC
default "rk3288"

View file

@ -12,6 +12,9 @@ config TARGET_EVB_RK3328
endchoice
config ROCKCHIP_BOOT_MODE_REG
default 0xff1005c8
config SYS_SOC
default "rk3328"

View file

@ -42,6 +42,9 @@ config TARGET_EVB_PX5
sensor STK3410.
endchoice
config ROCKCHIP_BOOT_MODE_REG
default 0xff738200
config SYS_SOC
default "rk3368"

View file

@ -64,6 +64,9 @@ config TARGET_CHROMEBOOK_BOB
endchoice
config ROCKCHIP_BOOT_MODE_REG
default 0xff320300
config SYS_SOC
default "rk3399"

View file

@ -27,6 +27,9 @@ config TARGET_ELGIN_RV1108
endchoice
config ROCKCHIP_BOOT_MODE_REG
default 0x10300580
config SYS_SOC
default "rv1108"