nyan*: Switching unused pin to GPIO
Switching unused pin to GPIO to avoid SPI1 conflicting. BUG=chrome-os-partner:26701 BRANCH=none TEST=Built and boot on Nyan Change-Id: I7de5b8d015f6d02baadd41b1b272dfc49d17c376 Signed-off-by: Neil Chen <neilc@nvidia.com> Reviewed-on: https://chromium-review.googlesource.com/189970 Reviewed-by: Gabe Black <gabeblack@chromium.org>
This commit is contained in:
parent
c98ae1fee5
commit
edf12f441a
2 changed files with 16 additions and 0 deletions
|
|
@ -111,6 +111,14 @@ static void setup_pinmux(void)
|
|||
PINMUX_PULL_NONE |
|
||||
PINMUX_INPUT_ENABLE);
|
||||
|
||||
// switch unused pin to GPIO
|
||||
gpio_set_mode(GPIO(X3), GPIO_MODE_GPIO);
|
||||
gpio_set_mode(GPIO(X4), GPIO_MODE_GPIO);
|
||||
gpio_set_mode(GPIO(X5), GPIO_MODE_GPIO);
|
||||
gpio_set_mode(GPIO(X6), GPIO_MODE_GPIO);
|
||||
gpio_set_mode(GPIO(X7), GPIO_MODE_GPIO);
|
||||
gpio_set_mode(GPIO(W3), GPIO_MODE_GPIO);
|
||||
|
||||
// I2C1 clock.
|
||||
pinmux_set_config(PINMUX_GEN1_I2C_SCL_INDEX,
|
||||
PINMUX_GEN1_I2C_SCL_FUNC_I2C1 | PINMUX_INPUT_ENABLE);
|
||||
|
|
|
|||
|
|
@ -111,6 +111,14 @@ static void setup_pinmux(void)
|
|||
PINMUX_PULL_NONE |
|
||||
PINMUX_INPUT_ENABLE);
|
||||
|
||||
// switch unused pin to GPIO
|
||||
gpio_set_mode(GPIO(X3), GPIO_MODE_GPIO);
|
||||
gpio_set_mode(GPIO(X4), GPIO_MODE_GPIO);
|
||||
gpio_set_mode(GPIO(X5), GPIO_MODE_GPIO);
|
||||
gpio_set_mode(GPIO(X6), GPIO_MODE_GPIO);
|
||||
gpio_set_mode(GPIO(X7), GPIO_MODE_GPIO);
|
||||
gpio_set_mode(GPIO(W3), GPIO_MODE_GPIO);
|
||||
|
||||
// I2C1 clock.
|
||||
pinmux_set_config(PINMUX_GEN1_I2C_SCL_INDEX,
|
||||
PINMUX_GEN1_I2C_SCL_FUNC_I2C1 | PINMUX_INPUT_ENABLE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue