]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: BCM63XX: fix BCM6345 clocks bits
authorFlorian Fainelli <florian@openwrt.org>
Mon, 12 Nov 2012 08:48:45 +0000 (08:48 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 20 Nov 2012 07:30:50 +0000 (08:30 +0100)
commita225fa611705dd2b2fce3ee3d6edabd0fb3314aa
treeb69661b59829de3b4e69ad43858000cab5ef9fab
parentcbf4af5b2a205fc0e5098bd4905891a30ada3ef6
MIPS: BCM63XX: fix BCM6345 clocks bits

BCM6345 has an intermediate 16-bits wide test control register between the
peripheral identifier register, and its clock control register is only 16-bits
wide contrary to other platforms where it is 32-bits wide. By shifting all
clocks bits by 16-bits to the left we ensure they get written to the proper
clock control register, without adding specific BCM6345 handling in the clock
code.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4555/
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h