Skip to content

Commit 7f9fb67

Browse files
yilunxu1984broonie
authored andcommitted
regmap: add Intel SPI Slave to AVMM Bus Bridge support
This patch add support for regmap APIs that are intended to be used by the drivers of some SPI slave chips which integrate the "SPI slave to Avalon Master Bridge" (spi-avmm) IP. The spi-avmm IP acts as a bridge to convert encoded streams of bytes from the host to the chip's internal register read/write on Avalon bus. The driver implements the register read/write operations for a generic SPI master to access the sub devices behind spi-avmm bridge. Signed-off-by: Xu Yilun <yilun.xu@intel.com> Signed-off-by: Wu Hao <hao.wu@intel.com> Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com> Signed-off-by: Russ Weight <russell.h.weight@intel.com> Reviewed-by: Tom Rix <trix@redhat.com> Reviewed-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com> Link: https://lore.kernel.org/r/1597822497-25107-2-git-send-email-yilun.xu@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent d012a71 commit 7f9fb67

File tree

4 files changed

+761
-1
lines changed

4 files changed

+761
-1
lines changed

drivers/base/regmap/Kconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# subsystems should select the appropriate symbols.
55

66
config REGMAP
7-
default y if (REGMAP_I2C || REGMAP_SPI || REGMAP_SPMI || REGMAP_W1 || REGMAP_AC97 || REGMAP_MMIO || REGMAP_IRQ || REGMAP_SOUNDWIRE || REGMAP_SCCB || REGMAP_I3C)
7+
default y if (REGMAP_I2C || REGMAP_SPI || REGMAP_SPMI || REGMAP_W1 || REGMAP_AC97 || REGMAP_MMIO || REGMAP_IRQ || REGMAP_SOUNDWIRE || REGMAP_SCCB || REGMAP_I3C || REGMAP_SPI_AVMM)
88
select IRQ_DOMAIN if REGMAP_IRQ
99
bool
1010

@@ -53,3 +53,7 @@ config REGMAP_SCCB
5353
config REGMAP_I3C
5454
tristate
5555
depends on I3C
56+
57+
config REGMAP_SPI_AVMM
58+
tristate
59+
depends on SPI

drivers/base/regmap/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ obj-$(CONFIG_REGMAP_W1) += regmap-w1.o
1717
obj-$(CONFIG_REGMAP_SOUNDWIRE) += regmap-sdw.o
1818
obj-$(CONFIG_REGMAP_SCCB) += regmap-sccb.o
1919
obj-$(CONFIG_REGMAP_I3C) += regmap-i3c.o
20+
obj-$(CONFIG_REGMAP_SPI_AVMM) += regmap-spi-avmm.o

0 commit comments

Comments
 (0)