summaryrefslogtreecommitdiff
path: root/cpu/arm926ejs/at91/clock.c
diff options
context:
space:
mode:
authorDaniel Gorsulowski <Daniel.Gorsulowski@esd.eu>2009-04-23 15:37:16 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-04-29 21:42:34 +0200
commita1e5f93185d0d85a4b3fad3b6c743cddcd373b0c (patch)
treea7f3a9908a97da710fc682fc113eeb6a8797908b /cpu/arm926ejs/at91/clock.c
parent3791a1187c1401c33c9512595e6e89dbb46230c5 (diff)
downloadu-boot-imx-a1e5f93185d0d85a4b3fad3b6c743cddcd373b0c.zip
u-boot-imx-a1e5f93185d0d85a4b3fad3b6c743cddcd373b0c.tar.gz
u-boot-imx-a1e5f93185d0d85a4b3fad3b6c743cddcd373b0c.tar.bz2
at91: fixed plla calc when no USB support is active
Signed-off-by: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'cpu/arm926ejs/at91/clock.c')
-rw-r--r--cpu/arm926ejs/at91/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/arm926ejs/at91/clock.c b/cpu/arm926ejs/at91/clock.c
index 31e53b3..f776f70 100644
--- a/cpu/arm926ejs/at91/clock.c
+++ b/cpu/arm926ejs/at91/clock.c
@@ -126,6 +126,7 @@ static unsigned at91_pll_calc(unsigned main_freq, unsigned out_freq)
fail:
return 0;
}
+#endif
static u32 at91_pll_rate(u32 freq, u32 reg)
{
@@ -141,7 +142,6 @@ static u32 at91_pll_rate(u32 freq, u32 reg)
return freq;
}
-#endif
int at91_clock_init(unsigned long main_clock)
{