summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2018-10-18 13:47:08 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-10-19 13:55:02 +0200
commit2ab1c1bcc2c290b2e7a13b915d9e953b2cb2592d (patch)
tree6357765e8e77acf2e78d95120f4685dcd3a98911 /drivers
parentd8fcbad91a22be905b5fd8aec26ce1cc3b950d98 (diff)
downloadbarebox-2ab1c1bcc2c290b2e7a13b915d9e953b2cb2592d.tar.gz
barebox-2ab1c1bcc2c290b2e7a13b915d9e953b2cb2592d.tar.xz
rtc: ds1307: Add ds3231 to driver's ID list
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> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-ds1307.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
index 78419811bd..bb597305e5 100644
--- a/drivers/rtc/rtc-ds1307.c
+++ b/drivers/rtc/rtc-ds1307.c
@@ -111,6 +111,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 },
{ }
};