[U-Boot] [PATCH v2 10/10] rtc: Allow child drivers

Simon Glass sjg at chromium.org
Sun Nov 18 15:14:35 UTC 2018


Some RTC chips have child drivers, e.g. to provide access to their
non-volatile RAM. Scan for these when binding.

Signed-off-by: Simon Glass <sjg at chromium.org>

---

Changes in v2:
- Drop patches previously applied
- Add new patches to support the RTC change

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

diff --git a/drivers/rtc/rtc-uclass.c b/drivers/rtc/rtc-uclass.c
index c676f0ff359..a0a238aedda 100644
--- a/drivers/rtc/rtc-uclass.c
+++ b/drivers/rtc/rtc-uclass.c
@@ -122,4 +122,5 @@ int rtc_write32(struct udevice *dev, unsigned int reg, u32 value)
 UCLASS_DRIVER(rtc) = {
 	.name		= "rtc",
 	.id		= UCLASS_RTC,
+	.post_bind	= dm_scan_fdt_dev,
 };
-- 
2.19.1.1215.g8438c0b245-goog



More information about the U-Boot mailing list