X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7072aeaf32e086659bd58d671c0b269c7fb582d0..a1f55598372ce5ca87ad11e75bf7ad40145b115d:/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c diff --git a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c index 716346575..75ad0e789 100644 --- a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c +++ b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c @@ -219,15 +219,27 @@ 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: + case AR71XX_SOC_AR9130: + case AR71XX_SOC_AR9132: + 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: - wdt_clk_freq = ar934x_ref_freq; + wdt_clk_freq = ar71xx_ref_freq; break; default: - wdt_clk_freq = ar71xx_ahb_freq; - break; + BUG(); } max_timeout = (0xfffffffful / wdt_clk_freq);