[U-Boot] [PATCH 2/4] rtc: m41t62: add compatible for m41t82

Simon Goldschmidt simon.k.r.goldschmidt at gmail.com
Tue Mar 12 21:01:08 UTC 2019


This adds a compatible string for m41t82. This ensures that this driver
can be used for m41t82 in DM mode, too (as it was usable for this model
in non-DM mode before).

This patch ensures this driver works on socfpga_socrates.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
---

 drivers/rtc/m41t62.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/rtc/m41t62.c b/drivers/rtc/m41t62.c
index 2ee7e00b02..4b5bf8e7a0 100644
--- a/drivers/rtc/m41t62.c
+++ b/drivers/rtc/m41t62.c
@@ -163,6 +163,7 @@ static const struct rtc_ops m41t62_rtc_ops = {
 
 static const struct udevice_id m41t62_rtc_ids[] = {
 	{ .compatible = "st,m41t62" },
+	{ .compatible = "st,m41t82" },
 	{ .compatible = "microcrystal,rv4162" },
 	{ }
 };
-- 
2.17.1



More information about the U-Boot mailing list