summaryrefslogtreecommitdiff
path: root/cmd/reginfo.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2021-07-29 12:59:12 +0200
committerMichal Simek <michal.simek@xilinx.com>2021-08-06 09:32:02 +0200
commita1ae55ee7f8df911649a0cfa5eba3ea88bae92ab (patch)
treed10e72ac7a6cdc96e1b54e11fd455d97b8c4b4dd /cmd/reginfo.c
parent23a328769a2638e87131198ad1e93000f69d6393 (diff)
cmd: date: rtc: Update command to read the first RTC with seq 0
RTCs are using sequence number defined in aliases node. Date command with DM_RTC enabled is looking for the first RTC with index 0. But when RTC_EMULATION is enabled it gets likely most of the time index 0 even when system has rtc0 device via aliases node and gets sequence number 0. That's why extend the code to look for sequence 0 number first. If this fails continue to use existing device with index 0. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'cmd/reginfo.c')
0 files changed, 0 insertions, 0 deletions