diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-01-11 14:29:52 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-01-12 15:57:51 +0100 |
commit | eee74317855a931adad301339a33a8c56607f551 (patch) | |
tree | 96b628b63d737be66ce3ffe523d65767e4ff8093 /drivers/mfd | |
parent | 6e7b4e09c6ab0dc691c58855a153965d46b41f06 (diff) | |
download | barebox-eee74317855a931adad301339a33a8c56607f551.tar.gz |
drivers: base: regmap: introduce REGMAP_I2C
regmap_init_i2c is quite limited right now and only supports 8-bit
registers and values. In future, we may want to expand this further, but
that would require us to format the regmap_config appropriately, pulling
in more code that's not required in the general case, where reg_read and
reg_write can be used directly. Add a new Kconfig symbol and select it
where appropriate to allow us to split formatted regmap handling from
the more basic handling we currently have.
We intentionally don't provide a stub function, so out-of-tree users
without the select fail to link and can be fixed.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230111132956.1153359-8-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index 5fd1a0aaa8..c33fa26223 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -64,12 +64,14 @@ config RAVE_SP_CORE config MFD_STPMIC1 depends on I2C + select REGMAP_I2C bool "STPMIC1 MFD driver" help Select this to support communication with the STPMIC1. config MFD_RN568PMIC depends on I2C + select REGMAP_I2C bool "Ricoh RN5T568 MFD driver" help Select this to support communication with the Ricoh RN5T568 PMIC. @@ -111,6 +113,7 @@ config MFD_ATMEL_FLEXCOM config MFD_RK808 tristate "Rockchip RK805/RK808/RK809/RK817/RK818 Power Management Chip" depends on I2C && OFDEVICE + select REGMAP_I2C help If you say yes here you get support for the RK805, RK808, RK809, RK817 and RK818 Power Management chips. @@ -120,6 +123,7 @@ config MFD_RK808 config MFD_AXP20X_I2C tristate "X-Powers AXP series PMICs with I2C" depends on I2C && OFDEVICE + select REGMAP_I2C help If you say Y here you get support for the X-Powers AXP series power management ICs (PMICs) controlled with I2C. |