u-boot/arch/arm/mach-rockchip/rk3066/Kconfig
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

47 lines
726 B
Text

if ROCKCHIP_RK3066
config TARGET_MK808
bool "MK808"
help
MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port,
HDMI and a micro-SD card slot. It also includes on-board NAND
and 1GB of SDRAM.
config ROCKCHIP_BOOT_MODE_REG
default 0x20004040
config ROCKCHIP_BOOT_LR_REG
hex
default 0x00001058
config ROCKCHIP_BOOT_RETURN_REG
hex
default 0x00001100
config SYS_SOC
default "rk3066"
config SYS_MALLOC_F_LEN
default 0x0800
config SPL_LIBCOMMON_SUPPORT
default y
config SPL_LIBGENERIC_SUPPORT
default y
config SPL_SERIAL
default y
config TPL_LIBCOMMON_SUPPORT
default y
config TPL_LIBGENERIC_SUPPORT
default y
config TPL_SERIAL
default y
source "board/rikomagic/mk808/Kconfig"
endif