summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-11-18 08:14:35 -0700
committerSimon Glass <sjg@chromium.org>2018-11-29 09:30:05 -0700
commit68c81fb6658bb2b8818d73f52788ea54322acb93 (patch)
tree03ae6ce7228e48cb1b62d7497ca8396a851074f7 /drivers/rtc
parent031a650e1309a086f6794cde35b1b1b851a9e926 (diff)
rtc: Allow child drivers
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@chromium.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-uclass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-uclass.c b/drivers/rtc/rtc-uclass.c
index c676f0ff35..a0a238aedd 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,
};