-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: spi: Microchip XEC General Purpose SPI (GPSPI) controller
SPI driver for Microchip XEC family General Purpose SPI (GPSPI) controller. GPSPI is a byte oriented controller with hardware support of chip select assertion. The controller and driver also supports GPIO control of SPI chip select based upon the device tree configuration. The driver supports SPI asynchronous mode for byte by byte transfers (no DMA at this time). Signed-off-by: Manimaran A <manimaran.a@microchip.com>
- Loading branch information
1 parent
8fa312f
commit c720f06
Showing
6 changed files
with
865 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.