summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/arch/mips
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-04-07 20:52:57 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-04-07 20:52:57 +0000
commit334a5ec36e95a8f0e037a5ffe70b223f112ca491 (patch)
tree3215e1d171620cc8571ffb8df05aa8cd6cac35c3 /target/linux/ar71xx/files/arch/mips
parentccd3ebd30948dbd6f0e1278055cdd5bbb756c194 (diff)
downloadmtk-20170518-334a5ec36e95a8f0e037a5ffe70b223f112ca491.zip
mtk-20170518-334a5ec36e95a8f0e037a5ffe70b223f112ca491.tar.gz
mtk-20170518-334a5ec36e95a8f0e037a5ffe70b223f112ca491.tar.bz2
ar71xx: add AR934x specific glue for ar7100_device{start,stop}
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com> SVN-Revision: 26512
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/ar71xx.c26
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 ed31274..31b4422 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();
}