ar71xx: add AR934X specific bootstrap and reset register bits
[openwrt.git] / target / linux / ar71xx / files / drivers / watchdog / ar71xx_wdt.c
index 7163465..75ad0e7 100644 (file)
@@ -219,15 +219,27 @@ static int __devinit ar71xx_wdt_probe(struct platform_device *pdev)
        int ret;
 
        switch (ar71xx_soc) {
        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:
        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:
                break;
 
        default:
-               wdt_clk_freq = ar71xx_ahb_freq;
-               break;
+               BUG();
        }
 
        max_timeout = (0xfffffffful / wdt_clk_freq);
        }
 
        max_timeout = (0xfffffffful / wdt_clk_freq);
This page took 0.027391 seconds and 4 git commands to generate.