summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/files/arch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-03-21 10:50:44 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-03-21 10:50:44 +0000
commit501ebb4f74b00b4c576e1eabdbacfce52d75c27d (patch)
tree019717646daa7b6b77e5aeb78360d939c5cdf6d6 /target/linux/brcm63xx/files/arch
parent1f1f83a4ec62dcd43bb7a1f3b6beaa573d717530 (diff)
downloadmtk-20170518-501ebb4f74b00b4c576e1eabdbacfce52d75c27d.zip
mtk-20170518-501ebb4f74b00b4c576e1eabdbacfce52d75c27d.tar.gz
mtk-20170518-501ebb4f74b00b4c576e1eabdbacfce52d75c27d.tar.bz2
enable all blocks on 6338 and uart clock on 6345
SVN-Revision: 14957
Diffstat (limited to 'target/linux/brcm63xx/files/arch')
-rw-r--r--target/linux/brcm63xx/files/arch/mips/bcm63xx/prom.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/prom.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/prom.c
index d97ceed..db0ef55 100644
--- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/prom.c
+++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/prom.c
@@ -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() */