fix ar71xx_device_{start,stop} functions on the AR7240 SoC

SVN-Revision: 16648
lede-17.01
Gabor Juhos 2009-07-01 19:41:00 +00:00
parent 17c84f1db9
commit d97b12f8b7
2 changed files with 16 additions and 0 deletions

View File

@ -48,6 +48,13 @@ void ar71xx_device_stop(u32 mask)
local_irq_restore(flags); local_irq_restore(flags);
break; 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_AR9130:
case AR71XX_SOC_AR9132: case AR71XX_SOC_AR9132:
local_irq_save(flags); local_irq_save(flags);
@ -77,6 +84,13 @@ void ar71xx_device_start(u32 mask)
local_irq_restore(flags); local_irq_restore(flags);
break; 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_AR9130:
case AR71XX_SOC_AR9132: case AR71XX_SOC_AR9132:
local_irq_save(flags); local_irq_save(flags);

View File

@ -362,6 +362,8 @@ void ar71xx_ddr_flush(u32 reg);
#define AR91XX_RESET_REG_PERFC0 0x24 #define AR91XX_RESET_REG_PERFC0 0x24
#define AR91XX_RESET_REG_PERFC1 0x28 #define AR91XX_RESET_REG_PERFC1 0x28
#define AR724X_RESET_REG_RESET_MODULE 0x1c
#define WDOG_CTRL_LAST_RESET BIT(31) #define WDOG_CTRL_LAST_RESET BIT(31)
#define WDOG_CTRL_ACTION_MASK 3 #define WDOG_CTRL_ACTION_MASK 3
#define WDOG_CTRL_ACTION_NONE 0 /* no action */ #define WDOG_CTRL_ACTION_NONE 0 /* no action */