enable all blocks on 6338 and uart clock on 6345
authorFlorian Fainelli <florian@openwrt.org>
Sat, 21 Mar 2009 10:50:44 +0000 (10:50 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 21 Mar 2009 10:50:44 +0000 (10:50 +0000)
SVN-Revision: 14957

target/linux/brcm63xx/files/arch/mips/bcm63xx/prom.c
target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm63xx_regs.h

index d97ceed02013da702cd72832ba1c75630f30a616..db0ef555a8ae2310e6bb0b354dddb5d7aca9ca4c 100644 (file)
@@ -25,7 +25,11 @@ void __init prom_init(void)
        bcm_wdt_writel(WDT_STOP_2, WDT_CTL_REG);
 
        /* disable all hardware blocks clock for now */
-       if (BCMCPU_IS_6348())
+       if (BCMCPU_IS_6338())
+               mask = CKCTL_6338_ALL_SAFE_EN;
+       else if (BCMCPU_IS_6345())
+               mask = CKCTL_6345_UART_EN;
+       else if (BCMCPU_IS_6348())
                mask = CKCTL_6348_ALL_SAFE_EN;
        else
                /* BCMCPU_IS_6358() */
index 6323e45dd968d4fd24432facbde15ef30224841a..0b150db870aa641a7394d30a813b1d2a48c74078 100644 (file)
                                        CKCTL_6338_SAR_EN |             \
                                        CKCTL_6338_SPI_EN)
 
+#define CKCTL_6345_CPU_EN              (1 << 0)
+#define CKCTL_6345_UART_EN             (1 << 3)
+#define CKCTL_6345_ENET_EN             (1 << 7)
+#define CKCTL_6345_USBH_EN             (1 << 8)
+
 #define CKCTL_6348_ADSLPHY_EN          (1 << 0)
 #define CKCTL_6348_MPI_EN              (1 << 1)
 #define CKCTL_6348_SDRAM_EN            (1 << 2)