]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: rtc: uclass: Add flag to control sequence numbering
authorMichal Simek <michal.simek@xilinx.com>
Thu, 29 Jul 2021 10:57:12 +0000 (12:57 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 6 Aug 2021 07:32:02 +0000 (09:32 +0200)
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>
drivers/rtc/rtc-uclass.c

index be6a2ddb667161fdade5ef829ead9093c359689d..321b8732ed9a238e9fd3050808631674f3ffd811 100644 (file)
@@ -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