diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-02-23 11:18:01 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-02-23 11:18:01 -0500 |
| commit | df9cdc1727ed9debfce59c5f600d794a63fcbfeb (patch) | |
| tree | 03438886f80e90213a6be5b21ac0d601584213a5 /include/linux/mfd/axp20x.h | |
| parent | bc49a7831b1137ce1c2dda1c57e3631655f5d2ae (diff) | |
| parent | e93c10211d03c35271896b03a40d3eca4a674770 (diff) | |
Merge tag 'mfd-for-linus-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd
Pull MFD updates from Lee Jones:
"Core Frameworks:
- Add new !TOUCHSCREEN_SUN4I dependency for SUN4I_GPADC
- List include/dt-bindings/mfd/* to files supported in MAINTAINERS
New Drivers:
- Intel Apollo Lake SPI NOR
- ST STM32 Timers (Advanced, Basic and PWM)
- Motorola 6556002 CPCAP (PMIC)
New Device Support:
- Add support for AXP221 to axp20x
- Add support for Intel Gemini Lake to intel-lpss-pci
- Add support for MT6323 LED to mt6397-core
- Add support for COMe-bBD#, COMe-bSL6, COMe-bKL6, COMe-cAL6 and
COMe-cKL6 to kempld-core
New Functionality:
- Add support for Analog CODAC to sun6i-prcm
- Add support for Watchdog to lpc_ich
Fix-ups:
- Error handling improvements; axp288_charger, axp20x, ab8500-sysctrl
- Adapt platform data handling; axp20x
- IRQ handling improvements; arizona, axp20x
- Remove superfluous code; arizona, axp20x, lpc_ich
- Trivial coding style/spelling fixes; axp20x, abx500, mfd.txt
- Regmap fix-ups; axp20x
- DT changes; mfd.txt, aspeed-lpc, aspeed-gfx, ab8500-core, tps65912,
mt6397
- Use new I2C probing mechanism; max77686
- Constification; rk808
Bug Fixes:
- Stop data transfer whilst suspended; cros_ec"
* tag 'mfd-for-linus-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (43 commits)
mfd: lpc_ich: Enable watchdog on Intel Apollo Lake PCH
mfd: lpc_ich: Remove useless comments in core part
mfd: Add support for several boards to Kontron PLD driver
mfd: constify regmap_irq_chip structures
MAINTAINERS: Add include/dt-bindings/mfd to MFD entry
mfd: cpcap: Add minimal support
mfd: mt6397: Add MT6323 LED support into MT6397 driver
Documentation: devicetree: Add LED subnode binding for MT6323 PMIC
mfd: tps65912: Export OF device ID table as module aliases
mfd: ab8500-core: Rename clock device and compatible
mfd: cros_ec: Send correct suspend/resume event to EC
mfd: max77686: Remove I2C device ID table
mfd: max77686: Use the struct i2c_driver .probe_new instead of .probe
mfd: max77686: Use of_device_get_match_data() helper
mfd: max77686: Don't attempt to get i2c_device_id .data
mfd: ab8500-sysctrl: Handle probe deferral
mfd: intel-lpss: Add Intel Gemini Lake PCI IDs
mfd: axp20x: Fix AXP806 access errors on cold boot
mfd: cros_ec: Send suspend state notification to EC
mfd: cros_ec: Prevent data transfer while device is suspended
...
Diffstat (limited to 'include/linux/mfd/axp20x.h')
| -rw-r--r-- | include/linux/mfd/axp20x.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h index f848ee86a339..0d9a1ff38393 100644 --- a/include/linux/mfd/axp20x.h +++ b/include/linux/mfd/axp20x.h | |||
| @@ -235,10 +235,20 @@ enum axp20x_variants { | |||
| 235 | #define AXP22X_BATLOW_THRES1 0xe6 | 235 | #define AXP22X_BATLOW_THRES1 0xe6 |
| 236 | 236 | ||
| 237 | /* AXP288 specific registers */ | 237 | /* AXP288 specific registers */ |
| 238 | #define AXP288_POWER_REASON 0x02 | ||
| 239 | #define AXP288_BC_GLOBAL 0x2c | ||
| 240 | #define AXP288_BC_VBUS_CNTL 0x2d | ||
| 241 | #define AXP288_BC_USB_STAT 0x2e | ||
| 242 | #define AXP288_BC_DET_STAT 0x2f | ||
| 238 | #define AXP288_PMIC_ADC_H 0x56 | 243 | #define AXP288_PMIC_ADC_H 0x56 |
| 239 | #define AXP288_PMIC_ADC_L 0x57 | 244 | #define AXP288_PMIC_ADC_L 0x57 |
| 245 | #define AXP288_TS_ADC_H 0x58 | ||
| 246 | #define AXP288_TS_ADC_L 0x59 | ||
| 247 | #define AXP288_GP_ADC_H 0x5a | ||
| 248 | #define AXP288_GP_ADC_L 0x5b | ||
| 240 | #define AXP288_ADC_TS_PIN_CTRL 0x84 | 249 | #define AXP288_ADC_TS_PIN_CTRL 0x84 |
| 241 | #define AXP288_PMIC_ADC_EN 0x84 | 250 | #define AXP288_RT_BATT_V_H 0xa0 |
| 251 | #define AXP288_RT_BATT_V_L 0xa1 | ||
| 242 | 252 | ||
| 243 | /* Fuel Gauge */ | 253 | /* Fuel Gauge */ |
| 244 | #define AXP288_FG_RDC1_REG 0xba | 254 | #define AXP288_FG_RDC1_REG 0xba |
| @@ -515,14 +525,10 @@ enum axp809_irqs { | |||
| 515 | AXP809_IRQ_GPIO0_INPUT, | 525 | AXP809_IRQ_GPIO0_INPUT, |
| 516 | }; | 526 | }; |
| 517 | 527 | ||
| 518 | #define AXP288_TS_ADC_H 0x58 | ||
| 519 | #define AXP288_TS_ADC_L 0x59 | ||
| 520 | #define AXP288_GP_ADC_H 0x5a | ||
| 521 | #define AXP288_GP_ADC_L 0x5b | ||
| 522 | |||
| 523 | struct axp20x_dev { | 528 | struct axp20x_dev { |
| 524 | struct device *dev; | 529 | struct device *dev; |
| 525 | int irq; | 530 | int irq; |
| 531 | unsigned long irq_flags; | ||
| 526 | struct regmap *regmap; | 532 | struct regmap *regmap; |
| 527 | struct regmap_irq_chip_data *regmap_irqc; | 533 | struct regmap_irq_chip_data *regmap_irqc; |
| 528 | long variant; | 534 | long variant; |
| @@ -582,7 +588,7 @@ int axp20x_match_device(struct axp20x_dev *axp20x); | |||
| 582 | int axp20x_device_probe(struct axp20x_dev *axp20x); | 588 | int axp20x_device_probe(struct axp20x_dev *axp20x); |
| 583 | 589 | ||
| 584 | /** | 590 | /** |
| 585 | * axp20x_device_probe(): Remove a axp20x device | 591 | * axp20x_device_remove(): Remove a axp20x device |
| 586 | * | 592 | * |
| 587 | * @axp20x: axp20x device to remove | 593 | * @axp20x: axp20x device to remove |
| 588 | * | 594 | * |
