Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1439927
| Path | csiph.com!feeder.erje.net!1.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!weretis.net!feeder4.news.weretis.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Randy Li <ayaka@soulik.info> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] rtc: s3c: add device data for samsung,exynos3250-rtc |
| Date | Sat, 09 Jul 2016 11:30:01 +0200 |
| Message-ID | <rSWKd-14B-11@gated-at.bofh.it> (permalink) |
| References | <rSWKd-14B-5@gated-at.bofh.it> |
| X-Original-To | k.kozlowski@samsung.com |
| X-Mailer | git-send-email 2.7.4 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 43 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | alexandre.belloni@free-electrons.com, a.zummo@towertech.it, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Randy Li <ayaka@soulik.info> |
| X-Original-Date | Sat, 9 Jul 2016 17:23:45 +0800 |
| X-Original-Message-ID | <1468056226-19128-3-git-send-email-ayaka@soulik.info> |
| X-Original-References | <1468056226-19128-1-git-send-email-ayaka@soulik.info> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1439927 |
Show key headers only | View raw
The device data for samsung,exynos3250-rtc and samsung,s3c6410-rtc
are just have a difference, but keeping using the same device data
would cause the platform using the other IP core not work.
Signed-off-by: Randy Li <ayaka@soulik.info>
---
drivers/rtc/rtc-s3c.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c
index 5dc18ca..e9f6151 100644
--- a/drivers/rtc/rtc-s3c.c
+++ b/drivers/rtc/rtc-s3c.c
@@ -810,6 +810,18 @@ static struct s3c_rtc_data const s3c6410_rtc_data = {
.disable = s3c6410_rtc_disable,
};
+static struct s3c_rtc_data const exynos3250_rtc_data = {
+ .max_user_freq = 32768,
+ .needs_src_clk = true,
+ .irq_handler = s3c6410_rtc_irq,
+ .set_freq = s3c6410_rtc_setfreq,
+ .enable_tick = s3c6410_rtc_enable_tick,
+ .save_tick_cnt = s3c6410_rtc_save_tick_cnt,
+ .restore_tick_cnt = s3c6410_rtc_restore_tick_cnt,
+ .enable = s3c24xx_rtc_enable,
+ .disable = s3c6410_rtc_disable,
+};
+
static const struct of_device_id s3c_rtc_dt_match[] = {
{
.compatible = "samsung,s3c2410-rtc",
@@ -825,7 +837,7 @@ static const struct of_device_id s3c_rtc_dt_match[] = {
.data = (void *)&s3c6410_rtc_data,
}, {
.compatible = "samsung,exynos3250-rtc",
- .data = (void *)&s3c6410_rtc_data,
+ .data = (void *)&exynos3250_rtc_data,
},
{ /* sentinel */ },
};
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 2/3] rtc: s3c: add device data for samsung,exynos3250-rtc Randy Li <ayaka@soulik.info> - 2016-07-09 11:30 +0200 Re: [PATCH 2/3] rtc: s3c: add device data for samsung,exynos3250-rtc Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-07-11 08:00 +0200
csiph-web