diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-03 17:10:32 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-13 00:11:13 +0800 |
commit | 346978980a781a5b434c48531cf29cadf5b83999 (patch) | |
tree | c2f80a16e77aaca02dff57fc47bb61bce97f00df /drivers/mfd/wm8994-regmap.c | |
parent | c3f1386171a100d27d9fb978f474a6a330888af5 (diff) | |
download | blackbird-obmc-linux-346978980a781a5b434c48531cf29cadf5b83999.tar.gz blackbird-obmc-linux-346978980a781a5b434c48531cf29cadf5b83999.zip |
mfd: Initialise WM8994 register cache after reading chip ID registers
The different devices handled by the WM8994 can be distinguished using
their ID registers so we don't need to rely on the user having registered
the device correctly. Instead do the initial regmap setup with a minimal
configuration only supporting physical I/O and then configure the cache
once we have identified the device.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wm8994-regmap.c')
-rw-r--r-- | drivers/mfd/wm8994-regmap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mfd/wm8994-regmap.c b/drivers/mfd/wm8994-regmap.c index d98a70e26076..03594c257ef2 100644 --- a/drivers/mfd/wm8994-regmap.c +++ b/drivers/mfd/wm8994-regmap.c @@ -1216,3 +1216,8 @@ struct regmap_config wm8958_regmap_config = { .volatile_reg = wm8958_volatile_register, .readable_reg = wm8958_readable_register, }; + +struct regmap_config wm8994_base_regmap_config = { + .reg_bits = 16, + .val_bits = 16, +}; |