MIPS: Octeon: Add octeon_get_io_clock_rate() for cn63xx
commite195aa3039c5c4eeb60c415a7a0f3006d5cdcd3b
authorDavid Daney <ddaney@caviumnetworks.com>
Thu, 7 Oct 2010 23:03:49 +0000 (7 16:03 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 29 Oct 2010 18:08:40 +0000 (29 19:08 +0100)
tree62817e61ddac8e1212f04cbdbbcf542849fdd8e6
parent3b29dadff98887ecdc5db458c2961777016b7b86
MIPS: Octeon: Add octeon_get_io_clock_rate() for cn63xx

Starting with cn63xx Octeon I/O blocks are clocked at a different rate
than the CPU.  Add a new function octeon_get_io_clock_rate() that
yields the I/O clock rate.

Also rearrange octeon_get_clock_rate() to get the value from the saved
sysinfo structure.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Patchwork: http://patchwork.linux-mips.org/patch/1671/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/setup.c
arch/mips/include/asm/octeon/octeon.h