summaryrefslogtreecommitdiff
path: root/arch/arm/mach-at91/clock.c
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2016-02-02 04:46:12 (GMT)
committerAndreas Bießmann <andreas.devel@googlemail.com>2016-02-18 20:34:41 (GMT)
commitc0b868c08771ec73c8f837d44d3dc5bd9f05216f (patch)
tree45d383261e6448d6a8e063fc1000daa4494582c3 /arch/arm/mach-at91/clock.c
parent30f65c85decb7d6816ba358927ab86e05ccaea2e (diff)
downloadu-boot-c0b868c08771ec73c8f837d44d3dc5bd9f05216f.tar.xz
ARM: at91: clock: add PMC_PLLICPR init function
To avoid the duplicated code, add the PMC_PLLICPR init function. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Tested-by: Heiko Schocher <hs@denx.de> Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'arch/arm/mach-at91/clock.c')
-rw-r--r--arch/arm/mach-at91/clock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c
index 5300d68..06dcbbc 100644
--- a/arch/arm/mach-at91/clock.c
+++ b/arch/arm/mach-at91/clock.c
@@ -112,3 +112,10 @@ void at91_usb_clk_init(u32 value)
writel(value, &pmc->usb);
}
+
+void at91_pllicpr_init(u32 icpr)
+{
+ struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
+
+ writel(icpr, &pmc->pllicpr);
+}