diff options
author | Alec Berg <alecaberg@chromium.org> | 2014-06-03 11:54:36 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-06-04 20:59:11 +0000 |
commit | 46e9d7b468085c6c1c3c4e3852484a75a74faa08 (patch) | |
tree | 74adacaefd8b58f7bb5d129c56a50b32b5213fb9 /board/samus_pd/usb_pd_config.h | |
parent | 976260dc69c4356b866b901ade15895a59a0077b (diff) | |
download | chrome-ec-46e9d7b468085c6c1c3c4e3852484a75a74faa08.tar.gz |
samus_pd: pd tx should output low when not transmitting
Change pd spi tx pin to output low when not transmitting.
BUG=none
BRANCH=none
TEST=tested on samus by making sure we can still talk PD
to charger and charge.
Change-Id: I33665d01860c765cc0ff2e7813b04cac0ab9c8fe
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/202511
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/samus_pd/usb_pd_config.h')
-rw-r--r-- | board/samus_pd/usb_pd_config.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/board/samus_pd/usb_pd_config.h b/board/samus_pd/usb_pd_config.h index 016394e8bb..767c104e71 100644 --- a/board/samus_pd/usb_pd_config.h +++ b/board/samus_pd/usb_pd_config.h @@ -59,7 +59,10 @@ static inline void pd_tx_enable(int polarity) /* Put the TX driver in Hi-Z state */ static inline void pd_tx_disable(int polarity) { - /* put SPI TX in Hi-Z */ + /* + * output low on SPI TX by removing alternate function mode which + * restores to the initial configuration in board.c + */ if (polarity) /* PE14 is SPI1 MISO */ gpio_set_alternate_function(GPIO_E, 0x4000, -1); else /* PB4 is SPI1 MISO */ |