Convert CONFIG_SPL_PAD_TO et al to Kconfig
[platform/kernel/u-boot.git] / arch / arm / mach-rockchip / rk3288 / Kconfig
index 8e7355e..e8c5784 100644 (file)
@@ -1,8 +1,13 @@
 if ROCKCHIP_RK3288
 
+choice
+       prompt "RK3288 board select"
+
 config TARGET_CHROMEBOOK_JERRY
        bool "Google/Rockchip Veyron-Jerry Chromebook"
+       select HAS_ROM
        select BOARD_LATE_INIT
+       select ROCKCHIP_SPI_IMAGE
        help
          Jerry is a RK3288-based clamshell device with 2 USB 3.0 ports,
          HDMI, an 11.9 inch EDP display, micro-SD card, touchpad and
@@ -30,9 +35,22 @@ config TARGET_CHROMEBOOK_MINNIE
          functions. It includes 2 or 4GB of SDRAM and 16 or 32GB of
          internal MMC. The product name is ASUS Chromebook Flip.
 
+config TARGET_CHROMEBOOK_SPEEDY
+       bool "Google/Rockchip Veyron-Speedy Chromebook"
+       select BOARD_LATE_INIT
+       help
+         Speedy is a RK3288-based clamshell device with 2 USB 2.0 ports,
+         micro HDMI, an 11.6 inch display, micro-SD card,
+         HD camera, touchpad, wifi and Bluetooth. It includes a Chrome OS
+         EC (Cortex-M3) to provide access to the keyboard and battery
+         functions. It includes 2 or 4GB of SDRAM and 16GB of internal MMC.
+         The product name is Asus Chromebook C201PA.
+
 config TARGET_EVB_RK3288
        bool "Evb-RK3288"
+       select HAS_ROM
        select BOARD_LATE_INIT
+       select TPL
        help
          EVB-RK3288 is a RK3288-based development board with 2 USB ports,
          HDMI, VGA, micro-SD card, audio, WiFi  and Gigabit Ethernet, It
@@ -51,6 +69,8 @@ config TARGET_FENNEC_RK3288
 config TARGET_FIREFLY_RK3288
        bool "Firefly-RK3288"
        select BOARD_LATE_INIT
+       select SPL_BOARD_INIT if SPL
+       select TPL
        help
          Firefly is a RK3288-based development board with 2 USB ports,
          HDMI, VGA, micro-SD card, audio, WiFi  and Gigabit Ethernet, It
@@ -66,6 +86,15 @@ config TARGET_MIQI_RK3288
          has 1 or 2 GiB SDRAM. Expansion connectors provide access to
          I2C, SPI, UART, GPIOs and fan control.
 
+config TARGET_PHYCORE_RK3288
+       bool "phyCORE-RK3288"
+        select BOARD_LATE_INIT
+       select SPL_BOARD_INIT if SPL
+       help
+         Add basic support for the PCM-947 carrier board, a RK3288 based
+         development board made by PHYTEC. This board works in a combination
+         with the phyCORE-RK3288 System on Module.
+
 config TARGET_POPMETAL_RK3288
        bool "PopMetal-RK3288"
        select BOARD_LATE_INIT
@@ -76,6 +105,16 @@ config TARGET_POPMETAL_RK3288
          2GB DDR3. Expansion connectors provide access to I2C, SPI, UART,
          GPIOs and display interface.
 
+config TARGET_VYASA_RK3288
+       bool "Vyasa-RK3288"
+       select BOARD_LATE_INIT
+       select TPL
+       help
+         Vyasa is a RK3288-based development board with 2 USB ports,
+         HDMI, VGA, micro-SD card, audio, WiFi  and Gigabit Ethernet, It
+         also includes on-board eMMC and 2GB of SDRAM. Expansion connectors
+         provide access to display pins, I2C, SPI, UART and GPIOs.
+
 config TARGET_ROCK2
        bool "Radxa Rock 2"
        select BOARD_LATE_INIT
@@ -88,12 +127,15 @@ config TARGET_ROCK2
 config TARGET_TINKER_RK3288
        bool "Tinker-RK3288"
         select BOARD_LATE_INIT
+       select TPL
        help
          Tinker is a RK3288-based development board with 2 USB ports, HDMI,
          micro-SD card, audio, Gigabit Ethernet. It also includes on-board
          8GB eMMC and 2GB of SDRAM. Expansion connectors provide access to
          I2C, SPI, UART, GPIOs.
 
+endchoice
+
 config ROCKCHIP_FAST_SPL
        bool "Change the CPU to full speed in SPL"
        depends on TARGET_CHROMEBOOK_JERRY
@@ -103,13 +145,19 @@ config ROCKCHIP_FAST_SPL
          voltage. This option is only available on boards which support it
          and have the required PMIC code.
 
+config ROCKCHIP_BOOT_MODE_REG
+       default 0xff730094
+
+config ROCKCHIP_STIMER_BASE
+       default 0xff810020
+
 config SYS_SOC
-       default "rockchip"
+       default "rk3288"
 
 config SYS_MALLOC_F_LEN
-       default 0x0800
+       default 0x2000
 
-config SPL_DRIVERS_MISC_SUPPORT
+config SPL_DRIVERS_MISC
        default y
 
 config SPL_LIBCOMMON_SUPPORT
@@ -118,9 +166,20 @@ config SPL_LIBCOMMON_SUPPORT
 config SPL_LIBGENERIC_SUPPORT
        default y
 
-config SPL_SERIAL_SUPPORT
+config SPL_SERIAL
        default y
 
+config TPL_LDSCRIPT
+       default "arch/arm/mach-rockchip/u-boot-tpl.lds"
+
+config TPL_STACK
+        default 0xff718000
+
+config TPL_TEXT_BASE
+       default 0xff704000
+
+source "board/amarula/vyasa-rk3288/Kconfig"
+
 source "board/chipspark/popmetal_rk3288/Kconfig"
 
 source "board/firefly/firefly-rk3288/Kconfig"
@@ -129,12 +188,12 @@ source "board/google/veyron/Kconfig"
 
 source "board/mqmaker/miqi_rk3288/Kconfig"
 
+source "board/phytec/phycore_rk3288/Kconfig"
+
 source "board/radxa/rock2/Kconfig"
 
 source "board/rockchip/evb_rk3288/Kconfig"
 
-source "board/rockchip/fennec_rk3288/Kconfig"
-
 source "board/rockchip/tinker_rk3288/Kconfig"
 
 endif