u-boot/arch/arm/mach-rockchip
Johan Jonker 8ffa9ed295 rockchip: include: asm: fix entering download mode rk3066
Keep track of the re-entries with help of the lr register.
This binary can be re-used and called from various BROM functions.
Only when it's called from the part that handles SPI, NAND or EMMC
hardware it needs to early return to BROM ones.
In download mode when it handles data on USB OTG and UART0
this section must be skipped.

Unlike newer Rockchip SoC models the rk3066 BROM code does not have built-in
support to enter download mode on return to BROM. This binary must check
the boot mode register for the BOOT_BROM_DOWNLOAD flag and reset if it's set.
It then returns to BROM to the end of the function that reads boot blocks.
From there the BROM code goes into a download mode and waits for data
on USB OTG and UART0.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2023-11-10 10:58:56 -05:00
..
px30 rockchip: add support for PX30 Ringneck SoM on Haikou Devkit 2023-01-16 18:01:11 +08:00
rk322x Convert CONFIG_SPL_PAD_TO et al to Kconfig 2022-06-06 12:09:06 -04:00
rk3036 global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
rk3066 rockchip: include: asm: fix entering download mode rk3066 2023-11-10 10:58:56 -05:00
rk3128 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rk3188 common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
rk3288 rockchip: veyron: Enable building SPI ROM images 2023-07-31 14:40:13 +08:00
rk3308 rockchip: rk3308: fix board_debug_uart_init 2023-07-31 14:38:32 +08:00
rk3328 Convert CONFIG_SPL_PAD_TO et al to Kconfig 2022-06-06 12:09:06 -04:00
rk3368 arm: rk3368: Select ARCH_EARLY_INIT_R when used 2023-03-02 15:32:25 -05:00
rk3399 common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
rk3568 board: rockchip: Add Pine64 Quartz64-A Board 2023-07-31 14:41:35 +08:00
rk3588 board: rockchip: add Pine64 QuartzPro64 RK3588 board 2023-11-09 11:19:05 +08:00
rv1108 dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
rv1126 tpl: Enable CONFIG_TPL_SYS_MALLOC_F where needed 2023-10-06 14:38:12 -04:00
board.c board: usb: Replace legacy usb_gadget_handle_interrupts() 2023-09-15 23:38:02 +02:00
boot_mode.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
bootrom.c common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
cpu-info.c Correct SPL use of DISPLAY_CPUINFO 2023-02-09 16:32:26 -05:00
Kconfig rockchip: include: asm: fix entering download mode rk3066 2023-11-10 10:58:56 -05:00
Makefile arm: rockchip: Add RK3588 arch core support 2023-02-28 18:07:28 +08:00
misc.c rockchip: misc: fix misc_read() return check 2023-04-21 15:16:01 +08:00
px30-board-tpl.c Remove #include <version.h> from files which do not need it 2021-09-17 12:10:44 -04:00
rk3036-board-spl.c arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid 2022-04-21 15:27:18 -04:00
sdram.c common: return type board_get_usable_ram_top 2023-08-15 18:21:17 +02:00
spl-boot-order.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spl.c rockchip: spl: Drop out of scope debug message related to uart init 2023-08-12 10:37:32 +08:00
tpl.c rockchip: Enable bootstage on rockpro64 2023-01-18 11:49:13 -07:00
u-boot-tpl-v8.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00