mfd: sec: Add support for the RTC on S2MPA01
authorStuart Menefy <stuart.menefy@mathembedded.com>
Wed, 13 Feb 2019 22:24:02 +0000 (22:24 +0000)
committerLee Jones <lee.jones@linaro.org>
Tue, 14 May 2019 07:13:25 +0000 (08:13 +0100)
The RTC portion of the S2MPA01 appears to have the same
register layout as the S2MPS14.

Signed-off-by: Stuart Menefy <stuart.menefy@mathembedded.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sec-core.c
drivers/mfd/sec-irq.c

index d8f29f4..95473ff 100644 (file)
@@ -86,6 +86,7 @@ static const struct mfd_cell s2mps15_devs[] = {
 
 static const struct mfd_cell s2mpa01_devs[] = {
        { .name = "s2mpa01-pmic", },
+       { .name = "s2mps14-rtc", },
 };
 
 static const struct mfd_cell s2mpu02_devs[] = {
index ad00990..a98c5d1 100644 (file)
@@ -455,6 +455,9 @@ int sec_irq_init(struct sec_pmic_dev *sec_pmic)
        case S5M8767X:
                sec_irq_chip = &s5m8767_irq_chip;
                break;
+       case S2MPA01:
+               sec_irq_chip = &s2mps14_irq_chip;
+               break;
        case S2MPS11X:
                sec_irq_chip = &s2mps11_irq_chip;
                break;