diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2017-11-03 14:43:59 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-27 03:42:55 +0000 |
commit | 60efa43ecfe3511854281f7396de4783ed86906e (patch) | |
tree | 3f7213081ee90b90468fb0b8c28bf8c762f12818 | |
parent | 58cb77591678b700ed0716ee446843c077057de5 (diff) | |
download | chrome-ec-60efa43ecfe3511854281f7396de4783ed86906e.tar.gz |
cr50: Provision DIOM4 as input
This will allow using this pin a physical presence indicator on
certain platforms.
BRANCH=cr50,cr50-mp
BUG=b:144455668
TEST=tried the new image on the red board, observed DIOM4 level
changing when shorting it to ground.
Change-Id: I7c20b094d73d49321921c5afa67e0db9825ea82f
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2076499
Reviewed-by: Yicheng Li <yichengli@chromium.org>
Commit-Queue: Yicheng Li <yichengli@chromium.org>
Tested-by: Yicheng Li <yichengli@chromium.org>
-rw-r--r-- | board/cr50/gpio.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/cr50/gpio.inc b/board/cr50/gpio.inc index 9457adba99..47c35fb2d2 100644 --- a/board/cr50/gpio.inc +++ b/board/cr50/gpio.inc @@ -50,6 +50,7 @@ * GPIO0.0 int_ap_l * GPIO0.1 ec_flash_select * GPIO0.2 ap_flash_select + * GPIO0.3 DIOM4 used for physical presence * GPIO0.4 sys_rst_l_out * GPIO0.5 ccd_mode_l * GPIO0.6 batt_pres_l @@ -162,6 +163,12 @@ GPIO(SPI_MOSI, PIN(0, 7), GPIO_INPUT | GPIO_PULL_DOWN) GPIO(SPI_CLK, PIN(0, 8), GPIO_INPUT | GPIO_PULL_DOWN) GPIO(SPI_CS_L, PIN(0, 9), GPIO_INPUT) +/* + * Generic pulled up input used for physical presence indication on some + * devices. + */ +GPIO(DIOM4, PIN(0, 3), GPIO_INPUT) + /* Used during *chip* factory process. */ GPIO(DIOB4, PIN(0, 10), GPIO_INPUT | GPIO_PULL_DOWN) @@ -231,6 +238,9 @@ UNIMPLEMENTED(ENTERING_RW) /* GPIOs - mark outputs as inputs too, to read back from the driven pad */ PINMUX(GPIO(INT_AP_L), A5, DIO_INPUT) + +PINMUX(GPIO(DIOM4), M4, DIO_INPUT | GPIO_PULL_UP) + PINMUX(GPIO(EC_FLASH_SELECT), B2, DIO_INPUT) PINMUX(GPIO(MONITOR_I2CS_SDA), A1, GPIO_INPUT) |