diff options
author | Simon Glass <sjg@chromium.org> | 2020-10-03 11:31:34 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-10-29 14:42:18 -0600 |
commit | 67507e4aab5b58c62cd57b855ce97a83d882479c (patch) | |
tree | 17bacc03390bdddd308ef3d6ded64b1f2a023f7b /drivers/rtc | |
parent | a294ead8d2531a641f87bf182fee257029973ac0 (diff) | |
download | u-boot-67507e4aab5b58c62cd57b855ce97a83d882479c.zip u-boot-67507e4aab5b58c62cd57b855ce97a83d882479c.tar.gz u-boot-67507e4aab5b58c62cd57b855ce97a83d882479c.tar.bz2 |
sandbox: Fix up building for of-platdata
There is no devicetree with of-platdata. Update a few uclasses to allow
them to be built for sandbox_spl. Also drop the i2c-gpio from SPL to avoid
build errors, since it does not support of-platdata.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-uclass.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-uclass.c b/drivers/rtc/rtc-uclass.c index 8035f7f..b406bab 100644 --- a/drivers/rtc/rtc-uclass.c +++ b/drivers/rtc/rtc-uclass.c @@ -174,5 +174,7 @@ int rtc_write32(struct udevice *dev, unsigned int reg, u32 value) UCLASS_DRIVER(rtc) = { .name = "rtc", .id = UCLASS_RTC, +#if !CONFIG_IS_ENABLED(OF_PLATDATA) .post_bind = dm_scan_fdt_dev, +#endif }; |