X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e41d42803fe1bcf67178500085d8be65f61749fa..d303e45f4bbad9c4fff934cf8f63f33538af8cee:/target/linux/brcm63xx/files/arch/mips/bcm63xx/clk.c?ds=sidebyside diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/clk.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/clk.c index ce93c30e8..eaf6196c7 100644 --- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/clk.c +++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/clk.c @@ -49,7 +49,11 @@ 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_6345()) + mask = CKCTL_6345_ENET_EN; + else if (BCMCPU_IS_6348()) mask = CKCTL_6348_ENET_EN; else /* BCMCPU_IS_6358 */ @@ -145,6 +149,7 @@ static void usbs_set(struct clk *clk, int enable) switch(bcm63xx_get_cpu_id()) { case BCM6338_CPU_ID: mask = CKCTL_6338_USBS_EN; break; + case BCM6345_CPU_ID: mask = CKCTL_6345_USBS_EN; break; case BCM6348_CPU_ID: mask = CKCTL_6348_USBS_EN; break; default: return; @@ -163,7 +168,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 */