mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-13 23:02:59 +00:00
6cf6fe2537
The Anbernic RGxx3 is a "pseudo-device" that encompasses the following devices: - Anbernic RG353M - Anbernic RG353P - Anbernic RG353V - Anbernic RG353VS - Anbernic RG503 The rk3566-anbernic-rgxx3.dtsi is synced with upstream Linux, but rk3566-anbernic-rgxx3.dts is a U-Boot specific devicetree that is used for all RGxx3 devices. Via the board.c file, the bootloader automatically sets the correct fdtfile, board, and board_name environment variables so that the correct devicetree can be passed to Linux. It is also possible to simply hard-code a single devicetree in the boot.scr file and use that to load Linux as well. The common specifications for each device are: - Rockchip RK3566 SoC - 2 external SDMMC slots - 1 USB-C host port, 1 USB-C peripheral port - 1 mini-HDMI output - MIPI-DSI based display panel - ADC controlled joysticks with a GPIO mux - GPIO buttons - A PWM controlled vibrator - An ADC controlled button All of the common features are defined in the devicetree synced from upstream Linux. TODO: DSI panel auto-detection for the RG353 devices (requires porting of DSI controller driver and DSI-DPHY driver to send DSI commands to the panel). Signed-off-by: Chris Morgan <macromorgan@hotmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
37 lines
775 B
Text
37 lines
775 B
Text
if ROCKCHIP_RK3568
|
|
|
|
choice
|
|
prompt "RK3568/RK3566 board select"
|
|
|
|
config TARGET_EVB_RK3568
|
|
bool "RK3568 evaluation board"
|
|
select BOARD_LATE_INIT
|
|
help
|
|
RK3568 EVB is a evaluation board for Rockchp RK3568.
|
|
|
|
config TARGET_ANBERNIC_RGXX3_RK3566
|
|
bool "Anbernic RGXX3"
|
|
help
|
|
Anbernic RGXX3 gaming device with Rockchip RK3566. This
|
|
config can be used with the RG353M, RG353P, RG353V, RG353VS,
|
|
and RG503. The correct device tree name will automatically
|
|
be selected by the bootloader.
|
|
|
|
endchoice
|
|
|
|
config ROCKCHIP_BOOT_MODE_REG
|
|
default 0xfdc20200
|
|
|
|
config ROCKCHIP_STIMER_BASE
|
|
default 0xfdd1c020
|
|
|
|
config SYS_SOC
|
|
default "rk3568"
|
|
|
|
config SYS_MALLOC_F_LEN
|
|
default 0x2000
|
|
|
|
source "board/rockchip/evb_rk3568/Kconfig"
|
|
source "board/anbernic/rgxx3_rk3566/Kconfig"
|
|
|
|
endif
|