aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJosh Cartwright <joshc@codeaurora.org>2013-10-28 14:12:35 -0400
committerMark Brown <broonie@linaro.org>2013-10-28 15:51:43 -0400
commita01779f89fc8a2225cb82dca0fc7b8451851cb7b (patch)
treeafaa05d2b1bbd58462a2fcdc2425c133a38eb44c /include/linux
parent959f58544b7f20c92d5eb43d1232c96c15c01bfb (diff)
regmap: add SPMI support
Add basic support for the System Power Management Interface (SPMI) bus. This is a simple implementation which only implements register accesses via the Extended Register Read/Write Long commands. Signed-off-by: Josh Cartwright <joshc@codeaurora.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/regmap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index a10380bfbeac..3f5abc86b6b5 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -23,6 +23,7 @@ struct device;
23struct i2c_client; 23struct i2c_client;
24struct irq_domain; 24struct irq_domain;
25struct spi_device; 25struct spi_device;
26struct spmi_device;
26struct regmap; 27struct regmap;
27struct regmap_range_cfg; 28struct regmap_range_cfg;
28struct regmap_field; 29struct regmap_field;
@@ -318,6 +319,8 @@ struct regmap *regmap_init_i2c(struct i2c_client *i2c,
318 const struct regmap_config *config); 319 const struct regmap_config *config);
319struct regmap *regmap_init_spi(struct spi_device *dev, 320struct regmap *regmap_init_spi(struct spi_device *dev,
320 const struct regmap_config *config); 321 const struct regmap_config *config);
322struct regmap *regmap_init_spmi(struct spmi_device *dev,
323 const struct regmap_config *config);
321struct regmap *regmap_init_mmio_clk(struct device *dev, const char *clk_id, 324struct regmap *regmap_init_mmio_clk(struct device *dev, const char *clk_id,
322 void __iomem *regs, 325 void __iomem *regs,
323 const struct regmap_config *config); 326 const struct regmap_config *config);
@@ -330,6 +333,8 @@ struct regmap *devm_regmap_init_i2c(struct i2c_client *i2c,
330 const struct regmap_config *config); 333 const struct regmap_config *config);
331struct regmap *devm_regmap_init_spi(struct spi_device *dev, 334struct regmap *devm_regmap_init_spi(struct spi_device *dev,
332 const struct regmap_config *config); 335 const struct regmap_config *config);
336struct regmap *devm_regmap_init_spmi(struct spmi_device *dev,
337 const struct regmap_config *config);
333struct regmap *devm_regmap_init_mmio_clk(struct device *dev, const char *clk_id, 338struct regmap *devm_regmap_init_mmio_clk(struct device *dev, const char *clk_id,
334 void __iomem *regs, 339 void __iomem *regs,
335 const struct regmap_config *config); 340 const struct regmap_config *config);