diff options
Diffstat (limited to 'drivers/timer/omap-timer.c')
-rw-r--r-- | drivers/timer/omap-timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/timer/omap-timer.c b/drivers/timer/omap-timer.c index 138783b69f..f10df69092 100644 --- a/drivers/timer/omap-timer.c +++ b/drivers/timer/omap-timer.c @@ -61,7 +61,8 @@ static int omap_timer_probe(struct udevice *dev) struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev); struct omap_timer_priv *priv = dev_get_priv(dev); - uc_priv->clock_rate = TIMER_CLOCK; + if (!uc_priv->clock_rate) + uc_priv->clock_rate = TIMER_CLOCK; /* start the counter ticking up, reload value on overflow */ writel(0, &priv->regs->tldr); |