diff options
author | Nicolas Boichat <drinkcat@google.com> | 2017-04-17 08:02:38 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-04-25 05:52:34 -0700 |
commit | be294d4efbae12c006320b09ca699de660ea6278 (patch) | |
tree | a0da7ced837fa749b2b07bd82f4e230673126891 /board/hammer/board.c | |
parent | 896409ef79b1d1c1c25bb8e410474b43a15238a5 (diff) | |
download | chrome-ec-be294d4efbae12c006320b09ca699de660ea6278.tar.gz |
hammer: Only define required options for RO and RW
RO does not need touchpad/keyboard driver or I2C passthru, RW does
not need RW verification, let's shrink both images by only including
required config options.
BRANCH=none
BUG=b:35582031
TEST=Build and flash hammer: still functional.
build/hammer/RO/ec.RO.flat shrank by 10144 bytes: (45868 to 35724)
build/hammer/RW/ec.RW.flat shrank by 2764 bytes: (45332 to 42568)
Change-Id: Iff0feb4e8446cc9f2e32103cd383fddae3234fec
Reviewed-on: https://chromium-review.googlesource.com/479492
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/hammer/board.c')
-rw-r--r-- | board/hammer/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/hammer/board.c b/board/hammer/board.c index 01f077d91e..c51dfdba81 100644 --- a/board/hammer/board.c +++ b/board/hammer/board.c @@ -45,6 +45,7 @@ BUILD_ASSERT(ARRAY_SIZE(usb_strings) == USB_STR_COUNT); * usb_i2c_board_disable to be defined to enable and disable the I2C bridge. */ +#ifdef SECTION_IS_RW /* I2C ports */ const struct i2c_port_t i2c_ports[] = { {"master", I2C_PORT_MASTER, 400, @@ -60,6 +61,7 @@ BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); int usb_i2c_board_enable(void) { return EC_SUCCESS; } void usb_i2c_board_disable(void) {} +#endif /****************************************************************************** * Initialize board. |