mfd: intel-m10-bmc: Add Intel MAX 10 BMC chip support for Intel FPGA PAC
authorXu Yilun <yilun.xu@intel.com>
Tue, 15 Sep 2020 03:44:21 +0000 (11:44 +0800)
committerLee Jones <lee.jones@linaro.org>
Wed, 30 Sep 2020 16:46:21 +0000 (17:46 +0100)
commit876611c493b10cbb59e0e2143d3e744d0442de63
treea8712c6580b880ab75077f9ca5cdab4a8083f721
parent4b6ec08fd21ee3179cbfccf3605ad13d9f38b623
mfd: intel-m10-bmc: Add Intel MAX 10 BMC chip support for Intel FPGA PAC

This patch implements the basic functions of the BMC chip for some Intel
FPGA PCIe Acceleration Cards (PAC). The BMC is implemented using the
Intel MAX 10 CPLD.

This BMC chip is connected to the FPGA by a SPI bus. To provide direct
register access from the FPGA, the "SPI slave to Avalon Master Bridge"
(spi-avmm) IP is integrated in the chip. It converts encoded streams of
bytes from the host to the internal register read/write on the Avalon
bus. So This driver uses the regmap-spi-avmm for register accessing.

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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Documentation/ABI/testing/sysfs-driver-intel-m10-bmc [new file with mode: 0644]
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/intel-m10-bmc.c [new file with mode: 0644]
include/linux/mfd/intel-m10-bmc.h [new file with mode: 0644]