Skip to content

Commit 3d44508

Browse files
rbabubcarlescufi
authored andcommitted
drivers: spi: Add Intel SPI penwell driver
Added support for intel pch penwell spi driver. Signed-off-by: Ramesh Babu B <[email protected]>
1 parent acfe688 commit 3d44508

File tree

6 files changed

+1182
-0
lines changed

6 files changed

+1182
-0
lines changed

drivers/spi/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ zephyr_library_sources_ifdef(CONFIG_SPI_PL022 spi_pl022.c)
3535
zephyr_library_sources_ifdef(CONFIG_SPI_ANDES_ATCSPI200 spi_andes_atcspi200.c)
3636
zephyr_library_sources_ifdef(CONFIG_NXP_S32_SPI spi_nxp_s32.c)
3737
zephyr_library_sources_ifdef(CONFIG_SPI_XMC4XXX spi_xmc4xxx.c)
38+
zephyr_library_sources_ifdef(CONFIG_SPI_PW spi_pw.c)
3839

3940
zephyr_library_sources_ifdef(CONFIG_SPI_ASYNC spi_signal.c)
4041
zephyr_library_sources_ifdef(CONFIG_USERSPACE spi_handlers.c)

drivers/spi/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,6 @@ source "drivers/spi/Kconfig.nxp_s32"
109109

110110
source "drivers/spi/Kconfig.xmc4xxx"
111111

112+
source "drivers/spi/Kconfig.pw"
113+
112114
endif # SPI

drivers/spi/Kconfig.pw

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2023 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
menuconfig SPI_PW
5+
bool "Penwell SPI driver"
6+
default y
7+
depends on DT_HAS_INTEL_PENWELL_SPI_ENABLED
8+
help
9+
Enable the Penwell SPI driver.
10+
11+
if SPI_PW
12+
13+
config SPI_PW_INTERRUPT
14+
bool "Penwell SPI Interrupt mode Support"
15+
help
16+
Enable Interrupt support for the SPI Driver.
17+
18+
endif # SPI_PW

0 commit comments

Comments
 (0)