diff options
author | Michal Simek <michal.simek@xilinx.com> | 2021-07-29 12:57:12 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2021-08-06 09:32:02 +0200 |
commit | 23a328769a2638e87131198ad1e93000f69d6393 (patch) | |
tree | 6811f3ff8b380b7f2bf054617fcf900daa901be9 | |
parent | 31431dd466e7a3520ff780b893b5ca2279939c27 (diff) | |
download | u-boot-23a328769a2638e87131198ad1e93000f69d6393.tar.gz |
dm: rtc: uclass: Add flag to control sequence numbering
RTCs are using aliases for sequences. That's why enable
DM_UC_FLAG_SEQ_ALIAS for exact RTC indentification.
The same flag is used by a lot of other uclasses like mmc, pci, serial,
spi, timer, tpm, etc.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | drivers/rtc/rtc-uclass.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-uclass.c b/drivers/rtc/rtc-uclass.c index be6a2ddb66..321b8732ed 100644 --- a/drivers/rtc/rtc-uclass.c +++ b/drivers/rtc/rtc-uclass.c @@ -176,6 +176,7 @@ int rtc_write32(struct udevice *dev, unsigned int reg, u32 value) UCLASS_DRIVER(rtc) = { .name = "rtc", .id = UCLASS_RTC, + .flags = DM_UC_FLAG_SEQ_ALIAS, #if !CONFIG_IS_ENABLED(OF_PLATDATA) .post_bind = dm_scan_fdt_dev, #endif |