diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2014-02-25 08:45:50 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-25 18:58:40 -0500 |
commit | 1d5b40bccf04994248b39e8ce234a7c1f3235cf5 (patch) | |
tree | 6e8ee018b8df6c8a9da8caa1c98492f4a36f9eff /include/linux/regmap.h | |
parent | f7e2cec02b0e5bfe2180f09de9b0bc724774c51a (diff) |
regmap: Add bypassed version of regmap_multi_reg_write
Devices with more complex boot proceedures may occasionally apply the
register patch manual. regmap_multi_reg_write is a logical way to do so,
however the patch must be applied with cache bypass on, such that it
doesn't override any user settings. This patch adds a
regmap_multi_reg_write_bypassed function that applies a set of writes
with the bypass enabled.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r-- | include/linux/regmap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index e97ac6c8b7be..ca2272fbd014 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
@@ -388,6 +388,9 @@ int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val, | |||
388 | size_t val_count); | 388 | size_t val_count); |
389 | int regmap_multi_reg_write(struct regmap *map, const struct reg_default *regs, | 389 | int regmap_multi_reg_write(struct regmap *map, const struct reg_default *regs, |
390 | int num_regs); | 390 | int num_regs); |
391 | int regmap_multi_reg_write_bypassed(struct regmap *map, | ||
392 | const struct reg_default *regs, | ||
393 | int num_regs); | ||
391 | int regmap_raw_write_async(struct regmap *map, unsigned int reg, | 394 | int regmap_raw_write_async(struct regmap *map, unsigned int reg, |
392 | const void *val, size_t val_len); | 395 | const void *val, size_t val_len); |
393 | int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val); | 396 | int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val); |