diff options
author | Craig Hesling <hesling@chromium.org> | 2020-02-14 14:42:38 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-25 22:58:08 +0000 |
commit | 14a23fb197983a0066fb95199f3a5120447b7169 (patch) | |
tree | 53f934899dabb4d8145805f7fefd346288101344 /board/nucleo-h743zi/gpio.inc | |
parent | 5ee54edfd520ce1a447cf0b04d1fcdf3f618188e (diff) | |
download | chrome-ec-14a23fb197983a0066fb95199f3a5120447b7169.tar.gz |
nucleo-h743zi: Separated into baseboard
This allows for creating multiple projects on top of the
nucleo-h743zi platform. The intended use for this is to
have a fingerprint board/project that pulls in all FPMCU
specific config and libraries, while still maintaining
another pure nucleo-h743zi board/project that can be used
for platform testing and tuning.
I suspect there will be more test boards/projects that use the
nucleo-h743zi baseboard in the future. A project/board would
be used as a way to create a specific test platform that can
isolate an individual feature.
Note, this does make use of recursively including the
basboard gpio table. This requires the use of
https://crrev.com/c/2056498
(gpio: Free gpio.inc from oppressive order).
This also removes malloc support.
BRANCH=none
BUG=none
TEST=make BOARD=nucleo-h743zi
# Copy binary to mass storage
# Connect to console and change clock sources
Change-Id: I455274e0efb8ec374443314d351e254f1347a1a9
Signed-off-by: Craig Hesling <hesling@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2057498
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/nucleo-h743zi/gpio.inc')
-rw-r--r-- | board/nucleo-h743zi/gpio.inc | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/board/nucleo-h743zi/gpio.inc b/board/nucleo-h743zi/gpio.inc index 0e458365d2..0f2bb32d75 100644 --- a/board/nucleo-h743zi/gpio.inc +++ b/board/nucleo-h743zi/gpio.inc @@ -11,24 +11,8 @@ * The V2 is denoted by "Nucleo-H743ZI2" vs. "Nucleo-H743ZI". */ -/* Interrupts */ -GPIO_INT(SPI1_NSS, PIN(A, 4), GPIO_INPUT, spi_event) +#include "base-gpio.inc" +/* Interrupts */ GPIO_INT(PCH_SLP_S0_L, PIN(D, 13), GPIO_INT_BOTH, slp_event) GPIO_INT(PCH_SLP_S3_L, PIN(A, 11), GPIO_INT_BOTH, slp_event) -GPIO_INT(BTN1, PIN(C, 13), GPIO_INT_BOTH, button_event) - -GPIO(WP, PIN(B, 7), GPIO_INPUT) - -/* Outputs */ -GPIO(EC_INT_L, PIN(A, 1), GPIO_OUT_HIGH) -GPIO(LED1, PIN(B, 0), GPIO_OUT_LOW) /* Green */ -GPIO(LED2, PIN(E, 1), GPIO_OUT_LOW) /* Yellow */ -GPIO(LED3, PIN(B, 14), GPIO_OUT_LOW) /* Red */ - -UNIMPLEMENTED(ENTERING_RW) - -/* USART3: PD8/PD9 */ -ALTERNATE(PIN_MASK(D, 0x0300), GPIO_ALT_USART, MODULE_UART, GPIO_PULL_UP) -/* SPI1 slave from the AP: PA4/5/6/7 */ -ALTERNATE(PIN_MASK(A, 0x00f0), GPIO_ALT_SPI, MODULE_SPI, 0) |