All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@xilinx.com>
To: u-boot@lists.denx.de, git@xilinx.com
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>,
	Simon Glass <sjg@chromium.org>
Subject: [PATCH 1/4] dm: rtc: uclass: Add flag to control sequence numbering
Date: Thu, 29 Jul 2021 13:36:22 +0200	[thread overview]
Message-ID: <b9c4b90db46424937d16386fa0c1781ecf5fc2d8.1627558582.git.michal.simek@xilinx.com> (raw)
In-Reply-To: <cover.1627558582.git.michal.simek@xilinx.com>

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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/rtc/rtc-uclass.c b/drivers/rtc/rtc-uclass.c
index be6a2ddb6671..321b8732ed9a 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
-- 
2.32.0


  reply	other threads:[~2021-07-29 11:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-29 11:36 [PATCH 0/4] xilinx: Add RTC support for Xilinx ZynqMP Michal Simek
2021-07-29 11:36 ` Michal Simek [this message]
2021-07-29 11:36 ` [PATCH 2/4] cmd: date: rtc: Update command to read the first RTC with seq 0 Michal Simek
2021-07-29 11:36 ` [PATCH 3/4] rtc: zynqmp: Add support for ZynqMP RTC Michal Simek
2021-07-29 11:36 ` [PATCH 4/4] xilinx: zynqmp: Enable CMD_RTC command with Zynqmp RTC driver Michal Simek
2021-08-06  7:34 ` [PATCH 0/4] xilinx: Add RTC support for Xilinx ZynqMP Michal Simek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b9c4b90db46424937d16386fa0c1781ecf5fc2d8.1627558582.git.michal.simek@xilinx.com \
    --to=michal.simek@xilinx.com \
    --cc=git@xilinx.com \
    --cc=patrick.delaunay@foss.st.com \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.