arm: tcc8k: Fix bus clock calculation
authorOskar Schirmer <oskar@linutronix.de>
Thu, 17 Feb 2011 15:43:02 +0000 (16:43 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 11 Mar 2011 09:06:06 +0000 (10:06 +0100)
commitf91f9cd505f92e4227ffda7e5799a33d4f34bf36
tree94df64adc3e9c439a1b63725a0f34d88a1a30086
parentcfeeb2f99867c075f3a1a6ac59c0a42e1cd741b0
arm: tcc8k: Fix bus clock calculation

There are two dividers used to derive bus clock from system clock:
system clock is divided by SCKDIV+1, then by BCKDIV+1. SCKDIV divider
has been ignored up to now, which is no problem as long as it is 0.

Take SCKDIV into account for bus clock calculation.

Signed-off-by: Oskar Schirmer <oskar@linutronix.de>
Cc: bigeasy@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/arm/mach-tcc8k/clock.c