diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-07-01 19:41:00 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-07-01 19:41:00 +0000 |
commit | d97b12f8b7a274a104cca079d235cddddb0f4a27 (patch) | |
tree | f422e2020b9402c4fc1275ab8bedf62c9dadecbb /target/linux/ar71xx/files/arch/mips/ar71xx | |
parent | 17c84f1db9a2eaf152630310b1f49af2b0c0d5b3 (diff) | |
download | master-31e0f0ae-d97b12f8b7a274a104cca079d235cddddb0f4a27.tar.gz master-31e0f0ae-d97b12f8b7a274a104cca079d235cddddb0f4a27.tar.bz2 master-31e0f0ae-d97b12f8b7a274a104cca079d235cddddb0f4a27.zip |
fix ar71xx_device_{start,stop} functions on the AR7240 SoC
SVN-Revision: 16648
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c b/target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c index a13c928125..30d08c051a 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c @@ -48,6 +48,13 @@ void ar71xx_device_stop(u32 mask) 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); @@ -77,6 +84,13 @@ void ar71xx_device_start(u32 mask) 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); |