diff options
author | Koro Chen <koro.chen@mediatek.com> | 2016-07-11 14:49:33 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-07-13 08:04:08 -0700 |
commit | 5c0ec1cab818582f8ecc4613e684172b1c1c62a5 (patch) | |
tree | 1d571893aaa1186dd1c963f7fb116c19c277bbee /board/elm | |
parent | 321130438ef3ce681cdd1911bf72de66e1b7ff23 (diff) | |
download | chrome-ec-5c0ec1cab818582f8ecc4613e684172b1c1c62a5.tar.gz |
elm: Add sensor power control
PD11 is added in PVT to control power of sensors
BRANCH=none
BUG=chrome-os-partner:54129
TEST=verify sensor power can be controlled on a reworked elm
Change-Id: Ib7457c9c21a26ec853b00f3709922aab70c9d514
Signed-off-by: Koro Chen <koro.chen@mediatek.com>
Reviewed-on: https://chromium-review.googlesource.com/359153
Reviewed-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'board/elm')
-rw-r--r-- | board/elm/gpio.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/elm/gpio.inc b/board/elm/gpio.inc index 16591f11cd..d9193938a5 100644 --- a/board/elm/gpio.inc +++ b/board/elm/gpio.inc @@ -103,6 +103,9 @@ GPIO(I2C1_SDA, PIN(B, 14), GPIO_INPUT) GPIO(SPI2_NSS, PIN(D, 0), GPIO_OUT_HIGH) /* mainboard */ GPIO(SPI2_NSS_DB, PIN(F, 6), GPIO_OUT_HIGH) /* daughterboard */ +/* sensor power control */ +GPIO(SENSOR_PWR_EN_L, PIN(D, 11), GPIO_OUT_LOW) + ALTERNATE(PIN_MASK(A, 0x0600), 1, MODULE_UART, 0) /* USART1: PA9/PA10 */ ALTERNATE(PIN_MASK(B, 0x00c0), 1, MODULE_I2C, 0) /* I2C MASTER:PB6/7 */ ALTERNATE(PIN_MASK(B, 0x6000), 5, MODULE_I2C, 0) /* I2C MASTER:PB13/14 */ |