summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-07-01 13:49:20 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-07-01 13:49:20 +0000
commit8a8943671ab5ea01bccf9e8f140a49d71f944137 (patch)
tree70fc89e9b7d18152694528ce9ecc8b2f0b4a9a08
parent36ee9b722dd3cd3294b32ed36cfa5de668737851 (diff)
downloadmaster-31e0f0ae-8a8943671ab5ea01bccf9e8f140a49d71f944137.tar.gz
master-31e0f0ae-8a8943671ab5ea01bccf9e8f140a49d71f944137.tar.bz2
master-31e0f0ae-8a8943671ab5ea01bccf9e8f140a49d71f944137.zip
fixes for the bcm6338 clocks, thanks Maxime
SVN-Revision: 16640
-rw-r--r--target/linux/brcm63xx/files/arch/mips/bcm63xx/clk.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/clk.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/clk.c
index ce93c30e86..909875d07e 100644
--- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/clk.c
+++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/clk.c
@@ -49,7 +49,9 @@ static void enet_misc_set(struct clk *clk, int enable)
{
u32 mask;
- if (BCMCPU_IS_6348())
+ if (BCMCPU_IS_6338())
+ mask = CKCTL_6338_ENET_EN;
+ else if (BCMCPU_IS_6348())
mask = CKCTL_6348_ENET_EN;
else
/* BCMCPU_IS_6358 */
@@ -163,7 +165,9 @@ static void spi_set(struct clk *clk, int enable)
{
u32 mask;
- if (BCMCPU_IS_6348())
+ if (BCMCPU_IS_6338())
+ mask = CKCTL_6338_SPI_EN;
+ else if (BCMCPU_IS_6348())
mask = CKCTL_6348_SPI_EN;
else
/* BCMCPU_IS_6358 */