summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2016-06-30 14:18:14 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-07-14 23:34:38 -0700
commit41f872ed53be4bc33dd1127c33057d884f2fd6c2 (patch)
tree669757ca613271872e0d06cdf2c6d53c3e1d687f /chip
parentf6c7abb503f04bd16071534aae7af541ea328d27 (diff)
downloadchrome-ec-41f872ed53be4bc33dd1127c33057d884f2fd6c2.tar.gz
g: tristate spi master pins
Having DIO A4, A8, and A14 connected to the spi master output pads prevents reef from booting. We need to tristate those pins when spi ccd is not in use. This change disconnects those pins from the spi peripheral when spi is disabled and reconnects them when spi is enabled. BUG=chrome-os-partner:53582 BRANCH=none TEST=manual use 'pinmux' to verify DIOA4, DIOA8, and DIOA14 are set have GPIO 7, 8, and 9 as their output sources when not using the usb spi interface. Check the usb spi interface still works. Enable usb spi then disable ccd and check that the pins are connected back to the non-peripheral gpios. Verify the AP on kevin and reef can be flashed using servo. Verify the AP boots successfully on both. Change-Id: I85d70422a30da445076432d2bfc81960aeba8578 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/357883 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/g/spi_master.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/chip/g/spi_master.c b/chip/g/spi_master.c
index aa9f9707b8..f3ddbd1bdb 100644
--- a/chip/g/spi_master.c
+++ b/chip/g/spi_master.c
@@ -213,9 +213,7 @@ static void spi_init(void)
#ifdef CONFIG_SPI_MASTER_CONFIGURE_GPIOS
/* Set SPI_MISO as an input */
- GWRITE_FIELD(PINMUX, DIOA11_CTL, IE, 1); /* SPS_MISO */
- /* Set SPI_CS to be an internal pull up */
- GWRITE_FIELD(PINMUX, DIOA14_CTL, PU, 1);
+ GWRITE_FIELD(PINMUX, DIOA11_CTL, IE, 1); /* SPI_MISO */
#endif
for (i = 0; i < SPI_NUM_PORTS; i++) {