1if ARCH_ROCKCHIP 2 3config ROCKCHIP_RK3036 4 bool "Support Rockchip RK3036" 5 select CPU_V7 6 select SUPPORT_SPL 7 select SPL 8 help 9 The Rockchip RK3036 is a ARM-based SoC with a dual-core Cortex-A7 10 including NEON and GPU, Mali-400 graphics, several DDR3 options 11 and video codec support. Peripherals include Gigabit Ethernet, 12 USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs. 13 14config ROCKCHIP_RK3188 15 bool "Support Rockchip RK3188" 16 select CPU_V7 17 select SPL_BOARD_INIT if SPL 18 select SUPPORT_SPL 19 select SUPPORT_TPL 20 select SPL 21 select TPL 22 select BOARD_LATE_INIT 23 select ROCKCHIP_BROM_HELPER 24 help 25 The Rockchip RK3188 is a ARM-based SoC with a quad-core Cortex-A9 26 including NEON and GPU, 512KB L2 cache, Mali-400 graphics, two 27 video interfaces, several memory options and video codec support. 28 Peripherals include Fast Ethernet, USB2 host and OTG, SDIO, I2S, 29 UART, SPI, I2C and PWMs. 30 31config ROCKCHIP_RK322X 32 bool "Support Rockchip RK3228/RK3229" 33 select CPU_V7 34 select SUPPORT_SPL 35 select SUPPORT_TPL 36 select SPL 37 select TPL 38 select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL 39 select TPL_NEEDS_SEPARATE_STACK if TPL 40 select SPL_DRIVERS_MISC_SUPPORT 41 imply SPL_SERIAL_SUPPORT 42 imply TPL_SERIAL_SUPPORT 43 select ROCKCHIP_BROM_HELPER 44 select DEBUG_UART_BOARD_INIT 45 select TPL_LIBCOMMON_SUPPORT 46 select TPL_LIBGENERIC_SUPPORT 47 help 48 The Rockchip RK3229 is a ARM-based SoC with a dual-core Cortex-A7 49 including NEON and GPU, Mali-400 graphics, several DDR3 options 50 and video codec support. Peripherals include Gigabit Ethernet, 51 USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs. 52 53config ROCKCHIP_RK3288 54 bool "Support Rockchip RK3288" 55 select CPU_V7 56 select SPL_BOARD_INIT if SPL 57 select SUPPORT_SPL 58 select SPL 59 help 60 The Rockchip RK3288 is a ARM-based SoC with a quad-core Cortex-A17 61 including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two 62 video interfaces supporting HDMI and eDP, several DDR3 options 63 and video codec support. Peripherals include Gigabit Ethernet, 64 USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs. 65 66config ROCKCHIP_RK3328 67 bool "Support Rockchip RK3328" 68 select ARM64 69 help 70 The Rockchip RK3328 is a ARM-based SoC with a quad-core Cortex-A53. 71 including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two 72 video interfaces supporting HDMI and eDP, several DDR3 options 73 and video codec support. Peripherals include Gigabit Ethernet, 74 USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs. 75 76config ROCKCHIP_RK3368 77 bool "Support Rockchip RK3368" 78 select ARM64 79 select SUPPORT_SPL 80 select SUPPORT_TPL 81 select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL 82 select TPL_NEEDS_SEPARATE_STACK if TPL 83 imply SPL_SEPARATE_BSS 84 imply SPL_SERIAL_SUPPORT 85 imply TPL_SERIAL_SUPPORT 86 select ENABLE_ARM_SOC_BOOT0_HOOK 87 select DEBUG_UART_BOARD_INIT 88 select SYS_NS16550 89 help 90 The Rockchip RK3368 is a ARM-based SoC with a octa-core (organised 91 into a big and little cluster with 4 cores each) Cortex-A53 including 92 AdvSIMD, 512KB L2 cache (for the big cluster) and 256 KB L2 cache 93 (for the little cluster), PowerVR G6110 based graphics, one video 94 output processor supporting LVDS/HDMI/eDP, several DDR3 options and 95 video codec support. 96 97 On-chip peripherals include Gigabit Ethernet, USB2 host and OTG, SDIO, 98 I2S, UARTs, SPI, I2C and PWMs. 99 100if ROCKCHIP_RK3368 101 102config TPL_LDSCRIPT 103 default "arch/arm/mach-rockchip/rk3368/u-boot-tpl.lds" 104 105config TPL_TEXT_BASE 106 default 0xff8c1000 107 108config TPL_MAX_SIZE 109 default 28672 110 111config TPL_STACK 112 default 0xff8cffff 113 114endif 115 116config ROCKCHIP_RK3399 117 bool "Support Rockchip RK3399" 118 select ARM64 119 select SUPPORT_SPL 120 select SPL 121 select SPL_SEPARATE_BSS 122 select SPL_SERIAL_SUPPORT 123 select SPL_DRIVERS_MISC_SUPPORT 124 select ENABLE_ARM_SOC_BOOT0_HOOK 125 select DEBUG_UART_BOARD_INIT 126 help 127 The Rockchip RK3399 is a ARM-based SoC with a dual-core Cortex-A72 128 and quad-core Cortex-A53. 129 including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two 130 video interfaces supporting HDMI and eDP, several DDR3 options 131 and video codec support. Peripherals include Gigabit Ethernet, 132 USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs. 133 134config ROCKCHIP_RV1108 135 bool "Support Rockchip RV1108" 136 select CPU_V7 137 help 138 The Rockchip RV1108 is a ARM-based SoC with a single-core Cortex-A7 139 and a DSP. 140 141config SPL_ROCKCHIP_BACK_TO_BROM 142 bool "SPL returns to bootrom" 143 default y if ROCKCHIP_RK3036 144 select ROCKCHIP_BROM_HELPER 145 depends on SPL 146 help 147 Rockchip SoCs have ability to load SPL & U-Boot binary. If enabled, 148 SPL will return to the boot rom, which will then load the U-Boot 149 binary to keep going on. 150 151config TPL_ROCKCHIP_BACK_TO_BROM 152 bool "TPL returns to bootrom" 153 default y if ROCKCHIP_RK3368 154 select ROCKCHIP_BROM_HELPER 155 depends on TPL 156 help 157 Rockchip SoCs have ability to load SPL & U-Boot binary. If enabled, 158 SPL will return to the boot rom, which will then load the U-Boot 159 binary to keep going on. 160 161config ROCKCHIP_SPL_RESERVE_IRAM 162 hex "Size of IRAM reserved in SPL" 163 default 0x4000 164 help 165 SPL may need reserve memory for firmware loaded by SPL, whose load 166 address is in IRAM and may overlay with SPL text area if not 167 reserved. 168 169config ROCKCHIP_BROM_HELPER 170 bool 171 172config SPL_MMC_SUPPORT 173 default y if !SPL_ROCKCHIP_BACK_TO_BROM 174 175config ROCKCHIP_BLOCK_API 176 bool "Rockchip block device api support" 177 help 178 This enable read access to block device on 179 rockchip platform. 180 181config ROCKCHIP_PARAM 182 bool "Rockchip parameter support" 183 depends on ROCKCHIP_BLOCK_API 184 help 185 This enable support to get partition from rockchip 186 parameter 187 188config ROCKCHIP_RESOURCE_IMAGE 189 bool "Enable support for rockchip resource image" 190 depends on ROCKCHIP_PARAM 191 help 192 This enables support to get dtb or logo files from 193 rockchip resource image format partition. 194 195source "arch/arm/mach-rockchip/rk3036/Kconfig" 196source "arch/arm/mach-rockchip/rk3188/Kconfig" 197source "arch/arm/mach-rockchip/rk322x/Kconfig" 198source "arch/arm/mach-rockchip/rk3288/Kconfig" 199source "arch/arm/mach-rockchip/rk3328/Kconfig" 200source "arch/arm/mach-rockchip/rk3368/Kconfig" 201source "arch/arm/mach-rockchip/rk3399/Kconfig" 202source "arch/arm/mach-rockchip/rv1108/Kconfig" 203endif 204