diff mbox series

[1/3] rtc: ds1307: Add ds1339 compatible

Message ID 20210303010946.21503-1-judge.packham@gmail.com
State Accepted
Commit f65774e1f6a0f48bcb52eb3581675e478365f2fa
Delegated to: Priyanka Jain
Headers show
Series [1/3] rtc: ds1307: Add ds1339 compatible | expand

Commit Message

Chris Packham March 3, 2021, 1:09 a.m. UTC
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>
---

 drivers/rtc/ds1307.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Simon Glass March 5, 2021, 4:09 a.m. UTC | #1
On Tue, 2 Mar 2021 at 20:09, Chris Packham <judge.packham@gmail.com> wrote:
>
> As far as u-boot is concerned the ds1339 is compatible with the other

U-Boot

> 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>
> ---
>
>  drivers/rtc/ds1307.c | 2 ++
>  1 file changed, 2 insertions(+)
>

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/drivers/rtc/ds1307.c b/drivers/rtc/ds1307.c
index 17344d4d4ff2..2015ce9bbcd4 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 },