summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-05-31 22:53:34 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-05-31 22:53:34 +0000
commit88c45e3130a8d2e64d4a62118bbe3b0e39553564 (patch)
treec74ee52cca6d735973fcb785270e484ddc8e571b /target/linux/ar71xx
parent7acbacab8c5c7ef15b9764b487d20be751b1ea49 (diff)
downloadmtk-20170518-88c45e3130a8d2e64d4a62118bbe3b0e39553564.zip
mtk-20170518-88c45e3130a8d2e64d4a62118bbe3b0e39553564.tar.gz
mtk-20170518-88c45e3130a8d2e64d4a62118bbe3b0e39553564.tar.bz2
ar71xx: the watchdog uses the reference clock on the AR933x SoCs
SVN-Revision: 27060
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c
index 688b915..4e4c254 100644
--- a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c
+++ b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c
@@ -219,6 +219,17 @@ static int __devinit ar71xx_wdt_probe(struct platform_device *pdev)
int ret;
switch (ar71xx_soc) {
+ case AR71XX_SOC_AR7130:
+ case AR71XX_SOC_AR7141:
+ case AR71XX_SOC_AR7161:
+ case AR71XX_SOC_AR7240:
+ case AR71XX_SOC_AR7241:
+ case AR71XX_SOC_AR7242:
+ wdt_clk_freq = ar71xx_ahb_freq;
+ break;
+
+ case AR71XX_SOC_AR9330:
+ case AR71XX_SOC_AR9331:
case AR71XX_SOC_AR9341:
case AR71XX_SOC_AR9342:
case AR71XX_SOC_AR9344:
@@ -226,8 +237,7 @@ static int __devinit ar71xx_wdt_probe(struct platform_device *pdev)
break;
default:
- wdt_clk_freq = ar71xx_ahb_freq;
- break;
+ BUG();
}
max_timeout = (0xfffffffful / wdt_clk_freq);