mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] rtc: ds1307: Add ds3231 to driver's ID list
@ 2018-10-18 11:47 Marco Felsch
  2018-10-19 11:55 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Felsch @ 2018-10-18 11:47 UTC (permalink / raw)
  To: barebox

In contrast to the ds1337 the ds3231 has a built-in temperature
compensated crystal oscillator. The register map seems the same as the
one from the ds1337, so using it's driver_data is okay.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 drivers/rtc/rtc-ds1307.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
index 73d88ba6f2..fed3afb7bf 100644
--- a/drivers/rtc/rtc-ds1307.c
+++ b/drivers/rtc/rtc-ds1307.c
@@ -112,6 +112,7 @@ static struct platform_device_id ds1307_id[] = {
 	{ "ds1308", ds_1338 }, /* Difference 1308 to 1338 irrelevant */
 	{ "ds1338", ds_1338 },
 	{ "ds1341", ds_1341 },
+	{ "ds3231", ds_1337 },
 	{ "pt7c4338", ds_1307 },
 	{ }
 };
-- 
2.19.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-19 11:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-18 11:47 [PATCH] rtc: ds1307: Add ds3231 to driver's ID list Marco Felsch
2018-10-19 11:55 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox