diff options
author | Scott Worley <scott.worley@microchip.corp-partner.google.com> | 2020-12-19 10:04:06 -0500 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-10 02:27:40 +0000 |
commit | d7d0a35f2a6530eaf60dd5f3263cd5a6ae281a31 (patch) | |
tree | c726fe0341127824dea2f14be6e9ba510bb62cfb /chip | |
parent | b5e1a901f31c2900a93de67db16573b3c832ff81 (diff) | |
download | chrome-ec-d7d0a35f2a6530eaf60dd5f3263cd5a6ae281a31.tar.gz |
mchp: MEC152X does not have GP-SPI controller
MEC152X does not implement the general purpose SPI controllers
only the QMSPI controller. Add guard logic to print build error
if GP-SPI is mistakenly enabled.
BRANCH=none
BUG=b:177463787
TEST=Booted skylake RVP to Chrome OS
Signed-off-by: Scott Worley <scott.worley@microchip.corp-partner.google.com>
Change-Id: Id5d789063d50d9edb6f731c1f1f38a1bda8cb93e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2601204
Reviewed-by: Ravin Kumar <ravin.kumar@microchip.com>
Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Ravin Kumar <ravin.kumar@microchip.com>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/mchp/spi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chip/mchp/spi.c b/chip/mchp/spi.c index 5931b05f1d..48712e8b7e 100644 --- a/chip/mchp/spi.c +++ b/chip/mchp/spi.c @@ -28,7 +28,9 @@ #define SPI_BYTE_TRANSFER_TIMEOUT_US (3 * MSEC) #define SPI_BYTE_TRANSFER_POLL_INTERVAL_US 100 - +#if defined(CONFIG_MCHP_GPSPI) && defined(CHIP_FAMILY_MEC152X) +#error "FORCED BUILD ERROR: MEC152X does not implement GPSPI!" +#endif static const struct dma_option spi_rx_option[] = { { |