History

mfd: mt6397: Extract IRQ related code from core driver

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.

Hsin-Hsiung Wang committed 7 years ago

Commit a4872e81 parent 708cb5c4 files · +192 −147Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/mfd/mt6397/core.h+9−0
@@ -7,6 +7,12 @@ · 6 unmodified lines
77 #ifndef __MFD_MT6397_CORE_H__
88 #define __MFD_MT6397_CORE_H__
99
10+enum chip_id {
11+ MT6323_CHIP_ID = 0x23,
12+ MT6391_CHIP_ID = 0x91,
13+ MT6397_CHIP_ID = 0x97,
14+};
15+
1016 enum mt6397_irq_numbers {
1117 MT6397_IRQ_SPKL_AB = 0,
1218 MT6397_IRQ_SPKR_AB,
@@ -54,6 +60,9 @@ struct mt6397_chip { · 41 unmodified lines
5460 u16 irq_masks_cache[2];
5561 u16 int_con[2];
5662 u16 int_status[2];
63+ u16 chip_id;
5764 };
5865
66+int mt6397_irq_init(struct mt6397_chip *chip);
67+
5968 #endif /* __MFD_MT6397_CORE_H__ */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t