fixes for the bcm6338 clocks, thanks Maxime
authorFlorian Fainelli <florian@openwrt.org>
Wed, 1 Jul 2009 13:49:20 +0000 (13:49 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 1 Jul 2009 13:49:20 +0000 (13:49 +0000)
SVN-Revision: 16640

target/linux/brcm63xx/files/arch/mips/bcm63xx/clk.c

index ce93c30e867d1fcac7d6d82d95a6863884adf484..909875d07ef9b3e3d1cddfe37a5d11d69ef3dc21 100644 (file)
@@ -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 */