mfd: intel-m10-bmc: Support multiple CSR register layouts
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 16 Jan 2023 10:08:39 +0000 (12:08 +0200)
committerLee Jones <lee@kernel.org>
Fri, 27 Jan 2023 10:36:29 +0000 (10:36 +0000)
commit6052a005caf9cd484fe6368a31c736ac17ebaf66
tree0e52513de109f394ceab092678adefee5345f378
parent603aed8ffd4c9cb633c05a514cfb5e8ca6b0751d
mfd: intel-m10-bmc: Support multiple CSR register layouts

There are different addresses for the MAX10 CSR registers. Introducing
a new data structure m10bmc_csr_map for the register definition of
MAX10 CSR.

Provide the csr_map for SPI.

Co-developed-by: Tianfei zhang <tianfei.zhang@intel.com>
Signed-off-by: Tianfei zhang <tianfei.zhang@intel.com>
Reviewed-by: Russ Weight <russell.h.weight@intel.com>
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230116100845.6153-6-ilpo.jarvinen@linux.intel.com
drivers/fpga/intel-m10-bmc-sec-update.c
drivers/mfd/intel-m10-bmc-core.c
drivers/mfd/intel-m10-bmc-spi.c
include/linux/mfd/intel-m10-bmc.h