diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-19 23:33:18 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-11-20 06:21:24 -0500 |
commit | a3e2a76e9efac6bf5963800d2a3d88aac614ccf5 (patch) | |
tree | d91a0c30c2a58d165b283538cbc11c2183d7350f /drivers/mfd/wm5102-tables.c | |
parent | b73df6986bdf0186deeb30b272a9b890065ca223 (diff) |
mfd: wm5102: Update maximum register
The DSP memories are mapped into the register map, make them readable and
writable by updating max_register appropriately.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wm5102-tables.c')
-rw-r--r-- | drivers/mfd/wm5102-tables.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c index 01b9255ed631..ffeba98c4500 100644 --- a/drivers/mfd/wm5102-tables.c +++ b/drivers/mfd/wm5102-tables.c | |||
@@ -2369,12 +2369,14 @@ static bool wm5102_volatile_register(struct device *dev, unsigned int reg) | |||
2369 | } | 2369 | } |
2370 | } | 2370 | } |
2371 | 2371 | ||
2372 | #define WM5102_MAX_REGISTER 0x1a8fff | ||
2373 | |||
2372 | const struct regmap_config wm5102_spi_regmap = { | 2374 | const struct regmap_config wm5102_spi_regmap = { |
2373 | .reg_bits = 32, | 2375 | .reg_bits = 32, |
2374 | .pad_bits = 16, | 2376 | .pad_bits = 16, |
2375 | .val_bits = 16, | 2377 | .val_bits = 16, |
2376 | 2378 | ||
2377 | .max_register = ARIZONA_DSP1_STATUS_2, | 2379 | .max_register = WM5102_MAX_REGISTER, |
2378 | .readable_reg = wm5102_readable_register, | 2380 | .readable_reg = wm5102_readable_register, |
2379 | .volatile_reg = wm5102_volatile_register, | 2381 | .volatile_reg = wm5102_volatile_register, |
2380 | 2382 | ||
@@ -2388,7 +2390,7 @@ const struct regmap_config wm5102_i2c_regmap = { | |||
2388 | .reg_bits = 32, | 2390 | .reg_bits = 32, |
2389 | .val_bits = 16, | 2391 | .val_bits = 16, |
2390 | 2392 | ||
2391 | .max_register = ARIZONA_DSP1_STATUS_2, | 2393 | .max_register = WM5102_MAX_REGISTER, |
2392 | .readable_reg = wm5102_readable_register, | 2394 | .readable_reg = wm5102_readable_register, |
2393 | .volatile_reg = wm5102_volatile_register, | 2395 | .volatile_reg = wm5102_volatile_register, |
2394 | 2396 | ||