|
@@ -374,6 +374,7 @@ int regmap_reinit_cache(struct regmap *map,
|
|
const struct regmap_config *config);
|
|
const struct regmap_config *config);
|
|
struct regmap *dev_get_regmap(struct device *dev, const char *name);
|
|
struct regmap *dev_get_regmap(struct device *dev, const char *name);
|
|
int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
|
|
int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
|
|
|
|
+int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val);
|
|
int regmap_raw_write(struct regmap *map, unsigned int reg,
|
|
int regmap_raw_write(struct regmap *map, unsigned int reg,
|
|
const void *val, size_t val_len);
|
|
const void *val, size_t val_len);
|
|
int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
|
|
int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
|
|
@@ -387,9 +388,14 @@ int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
|
|
size_t val_count);
|
|
size_t val_count);
|
|
int regmap_update_bits(struct regmap *map, unsigned int reg,
|
|
int regmap_update_bits(struct regmap *map, unsigned int reg,
|
|
unsigned int mask, unsigned int val);
|
|
unsigned int mask, unsigned int val);
|
|
|
|
+int regmap_update_bits_async(struct regmap *map, unsigned int reg,
|
|
|
|
+ unsigned int mask, unsigned int val);
|
|
int regmap_update_bits_check(struct regmap *map, unsigned int reg,
|
|
int regmap_update_bits_check(struct regmap *map, unsigned int reg,
|
|
unsigned int mask, unsigned int val,
|
|
unsigned int mask, unsigned int val,
|
|
bool *change);
|
|
bool *change);
|
|
|
|
+int regmap_update_bits_check_async(struct regmap *map, unsigned int reg,
|
|
|
|
+ unsigned int mask, unsigned int val,
|
|
|
|
+ bool *change);
|
|
int regmap_get_val_bytes(struct regmap *map);
|
|
int regmap_get_val_bytes(struct regmap *map);
|
|
int regmap_async_complete(struct regmap *map);
|
|
int regmap_async_complete(struct regmap *map);
|
|
bool regmap_can_raw_write(struct regmap *map);
|
|
bool regmap_can_raw_write(struct regmap *map);
|
|
@@ -527,6 +533,13 @@ static inline int regmap_write(struct regmap *map, unsigned int reg,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline int regmap_write_async(struct regmap *map, unsigned int reg,
|
|
|
|
+ unsigned int val)
|
|
|
|
+{
|
|
|
|
+ WARN_ONCE(1, "regmap API is disabled");
|
|
|
|
+ return -EINVAL;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline int regmap_raw_write(struct regmap *map, unsigned int reg,
|
|
static inline int regmap_raw_write(struct regmap *map, unsigned int reg,
|
|
const void *val, size_t val_len)
|
|
const void *val, size_t val_len)
|
|
{
|
|
{
|
|
@@ -576,6 +589,14 @@ static inline int regmap_update_bits(struct regmap *map, unsigned int reg,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline int regmap_update_bits_async(struct regmap *map,
|
|
|
|
+ unsigned int reg,
|
|
|
|
+ unsigned int mask, unsigned int val)
|
|
|
|
+{
|
|
|
|
+ WARN_ONCE(1, "regmap API is disabled");
|
|
|
|
+ return -EINVAL;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline int regmap_update_bits_check(struct regmap *map,
|
|
static inline int regmap_update_bits_check(struct regmap *map,
|
|
unsigned int reg,
|
|
unsigned int reg,
|
|
unsigned int mask, unsigned int val,
|
|
unsigned int mask, unsigned int val,
|
|
@@ -585,6 +606,16 @@ static inline int regmap_update_bits_check(struct regmap *map,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline int regmap_update_bits_check_async(struct regmap *map,
|
|
|
|
+ unsigned int reg,
|
|
|
|
+ unsigned int mask,
|
|
|
|
+ unsigned int val,
|
|
|
|
+ bool *change)
|
|
|
|
+{
|
|
|
|
+ WARN_ONCE(1, "regmap API is disabled");
|
|
|
|
+ return -EINVAL;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline int regmap_get_val_bytes(struct regmap *map)
|
|
static inline int regmap_get_val_bytes(struct regmap *map)
|
|
{
|
|
{
|
|
WARN_ONCE(1, "regmap API is disabled");
|
|
WARN_ONCE(1, "regmap API is disabled");
|