diff options
author | Dino Li <dino.li@ite.com.tw> | 2015-06-29 13:54:16 +0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-30 12:22:02 +0000 |
commit | 60e110acd147456319b1a671daa44aa817aaec2a (patch) | |
tree | 117705d739cf67ba98f5f36189e848f432050297 /chip/it83xx/config_chip.h | |
parent | 75b95672ac169a1ee61a3d97c9223dc91384bff7 (diff) | |
download | chrome-ec-60e110acd147456319b1a671daa44aa817aaec2a.tar.gz |
it8380dev: add i2c control module
Add i2c control module for emulation board.
To rename CONFIG_ to CONFIG_IT83XX_ for IT83XX series configuration.
Signed-off-by: Dino Li <dino.li@ite.com.tw>
BRANCH=none
BUG=none
TEST=1. console command "i2cscan" found devices correctly.
2. console command "i2cxfer".
2-a. port2 + battery, i2cxfer r, r16, and rlen OK.
2-b. port1 + slave evb, i2cxfer r, r16, rlen, w, and w16 OK.
Change-Id: I67165f7dcdef538ba6dd03b47f1621a73cc68379
Reviewed-on: https://chromium-review.googlesource.com/263678
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Dino Li <dino.li@ite.com.tw>
Tested-by: Dino Li <dino.li@ite.com.tw>
Diffstat (limited to 'chip/it83xx/config_chip.h')
-rw-r--r-- | chip/it83xx/config_chip.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/chip/it83xx/config_chip.h b/chip/it83xx/config_chip.h index 6ec6fbee4c..b38decefdc 100644 --- a/chip/it83xx/config_chip.h +++ b/chip/it83xx/config_chip.h @@ -22,6 +22,9 @@ /* Default PLL frequency. */ #define PLL_CLOCK 48000000 +/* Number of I2C ports */ +#define I2C_PORT_COUNT 3 + /****************************************************************************/ /* Memory mapping */ @@ -76,15 +79,15 @@ #define CONFIG_HW_SPECIFIC_UDELAY /* Optional features present on this chip */ -#undef CONFIG_I2C -#undef CONFIG_FLASH -#undef CONFIG_WATCHDOG -#define CONFIG_PWM #define CONFIG_ADC #define CONFIG_EC2I +#undef CONFIG_FLASH +#define CONFIG_I2C #define CONFIG_LPC -#define CONFIG_SPI #define CONFIG_PECI +#define CONFIG_PWM +#define CONFIG_SPI +#undef CONFIG_WATCHDOG #define GPIO_PIN(port, index) GPIO_##port, (1 << index) #define GPIO_PIN_MASK(port, mask) GPIO_##port, (mask) |