rockchip: spl: bring up to kernel when CONFIG_ROCKCHIP_BOOT_MODE_REG is 0

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I3f576fa0527a42ebede6ec252586cf681974fa97
This commit is contained in:
Jason Zhu 2020-06-02 18:06:39 +08:00
parent 371e5b63ad
commit 747423edb6
2 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,8 @@
/* high 24 bits is tag, low 8 bits is type */
#define REBOOT_FLAG 0x5242C300
/* cold boot */
#define BOOT_COLD 0
/* normal boot */
#define BOOT_NORMAL (REBOOT_FLAG + 0)
/* enter loader rockusb mode */

View File

@ -284,6 +284,7 @@ void spl_next_stage(struct spl_image_info *spl)
reg_boot_mode = readl((void *)CONFIG_ROCKCHIP_BOOT_MODE_REG);
switch (reg_boot_mode) {
case BOOT_COLD:
case BOOT_PANIC:
case BOOT_WATCHDOG:
case BOOT_NORMAL: