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