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
7#ifndef __MFD_MT6397_CORE_H__7#ifndef __MFD_MT6397_CORE_H__
8#define __MFD_MT6397_CORE_H__8#define __MFD_MT6397_CORE_H__
9 9
10enum chip_id {
11 MT6323_CHIP_ID = 0x23,
12 MT6391_CHIP_ID = 0x91,
13 MT6397_CHIP_ID = 0x97,
14};
15
10enum mt6397_irq_numbers {16enum mt6397_irq_numbers {
11 MT6397_IRQ_SPKL_AB = 0,17 MT6397_IRQ_SPKL_AB = 0,
12 MT6397_IRQ_SPKR_AB,18 MT6397_IRQ_SPKR_AB,
@@ -54,6 +60,9 @@ struct mt6397_chip { · 41 unmodified lines
54 u16 irq_masks_cache[2];60 u16 irq_masks_cache[2];
55 u16 int_con[2];61 u16 int_con[2];
56 u16 int_status[2];62 u16 int_status[2];
63 u16 chip_id;
57};64};
58 65
66int mt6397_irq_init(struct mt6397_chip *chip);
67
59#endif /* __MFD_MT6397_CORE_H__ */68#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