Lenovo ThinkPad X60 / X60s Support
[coreboot.git] / src / mainboard / Kconfig
index 423068a1a95594584859157943daada2ccc5cfd0..1a6f394116f8697768899a2d681e5d84b9f1c822 100644 (file)
@@ -4,253 +4,119 @@ choice
        prompt "Mainboard vendor"
        default VENDOR_EMULATION
 
-config VENDOR_ATREND
-       bool "A-Trend"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_ABIT
-       bool "ABIT"
-       help
-         Select this option for systems from the vendor.
-
+       bool "Abit"
 config VENDOR_ADVANTECH
        bool "Advantech"
-       help
-         Select this option for systems from the vendor.
-
-config VENDOR_AGAMI
-       bool "Agami"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_AMD
        bool "AMD"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_ARIMA
        bool "Arima"
-       help
-         Select this option for systems from the vendor.
-
-config VENDOR_ARTEC
+config VENDOR_ARTEC_GROUP
        bool "Artec Group"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_ASI
        bool "ASI"
-       help
-         Select this option for systems from the vendor.
-
+config VENDOR_ASROCK
+       bool "ASROCK"
 config VENDOR_ASUS
        bool "ASUS"
-       help
-         Select this option for systems from the vendor.
-
+config VENDOR_A_TREND
+       bool "A-Trend"
 config VENDOR_AXUS
        bool "AXUS"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_AZZA
-       bool "Azza"
-       help
-         Select this option for systems from the vendor.
-
+       bool "AZZA"
 config VENDOR_BCOM
        bool "BCOM"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_BIOSTAR
        bool "Biostar"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_BROADCOM
        bool "Broadcom"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_COMPAQ
        bool "Compaq"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_DELL
-       bool "DELL"
-       help
-         Select this option for systems from the vendor.
-
-config VENDOR_DIGITALLOGIC
-       bool "Digital Logic"
-       help
-         Select this option for systems from the vendor.
-
+       bool "Dell"
+config VENDOR_DIGITAL_LOGIC
+       bool "DIGITAL-LOGIC"
 config VENDOR_EAGLELION
-       bool "Eagle Lion"
-       help
-         Select this option for systems from the vendor.
-
-config VENDOR_EMBEDDEDPLANET
-       bool "Embedded Planet"
-       help
-         Select this option for systems from the vendor.
-
+       bool "EagleLion"
+config VENDOR_ECS
+       bool "ECS"
 config VENDOR_EMULATION
        bool "Emulation"
-       help
-         Select this option for various system emulators, such as QEMU.
-
+config VENDOR_GETAC
+       bool "Getac"
 config VENDOR_GIGABYTE
-       bool "Gigabyte"
-       help
-         Select this option for systems from the vendor.
-
+       bool "GIGABYTE"
 config VENDOR_HP
        bool "HP"
-       help
-         Select this option for systems from the vendor.
-
+config VENDOR_IBASE
+       bool "iBase"
 config VENDOR_IBM
        bool "IBM"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_IEI
        bool "IEI"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_INTEL
        bool "Intel"
-       help
-         Select this option for systems from the vendor.
-
+config VENDOR_IWAVE
+       bool "iWave"
 config VENDOR_IWILL
-       bool "Iwill"
-       help
-         Select this option for systems from the vendor.
-
+       bool "IWILL"
 config VENDOR_JETWAY
        bool "Jetway"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_KONTRON
        bool "Kontron"
-       help
-         Select this option for systems from the vendor.
-
+config VENDOR_LANNER
+       bool "Lanner"
+config VENDOR_LENOVO
+       bool "Lenovo"
 config VENDOR_LIPPERT
        bool "Lippert"
-       help
-         Select this option for systems from the vendor.
-
-config VENDOR_MOTOROLA
-       bool "Motorola"
-       help
-         Select this option for systems from the vendor.
-
+config VENDOR_MITAC
+       bool "Mitac"
 config VENDOR_MSI
        bool "MSI"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_NEC
        bool "NEC"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_NEWISYS
        bool "Newisys"
-       help
-         Select this option for systems from the vendor.
-
+config VENDOR_NOKIA
+       bool "Nokia"
 config VENDOR_NVIDIA
-       bool "NVidia"
-       help
-         Select this option for systems from the vendor.
-
-config VENDOR_OLPC
-       bool "OLPC"
-       help
-         Select this option for systems from the vendor.
-
-config VENDOR_PCENGINES
+       bool "NVIDIA"
+config VENDOR_PC_ENGINES
        bool "PC Engines"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_RCA
        bool "RCA"
-       help
-         Select this option for systems from the vendor.
-
+config VENDOR_RODA
+       bool "Roda"
+config VENDOR_SOYO
+       bool "Soyo"
 config VENDOR_SUNW
-       bool "SUN Microsystems"
-       help
-         Select this option for systems from the vendor.
-
+       bool "Sun"
 config VENDOR_SUPERMICRO
        bool "Supermicro"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_TECHNEXION
        bool "Technexion"
-       help
-         Select this option for systems from the vendor.
-
+config VENDOR_TECHNOLOGIC
+       bool "Technologic"
+config VENDOR_TELEVIDEO
+       bool "TeleVideo"
 config VENDOR_THOMSON
        bool "Thomson"
-       help
-         Select this option for systems from the vendor.
-
-config VENDOR_TOTALIMPACT
-       bool "Total Impact"
-       help
-         Select this option for systems from the vendor.
-
+config VENDOR_TRAVERSE
+       bool "Traverse Technologies"
 config VENDOR_TYAN
        bool "Tyan"
-       help
-         Select this option for systems from the vendor.
-
 config VENDOR_VIA
        bool "VIA"
-       help
-         Select this option for systems from the vendor.
+config VENDOR_WINENT
+       bool "Win Enterprises"
+config VENDOR_WYSE
+       bool "Wyse"
 
 endchoice
 
-config MAINBOARD_VENDOR
-       string
-       default "Emulation"
-       depends on VENDOR_EMULATION
-
-config MAINBOARD_VENDOR
-       string
-       default "Kontron"
-       depends on VENDOR_KONTRON
-
-config MAINBOARD_VENDOR
-       string
-       default "VIA"
-       depends on VENDOR_VIA
-
-config MAINBOARD_VENDOR
-       string
-       default "AMD"
-       depends on VENDOR_AMD
-
-config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
-       hex
-       default 0x1019
-       depends on VENDOR_VIA
-
 source "src/mainboard/a-trend/Kconfig"
 source "src/mainboard/abit/Kconfig"
 source "src/mainboard/advantech/Kconfig"
@@ -258,6 +124,7 @@ source "src/mainboard/amd/Kconfig"
 source "src/mainboard/arima/Kconfig"
 source "src/mainboard/artecgroup/Kconfig"
 source "src/mainboard/asi/Kconfig"
+source "src/mainboard/asrock/Kconfig"
 source "src/mainboard/asus/Kconfig"
 source "src/mainboard/axus/Kconfig"
 source "src/mainboard/azza/Kconfig"
@@ -268,38 +135,71 @@ source "src/mainboard/compaq/Kconfig"
 source "src/mainboard/dell/Kconfig"
 source "src/mainboard/digitallogic/Kconfig"
 source "src/mainboard/eaglelion/Kconfig"
-source "src/mainboard/embeddedplanet/Kconfig"
+source "src/mainboard/ecs/Kconfig"
 source "src/mainboard/emulation/Kconfig"
+source "src/mainboard/getac/Kconfig"
 source "src/mainboard/gigabyte/Kconfig"
 source "src/mainboard/hp/Kconfig"
+source "src/mainboard/ibase/Kconfig"
 source "src/mainboard/ibm/Kconfig"
 source "src/mainboard/iei/Kconfig"
 source "src/mainboard/intel/Kconfig"
+source "src/mainboard/iwave/Kconfig"
 source "src/mainboard/iwill/Kconfig"
 source "src/mainboard/jetway/Kconfig"
 source "src/mainboard/kontron/Kconfig"
+source "src/mainboard/lanner/Kconfig"
+source "src/mainboard/lenovo/Kconfig"
 source "src/mainboard/lippert/Kconfig"
-source "src/mainboard/motorola/Kconfig"
+source "src/mainboard/mitac/Kconfig"
 source "src/mainboard/msi/Kconfig"
 source "src/mainboard/nec/Kconfig"
 source "src/mainboard/newisys/Kconfig"
+source "src/mainboard/nokia/Kconfig"
 source "src/mainboard/nvidia/Kconfig"
-source "src/mainboard/olpc/Kconfig"
 source "src/mainboard/pcengines/Kconfig"
 source "src/mainboard/rca/Kconfig"
+source "src/mainboard/roda/Kconfig"
+source "src/mainboard/soyo/Kconfig"
 source "src/mainboard/sunw/Kconfig"
 source "src/mainboard/supermicro/Kconfig"
 source "src/mainboard/technexion/Kconfig"
 source "src/mainboard/technologic/Kconfig"
 source "src/mainboard/televideo/Kconfig"
 source "src/mainboard/thomson/Kconfig"
-source "src/mainboard/totalimpact/Kconfig"
+source "src/mainboard/traverse/Kconfig"
 source "src/mainboard/tyan/Kconfig"
 source "src/mainboard/via/Kconfig"
-
+source "src/mainboard/winent/Kconfig"
+source "src/mainboard/wyse/Kconfig"
+
+config BOARD_ROMSIZE_KB_128
+       bool
+config BOARD_ROMSIZE_KB_256
+       bool
+config BOARD_ROMSIZE_KB_512
+       bool
+config BOARD_ROMSIZE_KB_1024
+       bool
+config BOARD_ROMSIZE_KB_2048
+       bool
+config BOARD_ROMSIZE_KB_4096
+       bool
+
+# TODO: No help text possible for choice fields?
 choice
        prompt "ROM chip size"
-       default COREBOOT_ROMSIZE_KB_256
+       default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
+       default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
+       default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
+       default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
+       default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
+       default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
+       help
+         Select the size of the ROM chip you intend to flash coreboot on.
+
+         The build system will take care of creating a coreboot.rom file
+         of the matching size.
 
 config COREBOOT_ROMSIZE_KB_128
        bool "128 KB"
@@ -333,6 +233,7 @@ config COREBOOT_ROMSIZE_KB_4096
 
 endchoice
 
+# Map the config names to an integer (KB).
 config COREBOOT_ROMSIZE_KB
        int
        default 128 if COREBOOT_ROMSIZE_KB_128
@@ -341,8 +242,33 @@ config COREBOOT_ROMSIZE_KB
        default 1024 if COREBOOT_ROMSIZE_KB_1024
        default 2048 if COREBOOT_ROMSIZE_KB_2048
        default 4096 if COREBOOT_ROMSIZE_KB_4096
-       help
-         Map the config names to an integer.
 
-endmenu
+# Map the config names to a hex value (bytes).
+config ROM_SIZE
+       hex
+       default 0x20000 if COREBOOT_ROMSIZE_KB_128
+       default 0x40000 if COREBOOT_ROMSIZE_KB_256
+       default 0x80000 if COREBOOT_ROMSIZE_KB_512
+       default 0x100000 if COREBOOT_ROMSIZE_KB_1024
+       default 0x200000 if COREBOOT_ROMSIZE_KB_2048
+       default 0x400000 if COREBOOT_ROMSIZE_KB_4096
+
+config ENABLE_POWER_BUTTON
+       bool "Enable the power button" if POWER_BUTTON_IS_OPTIONAL
+       default y if POWER_BUTTON_DEFAULT_ENABLE
+       default n if POWER_BUTTON_DEFAULT_DISABLE
+       help
+         The selected mainboard can optionally have the power button tied
+         to ground with a jumper so that the button appears to be
+         constantly depressed. If this option is enabled and the jumper is
+         installed then the board will turn on, but turn off again after a
+         short timeout, usually 4 seconds.
+
+         Select Y here if you have removed the jumper and want to use an
+         actual power button. Select N if you have the jumper installed.
+
+config ENABLE_POWER_BUTTON
+       def_bool y if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_ENABLE
+       def_bool n if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_DISABLE
 
+endmenu