rv1126-uboot/arch
Joseph Chen 3aaa96e8af rockchip: boot-mode: reinitialize static variable "boot_mode"
Special handle:
   Once the BCB offset changes, reinitialize "boot_mode".

Background:
   1. there are two Android BCB at the 0x00 and 0x20 offset in
      misc.img to compatible legacy(0x20) SDK.
   2. android_bcb_msg_sector_offset() is for android image:
      return 0x20 if image version < 10, otherwise 0x00.
   3. If not android image, BCB at 0x20 is the valid one.

U-Boot can support booting both FIT & Android image, if FIT
boot flow enters here early than Android, the "boot_mode" is
set as BOOT_MODE_RECOVERY according to BCB at 0x20 offset.
After that, this function always return static variable "boot_mode"
as BOOT_MODE_RECOVERY even android(>=10) boot flow enter here.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0ed05ba1b18447a58d3faff37ac50ecc79fab374
2020-11-09 17:20:54 +08:00
..
arc
arm rockchip: boot-mode: reinitialize static variable "boot_mode" 2020-11-09 17:20:54 +08:00
m68k
microblaze
mips
nds32
nios2
powerpc
sandbox UPSTREAM: clk: add clk_valid() 2020-06-02 16:07:42 +08:00
sh
x86
xtensa
.gitignore
Kconfig UPSTREAM: riscv: Modify generic codes to support RISC-V 2020-04-14 12:45:33 +08:00