From: Stuart Menefy <stuart.menefy@mathembedded.com>
To: Sangbeom Kim <sbkim73@samsung.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
Lee Jones <lee.jones@linaro.org>,
linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org
Cc: Stuart Menefy <stuart.menefy@mathembedded.com>
Subject: [PATCH v3 2/2] mfd: sec: Add support for the RTC on S2MPA01
Date: Wed, 13 Feb 2019 22:24:02 +0000 [thread overview]
Message-ID: <20190213222402.20541-3-stuart.menefy@mathembedded.com> (raw)
In-Reply-To: <20190213222402.20541-1-stuart.menefy@mathembedded.com>
The RTC portion of the S2MPA01 appears to have the same
register layout as the S2MPS14.
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Stuart Menefy <stuart.menefy@mathembedded.com>
---
drivers/mfd/sec-core.c | 1 +
drivers/mfd/sec-irq.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index 5ff3fd726f9e..8a299080cb55 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -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[] = {
diff --git a/drivers/mfd/sec-irq.c b/drivers/mfd/sec-irq.c
index ad0099077e7e..a98c5d165039 100644
--- a/drivers/mfd/sec-irq.c
+++ b/drivers/mfd/sec-irq.c
@@ -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;
--
2.13.6
next prev parent reply other threads:[~2019-02-13 22:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-13 22:24 [PATCH v3 0/2] " Stuart Menefy
2019-02-13 22:24 ` [PATCH v3 1/2] mfd: sec: Put one element structure initialisation on one line Stuart Menefy
2019-03-20 9:58 ` Lee Jones
2019-02-13 22:24 ` Stuart Menefy [this message]
2019-03-20 10:01 ` [PATCH v3 2/2] mfd: sec: Add support for the RTC on S2MPA01 Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190213222402.20541-3-stuart.menefy@mathembedded.com \
--to=stuart.menefy@mathembedded.com \
--cc=b.zolnierkie@samsung.com \
--cc=krzk@kernel.org \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=sbkim73@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®