mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
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
This commit is contained in:
@@ -219,6 +219,17 @@ static int __devinit ar71xx_wdt_probe(struct platform_device *pdev)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
switch (ar71xx_soc) {
|
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_AR9341:
|
||||||
case AR71XX_SOC_AR9342:
|
case AR71XX_SOC_AR9342:
|
||||||
case AR71XX_SOC_AR9344:
|
case AR71XX_SOC_AR9344:
|
||||||
@@ -226,8 +237,7 @@ static int __devinit ar71xx_wdt_probe(struct platform_device *pdev)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
wdt_clk_freq = ar71xx_ahb_freq;
|
BUG();
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
max_timeout = (0xfffffffful / wdt_clk_freq);
|
max_timeout = (0xfffffffful / wdt_clk_freq);
|
||||||
|
|||||||
Reference in New Issue
Block a user