summaryrefslogtreecommitdiff
path: root/cpu/arm926ejs/at91/clock.c
diff options
context:
space:
mode:
authorAsen Dimov <dimov@ronetix.at>2010-03-18 13:46:45 +0200
committertrix <trix@windriver.com>2010-04-03 15:24:27 -0500
commite99056e3877d1f04a36991aa48f1c690547f5ab9 (patch)
tree4bb4402b4eb63fe6fdba61692f415c53a742e3a1 /cpu/arm926ejs/at91/clock.c
parent4b894a97d307c3207af40031d9e820e2960de57f (diff)
downloadu-boot-imx-e99056e3877d1f04a36991aa48f1c690547f5ab9.zip
u-boot-imx-e99056e3877d1f04a36991aa48f1c690547f5ab9.tar.gz
u-boot-imx-e99056e3877d1f04a36991aa48f1c690547f5ab9.tar.bz2
using AT91_PMC_MCKR_MDIV_ instead of LEGACY one in at91/clock.c
Signed-off-by: Asen Dimov <dimov@ronetix.at>
Diffstat (limited to 'cpu/arm926ejs/at91/clock.c')
-rw-r--r--cpu/arm926ejs/at91/clock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu/arm926ejs/at91/clock.c b/cpu/arm926ejs/at91/clock.c
index b06d760..ecf91f5 100644
--- a/cpu/arm926ejs/at91/clock.c
+++ b/cpu/arm926ejs/at91/clock.c
@@ -203,7 +203,8 @@ int at91_clock_init(unsigned long main_clock)
if (mckr & AT91_PMC_MCKR_MDIV_MASK)
freq /= 2; /* processor clock division */
#elif defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45)
- mck_rate_hz = (mckr & AT91_PMC_MCKR_MDIV_MASK) == AT91SAM9_PMC_MDIV_3
+ mck_rate_hz = (mckr & AT91_PMC_MCKR_MDIV_MASK) ==
+ (AT91_PMC_MCKR_MDIV_2 | AT91_PMC_MCKR_MDIV_4)
? freq / 3
: freq / (1 << ((mckr & AT91_PMC_MCKR_MDIV_MASK) >> 8));
#else