diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-12-01 21:41:47 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-12-02 18:36:44 -0500 |
commit | 3748f193552ba21a8239c56eb616d946c47607e7 (patch) | |
tree | dfbaa9595a8eb09e837fdb24fa2d60964a46c253 /drivers/mfd/wm5102-tables.c | |
parent | 62d62b59bd100b8f146ea941dad273656371a386 (diff) |
mfd: wm5102: Add tuning for revision B
Evaluation of revision B of WM5102 suggests updates to the register patch
for optimal performance, and make this the default behaviour for new
devices.
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 | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c index ccbdd58cf9be..005de63d01d6 100644 --- a/drivers/mfd/wm5102-tables.c +++ b/drivers/mfd/wm5102-tables.c | |||
@@ -573,6 +573,18 @@ static const struct reg_default wm5102_reva_patch[] = { | |||
573 | { 0x80, 0x0000 }, | 573 | { 0x80, 0x0000 }, |
574 | }; | 574 | }; |
575 | 575 | ||
576 | static const struct reg_default wm5102_revb_patch[] = { | ||
577 | { 0x80, 0x0003 }, | ||
578 | { 0x081, 0xE022 }, | ||
579 | { 0x410, 0x6080 }, | ||
580 | { 0x418, 0x6080 }, | ||
581 | { 0x420, 0x6080 }, | ||
582 | { 0x428, 0xC000 }, | ||
583 | { 0x441, 0x8014 }, | ||
584 | { 0x458, 0x000b }, | ||
585 | { 0x80, 0x0000 }, | ||
586 | }; | ||
587 | |||
576 | /* We use a function so we can use ARRAY_SIZE() */ | 588 | /* We use a function so we can use ARRAY_SIZE() */ |
577 | int wm5102_patch(struct arizona *arizona) | 589 | int wm5102_patch(struct arizona *arizona) |
578 | { | 590 | { |
@@ -582,7 +594,9 @@ int wm5102_patch(struct arizona *arizona) | |||
582 | wm5102_reva_patch, | 594 | wm5102_reva_patch, |
583 | ARRAY_SIZE(wm5102_reva_patch)); | 595 | ARRAY_SIZE(wm5102_reva_patch)); |
584 | default: | 596 | default: |
585 | return 0; | 597 | return regmap_register_patch(arizona->regmap, |
598 | wm5102_revb_patch, | ||
599 | ARRAY_SIZE(wm5102_revb_patch)); | ||
586 | } | 600 | } |
587 | } | 601 | } |
588 | 602 | ||