]> git.sur5r.net Git - u-boot/blobdiff - include/regmap.h
sunxi: R40: add gigabit ethernet clocks
[u-boot] / include / regmap.h
index e96c79dd26a219843d6343fb7d789aa63ae1cad5..6a574eaa41294a740a688f3bc717c0ba68afcf8f 100644 (file)
@@ -42,6 +42,16 @@ int regmap_read(struct regmap *map, uint offset, uint *valp);
 #define regmap_read32(map, ptr, member, valp) \
        regmap_read(map, (uint32_t *)(ptr)->member - (uint32_t *)(ptr), valp)
 
+/**
+ * regmap_update_bits() - Perform a read/modify/write using a mask
+ *
+ * @map:       The map returned by regmap_init_mem*()
+ * @offset:    Offset of the memory
+ * @mask:      Mask to apply to the read value
+ * @val:       Value to apply to the value to write
+ */
+int regmap_update_bits(struct regmap *map, uint offset, uint mask, uint val);
+
 /**
  * regmap_init_mem() - Set up a new register map that uses memory access
  *