Skip to content

Commit fa0d976

Browse files
balajitkSamuel Ortiz
authored andcommitted
mfd: Add twl6030 base addr for ID0, ID1, ID2
Add base address for generic slave ID0, ID1, ID2 and introduced one more entry to align RTC module number between twl4030 and twl6030 Signed-off-by: Balaji T K <balajitk@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent a29aaf5 commit fa0d976

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎drivers/mfd/twl-core.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@
198198
/* subchip/slave 3 0x4B - AUDIO */
199199
#define TWL6030_BASEADD_AUDIO 0x0000
200200
#define TWL6030_BASEADD_RSV 0x0000
201+
#define TWL6030_BASEADD_ZERO 0x0000
201202

202203
/* Few power values */
203204
#define R_CFG_BOOT 0x05
@@ -313,9 +314,11 @@ static struct twl_mapping twl6030_map[] = {
313314
{ SUB_CHIP_ID1, TWL6030_BASEADD_CHARGER },
314315
{ SUB_CHIP_ID1, TWL6030_BASEADD_GASGAUGE },
315316
{ SUB_CHIP_ID1, TWL6030_BASEADD_PWM },
316-
{ SUB_CHIP_ID2, TWL6030_BASEADD_RSV },
317-
{ SUB_CHIP_ID2, TWL6030_BASEADD_RSV },
317+
{ SUB_CHIP_ID0, TWL6030_BASEADD_ZERO },
318+
{ SUB_CHIP_ID1, TWL6030_BASEADD_ZERO },
318319

320+
{ SUB_CHIP_ID2, TWL6030_BASEADD_ZERO },
321+
{ SUB_CHIP_ID2, TWL6030_BASEADD_ZERO },
319322
{ SUB_CHIP_ID2, TWL6030_BASEADD_RSV },
320323
{ SUB_CHIP_ID2, TWL6030_BASEADD_RSV },
321324
{ SUB_CHIP_ID2, TWL6030_BASEADD_RSV },

‎include/linux/i2c/twl.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
#define TWL_MODULE_PM_MASTER TWL4030_MODULE_PM_MASTER
8181
#define TWL_MODULE_PM_RECEIVER TWL4030_MODULE_PM_RECEIVER
8282
#define TWL_MODULE_RTC TWL4030_MODULE_RTC
83+
#define TWL_MODULE_PWM TWL4030_MODULE_PWM0
84+
85+
#define TWL6030_MODULE_ID0 0x0D
86+
#define TWL6030_MODULE_ID1 0x0E
87+
#define TWL6030_MODULE_ID2 0x0F
8388

8489
#define GPIO_INTR_OFFSET 0
8590
#define KEYPAD_INTR_OFFSET 1

0 commit comments

Comments
 (0)