mfd: cs47l15: Add registers for mid-mode support
authorJaswinder Jassal <jjassal@opensource.wolfsonmicro.com>
Wed, 31 Aug 2016 17:14:44 +0000 (18:14 +0100)
committer강신형 <s47.kang@samsung.com>
Tue, 19 Jun 2018 07:58:41 +0000 (16:58 +0900)
Change-Id: Ib1bfa5fa888f1fafc472c0645b0208281dda7aec
Signed-off-by: Jaswinder Jassal <jjassal@opensource.wolfsonmicro.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
drivers/mfd/cs47l15-tables.c
include/linux/mfd/madera/registers.h

index ccad146c773e9efee3ece48fa1c28a1716fe217e..41945f446991fe6caba569d72a8cae85653b976f 100644 (file)
@@ -155,6 +155,8 @@ static const struct reg_default cs47l15_reg_default[] = {
        { 0x0000031D, 0x0180 }, /* R797 (0x00031D) - ADC_DIGITAL_VOLUME_2R */
        { 0x0000031E, 0x0000 }, /* R798 (0x00031E) - DMIC2R_CONTROL */
        { 0x0000031F, 0x0000 }, /* R799 (0x00031F) - IN2R_RATE_CONTROL */
+       { 0x000003A8, 0x2000 }, /* R936 (0x0003A8) - CS47L15_ADC_INT_BIAS */
+       { 0x000003C4, 0x0000 }, /* R964 (0x0003C4) - CS47L15_PGA_BIAS_SEL */
        { 0x00000400, 0x0000 }, /* R1024 (0x000400) - OUTPUT_ENABLES_1 */
        { 0x00000408, 0x0000 }, /* R1032 (0x000408) - OUTPUT_RATE_1 */
        { 0x00000409, 0x0022 }, /* R1033 (0x000409) - OUTPUT_VOLUME_RAMP */
@@ -864,6 +866,8 @@ static bool cs47l15_16bit_readable_register(struct device *dev, unsigned int reg
        case MADERA_ADC_DIGITAL_VOLUME_2R:
        case MADERA_DMIC2R_CONTROL:
        case MADERA_IN2R_RATE_CONTROL:
+       case CS47L15_ADC_INT_BIAS:
+       case CS47L15_PGA_BIAS_SEL:
        case MADERA_OUTPUT_ENABLES_1:
        case MADERA_OUTPUT_STATUS_1:
        case MADERA_RAW_OUTPUT_STATUS_1:
index d9673f78f2abb3c6dc9e4731eb9c33cd28dd2421..388e2ddd364c13d66695f1cd589b8477e6d70b44 100644 (file)
 #define MADERA_IN6R_CONTROL                            0x33C
 #define MADERA_ADC_DIGITAL_VOLUME_6R                   0x33D
 #define MADERA_DMIC6R_CONTROL                          0x33E
+#define CS47L15_ADC_INT_BIAS                           0x3A8
+#define CS47L15_PGA_BIAS_SEL                           0x3C4
 #define MADERA_OUTPUT_ENABLES_1                                0x400
 #define MADERA_OUTPUT_STATUS_1                         0x401
 #define MADERA_RAW_OUTPUT_STATUS_1                     0x406