| ## This file is part of the coreboot project. |
| ## |
| ## Copyright 2013 Google Inc. All rights reserved. |
| ## |
| ## This program is free software; you can redistribute it and/or modify |
| ## it under the terms of the GNU General Public License as published by |
| ## the Free Software Foundation; version 2 of the License. |
| ## |
| ## This program is distributed in the hope that it will be useful, |
| ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| ## GNU General Public License for more details. |
| ## |
| ## You should have received a copy of the GNU General Public License |
| ## along with this program; if not, write to the Free Software |
| ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| |
| config DRIVER_MKBP |
| bool "Enable support for the ChromeOS EC" |
| default n |
| |
| choice |
| prompt "ChromeOS EC bus" |
| default DRIVER_MKBP_LPC |
| depends on DRIVER_MKBP |
| help |
| The type of bus the ChromeOS EC is connected with. |
| |
| config DRIVER_MKBP_LPC |
| bool "LPC" |
| |
| config DRIVER_MKBP_I2C |
| bool "I2C (currently untested)" |
| |
| config DRIVER_MKBP_SPI |
| bool "SPI (currently unimplemented)" |
| |
| endchoice |
| |
| config DRIVER_MKBP_I2C_BUS |
| int "ChromeOS EC I2C bus" |
| depends on DRIVER_MKBP_I2C |
| help |
| The number of the I2C bus the ChromeOS EC is on. |
| |
| config DRIVER_MKBP_I2C_ADDR |
| hex "ChromeOS EC I2C address" |
| depends on DRIVER_MKBP_I2C |
| help |
| The address of the ChromeOS EC on its I2C bus. |