]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] Alchemy: work around clock misdetection on early Au1000
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Thu, 27 Mar 2008 13:09:31 +0000 (16:09 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 1 Apr 2008 14:46:34 +0000 (15:46 +0100)
commit229e04073172705d7ae986ee348a89350ab6510e
tree530fb34442234b04afe0972d6765bbc7f17ba0f6
parent042fe525f6a530477ee00bd31c2dd5e7ebe3a4d2
[MIPS] Alchemy: work around clock misdetection on early Au1000

Work around the CPU clock miscalculation on Au1000DA/HA/HB due the
sys_cpupll register being write-only, i.e. actually do what the comment
before cal_r4off() function advertised for years but the code failed at.
This is achieved by just giving user a chance to define the clock
explicitly  in the board config. via CONFIG_SOC_AU1000_FREQUENCY option,
defaulting to 396 MHz if the option is not given...

The patch is based on the AMD's big unpublished patch, the issue seems to
be an undocumented errata (or feature :-)...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/au1000/common/cputable.c
arch/mips/au1000/common/setup.c
arch/mips/au1000/common/time.c
include/asm-mips/mach-au1x00/au1000.h