rv1126-uboot/arch/arm/mach-rockchip
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
..
px30 rockchip: px30: switch VCCIO6 voltage controlled by io_vsel6 2020-06-23 10:53:51 +08:00
rk322x rockchip: rk322x: update mmc base in boot info 2018-11-01 17:20:31 +08:00
rk1808 rockchip: rk1808: set dram area unsecure in spl 2020-02-24 17:27:50 +08:00
rk3036 driver: ram: rockchip: rename sdram_common.* to sdram.* 2019-10-09 18:10:19 +08:00
rk3066 driver: ram: rockchip: rename sdram_common.* to sdram.* 2019-10-09 18:10:19 +08:00
rk3128 rockchip: rk3126c : modify arch_cpu_init() 2018-11-01 11:39:41 +08:00
rk3188
rk3288 rockchip: board: move rk3288 fdt fixup to rk3288.c 2019-07-08 12:10:25 +08:00
rk3308 rockchip: rk3308: remove unused code 2020-09-24 17:13:18 +08:00
rk3328
rk3368 rockchip: rk3368: fix uart2 iomux 2019-04-04 09:15:19 +08:00
rk3399 rockchip: rk3399: update SPL_STACK_R_ADDR 2019-11-12 09:59:47 +08:00
rk3568 rockchip: rk3568: fix compile error 2020-11-05 16:17:08 +08:00
rv1108 driver: ram: rockchip: rename sdram_common.* to sdram.* 2019-10-09 18:10:19 +08:00
rv1126 configs: rv1126: use make_fit_optee.sh as fit generator 2020-10-22 16:37:49 +08:00
Kconfig rockchip: rk3568: enable TPL and select TPL_TINY_FRAMEWORK 2020-11-03 10:54:39 +08:00
Makefile rockchip: add fpga ram/mmc support 2020-10-29 15:21:42 +08:00
board.c rockchip: board/spl: implement board_init_f_boot_flags() 2020-11-02 18:34:22 +08:00
boot_mode.c rockchip: boot-mode: reinitialize static variable "boot_mode" 2020-11-09 17:20:54 +08:00
boot_rkimg.c rockchip: rkimg: update download key comment 2020-08-05 15:48:54 +08:00
bootrom.c
chip_info.c rockchip: chip info: add rk3568 support 2020-11-08 21:22:37 +08:00
decode_bl31.py rockchip: add make_fit_atf.sh for armv8 to generate u-boot.itb 2020-10-22 16:37:49 +08:00
fit.c rockchip: fit: return whole fit totalsize 2020-07-06 16:10:46 +08:00
fpga.c rockchip: add fpga ram/mmc support 2020-10-29 15:21:42 +08:00
hotkey.c rockchip: hotkey: update configure name 2020-03-28 18:21:16 +08:00
iomem.c rockchip: iomem: compare node name when compatible is not match 2019-05-13 12:10:24 +08:00
kernel_dtb.c rockchip: kernel_dtb: fix compile issue 2020-07-28 09:18:22 +08:00
make_fit_args.sh rockchip: make_fit_boot: support generate arm64 boot.img 2020-10-28 21:23:07 +08:00
make_fit_atf.py rockchip: make_fit_atf.py: remove '@1' of nodes 2020-10-22 16:37:49 +08:00
make_fit_atf.sh rockchip: make_fit_atf/optee: add "arch" property for fdt node 2020-11-08 20:40:58 +08:00
make_fit_boot.sh rockchip: make_fit_boot: support generate arm64 boot.img 2020-10-28 21:23:07 +08:00
make_fit_optee.sh rockchip: make_fit_atf/optee: add "arch" property for fdt node 2020-11-08 20:40:58 +08:00
memblk.c sysmem: simplify the memblk name 2020-02-28 11:22:04 +08:00
param.c rockchip: atags: support parse mtd block dev type 2020-05-19 21:27:57 +08:00
resource_img.c common: android: add boot_img_hdr_v3 and vendor boot support 2020-09-18 14:41:37 +08:00
rk_atags.c rockchip: add fpga ram/mmc support 2020-10-29 15:21:42 +08:00
rockchip_debugger.c
rockchip_smccc.c rockchip: smccc: include arm-smccc.h in rockchip_smccc.h 2019-11-28 14:48:43 +08:00
sdram.c driver: ram: rockchip: rename sdram_common.* to sdram.* 2019-10-09 18:10:19 +08:00
spl-boot-order.c rockchip: spl-boot-order: adjust nand flash dectecting strategy 2020-04-23 12:56:18 +08:00
spl.c rockchip: spl: support pre-loader serial 2020-11-07 20:49:49 +08:00
spl_resource_img.c arch: rockchip: support resource file in spl 2020-02-24 14:03:43 +08:00
tpl.c rockchip: tpl: remove arch_cpu_init() 2019-03-26 16:12:55 +08:00
u-boot-tpl-v8.lds
u-boot-tpl.lds
uimage.c rockchip: uimage: fix alloc and free ramdisk sysmem 2020-03-27 16:12:20 +08:00
usbplug.c rockchip: add usbplug support 2020-05-22 16:58:04 +08:00
vendor.c rockchip: vendor: Deinit bootdev_type if initial process fail 2020-10-13 19:30:07 +08:00
weak.c rockchip: weak: support soft gunzip image 2020-10-22 16:37:49 +08:00