From 55ae6b603a45e70a4482410040a85c3c3ded10d1 Mon Sep 17 00:00:00 2001 From: Jaswinder Jassal Date: Wed, 31 Aug 2016 18:14:44 +0100 Subject: [PATCH] mfd: cs47l15: Add registers for mid-mode support Change-Id: Ib1bfa5fa888f1fafc472c0645b0208281dda7aec Signed-off-by: Jaswinder Jassal Signed-off-by: Charles Keepax --- drivers/mfd/cs47l15-tables.c | 4 ++++ include/linux/mfd/madera/registers.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/mfd/cs47l15-tables.c b/drivers/mfd/cs47l15-tables.c index ccad146c773e..41945f446991 100644 --- a/drivers/mfd/cs47l15-tables.c +++ b/drivers/mfd/cs47l15-tables.c @@ -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: diff --git a/include/linux/mfd/madera/registers.h b/include/linux/mfd/madera/registers.h index d9673f78f2ab..388e2ddd364c 100644 --- a/include/linux/mfd/madera/registers.h +++ b/include/linux/mfd/madera/registers.h @@ -257,6 +257,8 @@ #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 -- 2.20.1