diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-05-31 22:53:34 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-05-31 22:53:34 +0000 |
commit | 9a2d89381e9dc78b2b9c458fcdfa10256ab71047 (patch) | |
tree | 348075c73c3a28d7d5e2b2735bf2975226bf26f1 /target/linux/ar71xx/files | |
parent | 2509e6a9ddc58d4d6e22a9aa4ab2ad97e1eb8f7c (diff) | |
download | upstream-9a2d89381e9dc78b2b9c458fcdfa10256ab71047.tar.gz upstream-9a2d89381e9dc78b2b9c458fcdfa10256ab71047.tar.bz2 upstream-9a2d89381e9dc78b2b9c458fcdfa10256ab71047.zip |
ar71xx: the watchdog uses the reference clock on the AR933x SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27060 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r-- | target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c | 14 |
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 688b9152c4..4e4c2548d9 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); |