summaryrefslogtreecommitdiffstats
path: root/include/regmap.h
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-11-14 22:21:13 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2017-01-10 08:27:33 +0100
commit8f154474fa01e6dd908969c12505df5cbdde61e2 (patch)
tree27b46f99c98ac984eb823f97a6840292ede71419 /include/regmap.h
parentbb9125c93ef38757a436fe0f941c8c63fbc0477e (diff)
downloadbarebox-8f154474fa01e6dd908969c12505df5cbdde61e2.tar.gz
barebox-8f154474fa01e6dd908969c12505df5cbdde61e2.tar.xz
regmap: Add regmap_write_bits() function
Add code implementing a simple version of regmap_write_bits(). Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/regmap.h')
-rw-r--r--include/regmap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/regmap.h b/include/regmap.h
index bcbe6c1554..9675a17b96 100644
--- a/include/regmap.h
+++ b/include/regmap.h
@@ -60,4 +60,8 @@ int regmap_get_val_bytes(struct regmap *map);
int regmap_get_max_register(struct regmap *map);
int regmap_get_reg_stride(struct regmap *map);
-#endif /* __REGMAP_H */ \ No newline at end of file
+int regmap_write_bits(struct regmap *map, unsigned int reg,
+ unsigned int mask, unsigned int val);
+
+
+#endif /* __REGMAP_H */