]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/regmap.h
regmap: Support register patch sets
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 21 Jan 2012 12:01:14 +0000 (12:01 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 23 Jan 2012 14:01:18 +0000 (14:01 +0000)
commit22f0d90a34827812413bb3fbeda6a2a79bb58423
treec54935a6e2637408da23aa261c81f89dffa0724e
parentdcd6c92267155e70a94b3927bce681ce74b80d1f
regmap: Support register patch sets

Device manufacturers frequently provide register sequences, usually not
fully documented, to be run at startup in order to provide better defaults
for devices (for example, improving performance in the light of silicon
evaluation). Support such updates by allowing drivers to register update
sets with the core. These updates will be written to the device immediately
and will also be rewritten when the cache is synced.

The assumption is that the reason for resyncing the cache will always be
that the device has been powered off. If this turns out to not be the case
then a separate operation can be provided.

Currently the implementation only allows a single set of updates to be
specified for a device, this could be extended in future.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/internal.h
drivers/base/regmap/regcache.c
drivers/base/regmap/regmap.c
include/linux/regmap.h