In order to support different types of irq design, we decide to add separate irq drivers for different design and keep mt6397 mfd core simple and reusable to all generations of PMICs so far.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -7,6 +7,12 @@ · 6 unmodified lines | ||
| 7 | 7 | #ifndef __MFD_MT6397_CORE_H__ |
| 8 | 8 | #define __MFD_MT6397_CORE_H__ |
| 9 | 9 | |
| 10 | +enum chip_id { | |
| 11 | + MT6323_CHIP_ID = 0x23, | |
| 12 | + MT6391_CHIP_ID = 0x91, | |
| 13 | + MT6397_CHIP_ID = 0x97, | |
| 14 | +}; | |
| 15 | + | |
| 10 | 16 | enum mt6397_irq_numbers { |
| 11 | 17 | MT6397_IRQ_SPKL_AB = 0, |
| 12 | 18 | MT6397_IRQ_SPKR_AB, |
| @@ -54,6 +60,9 @@ struct mt6397_chip { · 41 unmodified lines | ||
| 54 | 60 | u16 irq_masks_cache[2]; |
| 55 | 61 | u16 int_con[2]; |
| 56 | 62 | u16 int_status[2]; |
| 63 | + u16 chip_id; | |
| 57 | 64 | }; |
| 58 | 65 | |
| 66 | +int mt6397_irq_init(struct mt6397_chip *chip); | |
| 67 | + | |
| 59 | 68 | #endif /* __MFD_MT6397_CORE_H__ */ |