diff options
| author | Tom Rini <[email protected]> | 2026-05-22 16:46:42 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-22 16:47:54 -0600 |
| commit | bb354d04459f5425318aeb8a70bae995ee573f1d (patch) | |
| tree | 8016f1225bb1174f3a99714f42ed179f7c0e2a8d /drivers/rtc | |
| parent | 21a3b9f03b05467ec7422399a92a43f89dd2b526 (diff) | |
| parent | 3dc2761d6347c35fe15fef64592d20946396872d (diff) | |
Merge patch series "Add virtio-mmio support to m68k virt machine"
Daniel Palmer <[email protected]> says:
Lets start making the m68k virt machine support useful.
First we need to fix some m68k endian issues.
Then allow virtio mmio driver instances to be created with
platform data and fix a minor endian issue.
Finally, add the code for the board to create the instances.
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/rtc')
| -rw-r--r-- | drivers/rtc/goldfish_rtc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/rtc/goldfish_rtc.c b/drivers/rtc/goldfish_rtc.c index d2991ca6719..4892a63f8d8 100644 --- a/drivers/rtc/goldfish_rtc.c +++ b/drivers/rtc/goldfish_rtc.c @@ -40,8 +40,8 @@ static int goldfish_rtc_get(struct udevice *dev, struct rtc_time *time) u64 time_low; u64 now; - time_low = ioread32(base + GOLDFISH_TIME_LOW); - time_high = ioread32(base + GOLDFISH_TIME_HIGH); + time_low = __raw_readl(base + GOLDFISH_TIME_LOW); + time_high = __raw_readl(base + GOLDFISH_TIME_HIGH); now = (time_high << 32) | time_low; do_div(now, 1000000000U); @@ -62,8 +62,8 @@ static int goldfish_rtc_set(struct udevice *dev, const struct rtc_time *time) return -EINVAL; now = rtc_mktime(time) * 1000000000ULL; - iowrite32(now >> 32, base + GOLDFISH_TIME_HIGH); - iowrite32(now, base + GOLDFISH_TIME_LOW); + __raw_writel(now >> 32, base + GOLDFISH_TIME_HIGH); + __raw_writel(now, base + GOLDFISH_TIME_LOW); if (time->tm_isdst > 0) priv->isdst = 1; |
