diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-04-07 20:52:57 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-04-07 20:52:57 +0000 |
commit | 6733c6b326f645d365c7fc66882a036bb2c3f77d (patch) | |
tree | e43d5bc05d11c11d2de7943723ea6aaf1ac0ead8 /target/linux/ar71xx | |
parent | 189748139d57f45f83c17450145fd771cb75731c (diff) | |
download | master-187ad058-6733c6b326f645d365c7fc66882a036bb2c3f77d.tar.gz master-187ad058-6733c6b326f645d365c7fc66882a036bb2c3f77d.tar.bz2 master-187ad058-6733c6b326f645d365c7fc66882a036bb2c3f77d.zip |
ar71xx: add AR934x specific glue for ar7100_device{start,stop}
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26512 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c | 26 |
1 files changed, 26 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 ed31274182..31b4422a09 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c @@ -71,6 +71,15 @@ void ar71xx_device_stop(u32 mask) spin_unlock_irqrestore(&ar71xx_device_lock, flags); break; + case AR71XX_SOC_AR9341: + case AR71XX_SOC_AR9342: + case AR71XX_SOC_AR9344: + spin_lock_irqsave(&ar71xx_device_lock, flags); + t = ar71xx_reset_rr(AR934X_RESET_REG_RESET_MODULE); + ar71xx_reset_wr(AR934X_RESET_REG_RESET_MODULE, t | mask); + spin_unlock_irqrestore(&ar71xx_device_lock, flags); + break; + default: BUG(); } @@ -113,6 +122,15 @@ void ar71xx_device_start(u32 mask) spin_unlock_irqrestore(&ar71xx_device_lock, flags); break; + case AR71XX_SOC_AR9341: + case AR71XX_SOC_AR9342: + case AR71XX_SOC_AR9344: + spin_lock_irqsave(&ar71xx_device_lock, flags); + t = ar71xx_reset_rr(AR934X_RESET_REG_RESET_MODULE); + ar71xx_reset_wr(AR934X_RESET_REG_RESET_MODULE, t & ~mask); + spin_unlock_irqrestore(&ar71xx_device_lock, flags); + break; + default: BUG(); } @@ -148,6 +166,14 @@ int ar71xx_device_stopped(u32 mask) spin_unlock_irqrestore(&ar71xx_device_lock, flags); break; + case AR71XX_SOC_AR9341: + case AR71XX_SOC_AR9342: + case AR71XX_SOC_AR9344: + spin_lock_irqsave(&ar71xx_device_lock, flags); + t = ar71xx_reset_rr(AR934X_RESET_REG_RESET_MODULE); + spin_unlock_irqrestore(&ar71xx_device_lock, flags); + break; + default: BUG(); } |