MIPS: Alchemy: fix Au1000/Au1500 LRCLK calculation
authorManuel Lauss <manuel.lauss@gmail.com>
Thu, 29 Jan 2015 15:06:42 +0000 (16:06 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 20 Feb 2015 12:00:08 +0000 (13:00 +0100)
commit51f105d3074e8711698902ff89fcdc56193389ff
treedb846af7cef14e459e35666d36a8c6938c9e5ef4
parenta5770df09541f88021390375f324b25124675355
MIPS: Alchemy: fix Au1000/Au1500 LRCLK calculation

The Au1000 and Au1500 calculate the LRCLK a bit differently than
newer models: a single bit in MEM_STCFG0 selects if pclk is divided
by 4 or 5.

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Cc: Linux-MIPS <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/9148/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/common/clock.c