mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 07:22:25 +02:00
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
This commit is contained in:
parent
2c08ed8f8b
commit
7763501529
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user