From: Rafael J. Wysocki Date: Tue, 25 Nov 2014 01:18:58 +0000 (+0100) Subject: Merge branch 'ib-mfd-iio-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/lee... X-Git-Tag: v5.15~16732^2~5^3~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a26033a1f56b7b1f8a56050c0a9095694aecae11;p=platform%2Fkernel%2Flinux-starfive.git Merge branch 'ib-mfd-iio-3.19' of git://git./linux/kernel/git/lee/mfd into acpi-pmic Pull MFD changes that the ACPI PMIC changes depend on from Lee Jones. --- a26033a1f56b7b1f8a56050c0a9095694aecae11 diff --cc drivers/iio/adc/Kconfig index 88bdc8f,db2681b..bc4e787 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@@ -127,9 -127,17 +127,17 @@@ config AT91_AD help Say yes here to build support for Atmel AT91 ADC. + config AXP288_ADC + tristate "X-Powers AXP288 ADC driver" + depends on MFD_AXP20X + help + Say yes here to have support for X-Powers power management IC (PMIC) ADC + device. Depending on platform configuration, this general purpose ADC can + be used for sampling sensors such as thermal resistors. + config EXYNOS_ADC tristate "Exynos ADC driver support" - depends on ARCH_EXYNOS || (OF && COMPILE_TEST) + depends on ARCH_EXYNOS || ARCH_S3C24XX || ARCH_S3C64XX || (OF && COMPILE_TEST) help Core support for the ADC block found in the Samsung EXYNOS series of SoCs for drivers such as the touchscreen and hwmon to use to share diff --cc drivers/mfd/axp20x.c index 6231adb,9c4714e..971b0eb --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@@ -133,13 -250,36 +250,27 @@@ static const struct regmap_irq_chip axp .status_base = AXP20X_IRQ1_STATE, .ack_base = AXP20X_IRQ1_STATE, .mask_base = AXP20X_IRQ1_EN, - .num_regs = 5, + .mask_invert = true, + .init_ack_masked = true, .irqs = axp20x_regmap_irqs, .num_irqs = ARRAY_SIZE(axp20x_regmap_irqs), + .num_regs = 5, + + }; + + static const struct regmap_irq_chip axp288_regmap_irq_chip = { + .name = "axp288_irq_chip", + .status_base = AXP20X_IRQ1_STATE, + .ack_base = AXP20X_IRQ1_STATE, + .mask_base = AXP20X_IRQ1_EN, .mask_invert = true, .init_ack_masked = true, + .irqs = axp288_regmap_irqs, + .num_irqs = ARRAY_SIZE(axp288_regmap_irqs), + .num_regs = 6, + }; -static const char * const axp20x_supplies[] = { - "acin", - "vin2", - "vin3", - "ldo24in", - "ldo3in", - "ldo5in", -}; - static struct mfd_cell axp20x_cells[] = { { .name = "axp20x-pek",