regmap: add Intel SPI Slave to AVMM Bus Bridge support
authorXu Yilun <yilun.xu@intel.com>
Wed, 19 Aug 2020 07:34:56 +0000 (15:34 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 26 Aug 2020 18:46:38 +0000 (19:46 +0100)
commit7f9fb67358a2bcaacbdfeee12e0f19e98c8bdf55
treee7221307589a0e321406ce270553f24637e65d43
parentd012a7190fc1fd72ed48911e77ca97ba4521bccd
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>
drivers/base/regmap/Kconfig
drivers/base/regmap/Makefile
drivers/base/regmap/regmap-spi-avmm.c [new file with mode: 0644]
include/linux/regmap.h