diff options
Diffstat (limited to 'zephyr/Kconfig')
-rw-r--r-- | zephyr/Kconfig | 144 |
1 files changed, 75 insertions, 69 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig index 1d5dd67fe3..d120530391 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -30,6 +30,43 @@ config ZEPHYR This should always be enabled. It's a workaround for config.h not being available in some headers. +# Define PLATFORM_EC_... options to enable EC features. Each Kconfig should be +# matched by a line in zephyr/shim/include/config_chip.h which #edefines the +# corresponding EC CONFIG if this Kconfig is enabled. +# +# Please keep these in alphabetical order + +config PLATFORM_EC_CBI + bool "Enable the CBI EEPROM module" + depends on PLATFORM_EC_I2C + help + Enables various CBI accessors and host and console commands. One must + specify both I2C_PORT_EEPROM and I2C_ADDR_EEPROM_FLAGS to the CBI + EEPROM's i2c port and 7-bit i2c address. + +menuconfig PLATFORM_EC_ESPI + bool "Enable eSPI compatibility in platform/ec" + depends on ESPI && AP + default y + help + Enable eSPI shim layer. + +if PLATFORM_EC_ESPI + +config PLATFORM_EC_ESPI_VW_SLP_S3 + bool "SLP_S3 is an eSPI virtual wire instead of a GPIO" + help + For power sequencing, use an eSPI virtual wire instead of + defining GPIO_PCH_SLP_S3 in gpio_map.h. + +config PLATFORM_EC_ESPI_VW_SLP_S4 + bool "SLP_S4 is an eSPI virtual wire instead of a GPIO" + help + For power sequencing, use an eSPI virtual wire instead of + defining GPIO_PCH_SLP_S4 in gpio_map.h. + +endif # PLATFORM_EC_ESPI + config PLATFORM_EC_EXTPOWER_GPIO bool "Enable the GPIO-based external power detection module" depends on PLATFORM_EC_HOOKS && PLATFORM_EC_HOSTCMD @@ -40,7 +77,7 @@ config PLATFORM_EC_EXTPOWER_GPIO extpower_interrupt configured as the handler in gpio_map.h. menuconfig PLATFORM_EC_KEYBOARD - bool "Enable keybaord support" + bool "Enable keyboard support" default y help Enable compilation of support for scanning a keyboard and providing @@ -75,8 +112,6 @@ config PLATFORM_EC_KEYBOARD_COL2_INVERTED Refresh key will also trigger T key, which is in the next scanning column line. See http://b/156007029. -endif # PLATFORM_EC_KEYBOARD - config PLATFORM_EC_CONSOLE_CMD_KEYBOARD_8042 bool "Enable the keyboard commands" default y if PLATFORM_EC_KEYBOARD_PROTOCOL_8042 @@ -90,56 +125,7 @@ config PLATFORM_EC_CONSOLE_CMD_KEYBOARD_8042 kblog - Print or toggle keyboard event log (current disabled) typematic - Get/set typematic delays -menuconfig PLATFORM_EC_TIMER - bool "Enable the EC timer module" - default y - help - Enable compilation of the EC timer module - -if PLATFORM_EC_TIMER - -config PLATFORM_EC_TIMER_CMD_GETTIME - bool "Enable the gettime command" - default y - help - Enable the "gettime" command - -config PLATFORM_EC_TIMER_CMD_TIMERINFO - bool "Enable the timerinfo command" - default y - help - Enable the "timerinfo" command - -config PLATFORM_EC_TIMER_CMD_WAITMS - bool "Enable the waitms command" - default y - help - Enable the "waitms" command - -endif # PLATFORM_EC_TIMER - -menuconfig PLATFORM_EC_ESPI - bool "Enable eSPI compatibility in platform/ec" - depends on ESPI && AP - default y - help - Enable eSPI shim layer. - -if PLATFORM_EC_ESPI - -config PLATFORM_EC_ESPI_VW_SLP_S3 - bool "SLP_S3 is an eSPI virtual wire instead of a GPIO" - help - For power sequencing, use an eSPI virtual wire instead of - defining GPIO_PCH_SLP_S3 in gpio_map.h. - -config PLATFORM_EC_ESPI_VW_SLP_S4 - bool "SLP_S4 is an eSPI virtual wire instead of a GPIO" - help - For power sequencing, use an eSPI virtual wire instead of - defining GPIO_PCH_SLP_S4 in gpio_map.h. - -endif # PLATFORM_EC_ESPI +endif # PLATFORM_EC_KEYBOARD config PLATFORM_EC_HOOKS bool "Enable hooks and deferred compatibility shim" @@ -149,6 +135,16 @@ config PLATFORM_EC_HOOKS hook_call_deferred to Zephyr's work queues, and a compatible DECLARE_HOOK implementation. +config PLATFORM_EC_I2C + bool "Enable the EC i2c module" + default y + help + Enable compilation of the EC i2c module. Once enabled, it will be + possible to make calls using the old platform/ec i2c APIs defined + in include/i2c.h and implemented in common/i2c_master.c. Doing so + should make shimming other platform/ec modules which rely on i2c + communication "just work" without requiring any further code changes. + config PLATFORM_EC_HOSTCMD bool "Enable host commands shim" default y if AP @@ -162,16 +158,6 @@ config PLATFORM_EC_LID_SWITCH commands in platform/ec. This requires a GPIO named GPIO_LID_OPEN to be defined in gpio_map.h. -config PLATFORM_EC_I2C - bool "Enable the EC i2c module" - default y - help - Enable compilation of the EC i2c module. Once enabled, it will be - possible to make calls using the old platform/ec i2c APIs defined - in include/i2c.h and implemented in common/i2c_master.c. Doing so - should make shimming other platform/ec modules which rely on i2c - communication "just work" without requiring any further code changes. - config PLATFORM_EC_PORT80 bool "Enable the port80 module" default y if AP_X86 && PLATFORM_EC_POWERSEQ @@ -187,12 +173,32 @@ config PLATFORM_EC_POWER_BUTTON commands in platform/ec. This requires a GPIO named GPIO_POWER_BUTTON_L in gpio_map.h. -config PLATFORM_EC_CBI - bool "Enable the CBI EEPROM module" - depends on PLATFORM_EC_I2C +menuconfig PLATFORM_EC_TIMER + bool "Enable the EC timer module" + default y help - Enables various CBI accessors and host and console commands. One must - specify both I2C_PORT_EEPROM and I2C_ADDR_EEPROM_FLAGS to the CBI - EEPROM's i2c port and 7-bit i2c address. + Enable compilation of the EC timer module + +if PLATFORM_EC_TIMER + +config PLATFORM_EC_TIMER_CMD_GETTIME + bool "Enable the gettime command" + default y + help + Enable the "gettime" command + +config PLATFORM_EC_TIMER_CMD_TIMERINFO + bool "Enable the timerinfo command" + default y + help + Enable the "timerinfo" command + +config PLATFORM_EC_TIMER_CMD_WAITMS + bool "Enable the waitms command" + default y + help + Enable the "waitms" command + +endif # PLATFORM_EC_TIMER endif # PLATFORM_EC |