summaryrefslogtreecommitdiff
path: root/drivers/rtc/ds1307.c
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2021-03-03 04:09:44 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2021-03-23 15:36:07 +0300
commitf65774e1f6a0f48bcb52eb3581675e478365f2fa (patch)
treecbdc56c6891e2559f60b1c1b3148d7919f3d539f /drivers/rtc/ds1307.c
parentfc37c7a9318c9e36c1b62a8589f2fc22c41da096 (diff)
downloadu-boot-f65774e1f6a0f48bcb52eb3581675e478365f2fa.tar.xz
rtc: ds1307: Add ds1339 compatible
As far as u-boot is concerned the ds1339 is compatible with the other devices supported by the ds1307 driver. The Linux driver does expose some additional functionality but as far as u-boot is concerned just adding the compatible string is enough. Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'drivers/rtc/ds1307.c')
-rw-r--r--drivers/rtc/ds1307.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/ds1307.c b/drivers/rtc/ds1307.c
index 17344d4d4f..2015ce9bbc 100644
--- a/drivers/rtc/ds1307.c
+++ b/drivers/rtc/ds1307.c
@@ -23,6 +23,7 @@
enum ds_type {
ds_1307,
ds_1337,
+ ds_1339,
ds_1340,
m41t11,
mcp794xx,
@@ -344,6 +345,7 @@ static const struct rtc_ops ds1307_rtc_ops = {
static const struct udevice_id ds1307_rtc_ids[] = {
{ .compatible = "dallas,ds1307", .data = ds_1307 },
{ .compatible = "dallas,ds1337", .data = ds_1337 },
+ { .compatible = "dallas,ds1339", .data = ds_1339 },
{ .compatible = "dallas,ds1340", .data = ds_1340 },
{ .compatible = "microchip,mcp7941x", .data = mcp794xx },
{ .compatible = "st,m41t11", .data = m41t11 },