Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: spi: xec GPSPI driver update #59239

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions drivers/spi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ zephyr_library_sources_ifdef(CONFIG_SPI_AMBIQ spi_ambiq.c)
zephyr_library_sources_ifdef(CONFIG_SPI_RPI_PICO_PIO spi_rpi_pico_pio.c)
zephyr_library_sources_ifdef(CONFIG_MSPI_AMBIQ mspi_ambiq.c)
zephyr_library_sources_ifdef(CONFIG_SPI_MCHP_MSS spi_mchp_mss.c)
zephyr_library_sources_ifdef(CONFIG_SPI_XEC_GPSPI spi_xec_gpspi.c)

zephyr_library_sources_ifdef(CONFIG_SPI_RTIO spi_rtio.c)
zephyr_library_sources_ifdef(CONFIG_SPI_ASYNC spi_signal.c)
zephyr_library_sources_ifdef(CONFIG_USERSPACE spi_handlers.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/spi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,6 @@ source "drivers/spi/Kconfig.npcx"
source "drivers/spi/Kconfig.mchp_mss"

source "drivers/spi/Kconfig.grlib_spimctrl"
source "drivers/spi/Kconfig.xec_gpspi"

endif # SPI
25 changes: 25 additions & 0 deletions drivers/spi/Kconfig.xec_gpspi
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Microchip XEC GPSPI

# Copyright (c) 2022 Microchip Technology Inc.
# SPDX-License-Identifier: Apache-2.0

config SPI_XEC_GPSPI
bool "Microchip MEC15x/MEC172x XEC GPSPI driver"
default y
depends on DT_HAS_MICROCHIP_XEC_GPSPI_ENABLED
help
Enable support for Microchip MEC15xx/MEC172x XEC GPSPI driver.
The GPSPI controller is a simple, byte-by-byte GPI controller
using GPIO's as chip select.

if SPI_XEC_GPSPI

config SPI_XEC_GPSPI_DMA
bool "Microchip XEC GPSPI DMA Support"
select DMA
help
Enable the SPI DMA mode for GPSPI instances
that enable dma channels in their device tree node.
Enables Microchip XEC DMA driver.

endif # SPI_XEC_GPSPI
Loading
Loading