Skip to content

Commit de16c32

Browse files
looongbinbroonie
authored andcommitted
spi: sophgo: add SG2044 SPI NOR controller driver
Add support for SG2044 SPI NOR controller in Sophgo SoC. Signed-off-by: Longbin Li <looong.bin@gmail.com> Link: https://patch.msgid.link/20250304083548.10101-3-looong.bin@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 9f95e2d commit de16c32

File tree

3 files changed

+510
-0
lines changed

3 files changed

+510
-0
lines changed

drivers/spi/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,15 @@ config SPI_SN_F_OSPI
10341034
for connecting an SPI Flash memory over up to 8-bit wide bus.
10351035
It supports indirect access mode only.
10361036

1037+
config SPI_SG2044_NOR
1038+
tristate "SG2044 SPI NOR Controller"
1039+
depends on ARCH_SOPHGO || COMPILE_TEST
1040+
help
1041+
This enables support for the SG2044 SPI NOR controller,
1042+
which supports Dual/Quad read and write operations while
1043+
also supporting 3Byte address devices and 4Byte address
1044+
devices.
1045+
10371046
config SPI_SPRD
10381047
tristate "Spreadtrum SPI controller"
10391048
depends on ARCH_SPRD || COMPILE_TEST

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ obj-$(CONFIG_SPI_SH_SCI) += spi-sh-sci.o
136136
obj-$(CONFIG_SPI_SIFIVE) += spi-sifive.o
137137
obj-$(CONFIG_SPI_SLAVE_MT27XX) += spi-slave-mt27xx.o
138138
obj-$(CONFIG_SPI_SN_F_OSPI) += spi-sn-f-ospi.o
139+
obj-$(CONFIG_SPI_SG2044_NOR) += spi-sg2044-nor.o
139140
obj-$(CONFIG_SPI_SPRD) += spi-sprd.o
140141
obj-$(CONFIG_SPI_SPRD_ADI) += spi-sprd-adi.o
141142
obj-$(CONFIG_SPI_STM32) += spi-stm32.o

0 commit comments

Comments
 (0)