summaryrefslogtreecommitdiff
path: root/board/nocturne_fp/gpio_rw.inc
diff options
context:
space:
mode:
Diffstat (limited to 'board/nocturne_fp/gpio_rw.inc')
-rw-r--r--board/nocturne_fp/gpio_rw.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/board/nocturne_fp/gpio_rw.inc b/board/nocturne_fp/gpio_rw.inc
index 06dd93c9e3..ad3ebffdd5 100644
--- a/board/nocturne_fp/gpio_rw.inc
+++ b/board/nocturne_fp/gpio_rw.inc
@@ -33,7 +33,15 @@ GPIO(FP_SPI_SEL, PIN(E, 1), GPIO_INPUT | GPIO_PULL_UP)
GPIO(DIVIDER_HIGHSIDE, PIN(B, 8), GPIO_OUT_LOW)
GPIO(FP_RST_ODL, PIN(E, 0), GPIO_OUT_HIGH)
GPIO(SPI4_NSS, PIN(E, 4), GPIO_OUT_HIGH)
+GPIO(SPI4_ALT_NSS, PIN(E, 11), GPIO_OUT_HIGH)
GPIO(USER_PRES_L, PIN(C, 5), GPIO_ODR_HIGH)
-/* SPI4 master to sensor: PE2/5/6 (CLK/MISO/MOSI) */
+/* Default SPI4 master to sensor: PE2/5/6 (CLK/MISO/MOSI) */
ALTERNATE(PIN_MASK(E, 0x0064), GPIO_ALT_SPI, MODULE_SPI_MASTER, 0)
+
+/* See board_rw.c for the alternate configuration that we use on
+ * development boards, which overrides the UNUSED values below.
+ */
+UNUSED(PIN(E, 12)) /* Alternate SPI4 master to sensor CLK */
+UNUSED(PIN(E, 13)) /* Alternate SPI4 master to sensor MISO */
+UNUSED(PIN(E, 14)) /* Alternate SPI4 master to sensor MOSI */