Skip to content

Commit

Permalink
rtc: sunxi: use external oscillator
Browse files Browse the repository at this point in the history
  • Loading branch information
mansr committed Feb 16, 2020
1 parent 157f757 commit 0b40427
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/rtc/rtc-sunxi.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@ static int sunxi_rtc_probe(struct platform_device *pdev)
return -ENODEV;
}

/* use external oscillator */
writel(0x16aa0001, chip->base + SUNXI_LOSC_CTRL);

/* clear the alarm count value */
writel(0, chip->base + SUNXI_ALRM_DHMS);

Expand Down

0 comments on commit 0b40427

Please sign in to comment.