[brcm63xx] add infrastructure to register gpio-input reset button
[openwrt.git] / target / linux / brcm63xx / files / arch / mips / bcm63xx / clk.c
index ce93c30..eaf6196 100644 (file)
@@ -49,7 +49,11 @@ static void enet_misc_set(struct clk *clk, int enable)
 {
        u32 mask;
 
 {
        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 */
                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;
 
        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;
        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;
 
 {
        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 */
                mask = CKCTL_6348_SPI_EN;
        else
                /* BCMCPU_IS_6358 */
This page took 0.020693 seconds and 4 git commands to generate.