Skip to content

Commit a0adc1f

Browse files
jacob730204kartben
authored andcommitted
drivers: spi: add et171 spi driver
The Egis ET171 SPI controller was based on Andes ATCSPI200, but has since been modified. In particular, the WrTranCnt and RdTranCnt fields from the SPI Transfer Control Register have been moved to dedicated Wr_Tran_Cnt and Rd_Tran_Cnt registers. Signed-off-by: jacob kung <jacob.kung@egistec.com>
1 parent 30527e5 commit a0adc1f

File tree

6 files changed

+1162
-0
lines changed

6 files changed

+1162
-0
lines changed

drivers/spi/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ zephyr_library_sources_ifdef(CONFIG_SPI_CC13XX_CC26XX spi_cc13xx_cc26xx.c)
2323
zephyr_library_sources_ifdef(CONFIG_SPI_CC23X0 spi_cc23x0.c)
2424
zephyr_library_sources_ifdef(CONFIG_SPI_CDNS spi_cdns.c)
2525
zephyr_library_sources_ifdef(CONFIG_SPI_DW spi_dw.c)
26+
zephyr_library_sources_ifdef(CONFIG_SPI_EGIS_ET171 spi_egis_et171.c)
2627
zephyr_library_sources_ifdef(CONFIG_SPI_EMUL spi_emul.c)
2728
zephyr_library_sources_ifdef(CONFIG_SPI_GD32 spi_gd32.c)
2829
zephyr_library_sources_ifdef(CONFIG_SPI_GRLIB_SPIMCTRL spi_grlib_spimctrl.c)

drivers/spi/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ source "drivers/spi/Kconfig.cc13xx_cc26xx"
103103
source "drivers/spi/Kconfig.cc23x0"
104104
source "drivers/spi/Kconfig.cdns"
105105
source "drivers/spi/Kconfig.dw"
106+
source "drivers/spi/Kconfig.egis_et171"
106107
source "drivers/spi/Kconfig.esp32"
107108
source "drivers/spi/Kconfig.gd32"
108109
source "drivers/spi/Kconfig.grlib_spimctrl"

drivers/spi/Kconfig.egis_et171

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Kconfig Egis ET171 SPI configuration options
2+
#
3+
# Copyright (c) 2022 Andes Technology Corporation.
4+
# Copyright (c) 2025 Egis Technology Inc.
5+
#
6+
# SPDX-License-Identifier: Apache-2.0
7+
#
8+
9+
config SPI_EGIS_ET171
10+
bool "Andes ATCSPI200-based Egis ET171 SPI driver"
11+
default y
12+
depends on DT_HAS_EGIS_ET171_SPI_ENABLED
13+
help
14+
Enable driver for Andes ATCSPI200-based Egis ET171 SPI controller
15+
16+
if SPI_EGIS_ET171
17+
18+
config EGIS_SPI_DMA_MODE
19+
bool "Using DMA mode for SPI driver"
20+
default y
21+
depends on DMA
22+
23+
endif # SPI_EGIS_ET171

0 commit comments

Comments
 (0)