diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2014-02-25 13:45:50 +0000 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-26 08:58:40 +0900 |
commit | 1d5b40bccf04994248b39e8ce234a7c1f3235cf5 (patch) | |
tree | 6e8ee018b8df6c8a9da8caa1c98492f4a36f9eff /include | |
parent | f7e2cec02b0e5bfe2180f09de9b0bc724774c51a (diff) | |
download | linux-stable-1d5b40bccf04994248b39e8ce234a7c1f3235cf5.tar.gz linux-stable-1d5b40bccf04994248b39e8ce234a7c1f3235cf5.tar.bz2 linux-stable-1d5b40bccf04994248b39e8ce234a7c1f3235cf5.zip |
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')
-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, size_t val_count); int regmap_multi_reg_write(struct regmap *map, const struct reg_default *regs, int num_regs); +int regmap_multi_reg_write_bypassed(struct regmap *map, + const struct reg_default *regs, + int num_regs); int regmap_raw_write_async(struct regmap *map, unsigned int reg, const void *val, size_t val_len); int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val); |