diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2015-10-30 18:22:28 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-11-03 09:08:21 -0800 |
commit | 24316025756c6ccdccb06a35e0f343780ccfe0f0 (patch) | |
tree | 5222662e7e4e148ad07d7ab9ece3f18f6b59ecbd /board/npcx_evb/board.h | |
parent | b1a3d8eda54e06bf2cf99bc7dd6abfa368a5bdab (diff) | |
download | chrome-ec-24316025756c6ccdccb06a35e0f343780ccfe0f0.tar.gz |
cleanup: Standardize use of CONFIG_I2C and add MASTER/SLAVE CONFIGs
Some chips previously defined CONFIG_I2C and others didn't. Standardize
the usage by removing CONFIG_I2C from all config_chip files and force it
to be defined at the board level. Also, make boards define
CONFIG_I2C_MASTER and/or CONFIG_I2C_SLAVE based on the I2C interfaces
they will use - this will assist with some later cleanup.
BUG=chromium:550206
TEST=`make buildall -j`
BRANCH=None
Change-Id: I2f0970e494ea49611abc315587c7c9aa0bc2d14a
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/310070
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/npcx_evb/board.h')
-rw-r--r-- | board/npcx_evb/board.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/npcx_evb/board.h b/board/npcx_evb/board.h index 316ca3ede7..f6386c82c5 100644 --- a/board/npcx_evb/board.h +++ b/board/npcx_evb/board.h @@ -20,6 +20,8 @@ #define CONFIG_SPI_FLASH #define CONFIG_FLASH_SIZE 0x00800000 /* 8MB spi flash */ #define CONFIG_SPI_FLASH_W25Q64 +#define CONFIG_I2C +#define CONFIG_I2C_MASTER #define CONFIG_KEYBOARD_BOARD_CONFIG #define CONFIG_KEYBOARD_PROTOCOL_8042 #define CONFIG_POWER_BUTTON |