local_irq_restore(flags);
break;
+ case AR71XX_SOC_AR7240:
+ local_irq_save(flags);
+ t = ar71xx_reset_rr(AR724X_RESET_REG_RESET_MODULE);
+ ar71xx_reset_wr(AR724X_RESET_REG_RESET_MODULE, t | mask);
+ local_irq_restore(flags);
+ break;
+
case AR71XX_SOC_AR9130:
case AR71XX_SOC_AR9132:
local_irq_save(flags);
local_irq_restore(flags);
break;
+ case AR71XX_SOC_AR7240:
+ local_irq_save(flags);
+ t = ar71xx_reset_rr(AR724X_RESET_REG_RESET_MODULE);
+ ar71xx_reset_wr(AR724X_RESET_REG_RESET_MODULE, t & ~mask);
+ local_irq_restore(flags);
+ break;
+
case AR71XX_SOC_AR9130:
case AR71XX_SOC_AR9132:
local_irq_save(flags);
#define AR91XX_RESET_REG_PERFC0 0x24
#define AR91XX_RESET_REG_PERFC1 0x28
+#define AR724X_RESET_REG_RESET_MODULE 0x1c
+
#define WDOG_CTRL_LAST_RESET BIT(31)
#define WDOG_CTRL_ACTION_MASK 3
#define WDOG_CTRL_ACTION_NONE 0 /* no action */