summaryrefslogtreecommitdiff
path: root/drivers/timer/orion-timer.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-09-18 08:27:23 -0400
committerTom Rini <trini@konsulko.com>2022-09-18 08:27:23 -0400
commit1977d72a69f3c8d97bd25a86a6be4da27cde3724 (patch)
tree49b577aabdf7dc2483b895bc02ed560cfcf56535 /drivers/timer/orion-timer.c
parent4f2c559b9a2ad86e03dffeef720257ea680707d0 (diff)
parent5996a8a8356c11c6eb504eeea93c267f9adbf53c (diff)
Merge https://source.denx.de/u-boot/custodians/u-boot-marvell
- mvebu: turris_omnia: Fix setting switch CONFIG pins on new board design (Marek) - orion-timer: Use timer_conv_64() to fix timer wrap around (Stefan)
Diffstat (limited to 'drivers/timer/orion-timer.c')
-rw-r--r--drivers/timer/orion-timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/timer/orion-timer.c b/drivers/timer/orion-timer.c
index fd30e1bf036..d7d1a1b2446 100644
--- a/drivers/timer/orion-timer.c
+++ b/drivers/timer/orion-timer.c
@@ -19,7 +19,7 @@ static uint64_t orion_timer_get_count(struct udevice *dev)
{
struct orion_timer_priv *priv = dev_get_priv(dev);
- return ~readl(priv->base + TIMER0_VAL);
+ return timer_conv_64(~readl(priv->base + TIMER0_VAL));
}
static int orion_timer_probe(struct udevice *dev)