MIPS: ath79: Add AR933X specific IRQ initialization
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Cc: linux-mips@linux-mips.org Cc: Kathy Giori <kgiori@qca.qualcomm.com> Cc: "Luis R. Rodriguez" <rodrigue@qca.qualcomm.com> Patchwork: https://patchwork.linux-mips.org/patch/2530/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
7ee15d8a28
commit
54eed4c77c
@ -129,7 +129,7 @@ static void __init ath79_misc_irq_init(void)
|
|||||||
|
|
||||||
if (soc_is_ar71xx() || soc_is_ar913x())
|
if (soc_is_ar71xx() || soc_is_ar913x())
|
||||||
ath79_misc_irq_chip.irq_mask_ack = ar71xx_misc_irq_mask;
|
ath79_misc_irq_chip.irq_mask_ack = ar71xx_misc_irq_mask;
|
||||||
else if (soc_is_ar724x())
|
else if (soc_is_ar724x() || soc_is_ar933x())
|
||||||
ath79_misc_irq_chip.irq_ack = ar724x_misc_irq_ack;
|
ath79_misc_irq_chip.irq_ack = ar724x_misc_irq_ack;
|
||||||
else
|
else
|
||||||
BUG();
|
BUG();
|
||||||
@ -186,6 +186,9 @@ void __init arch_init_irq(void)
|
|||||||
} else if (soc_is_ar913x()) {
|
} else if (soc_is_ar913x()) {
|
||||||
ath79_ip2_flush_reg = AR913X_DDR_REG_FLUSH_WMAC;
|
ath79_ip2_flush_reg = AR913X_DDR_REG_FLUSH_WMAC;
|
||||||
ath79_ip3_flush_reg = AR913X_DDR_REG_FLUSH_USB;
|
ath79_ip3_flush_reg = AR913X_DDR_REG_FLUSH_USB;
|
||||||
|
} else if (soc_is_ar933x()) {
|
||||||
|
ath79_ip2_flush_reg = AR933X_DDR_REG_FLUSH_WMAC;
|
||||||
|
ath79_ip3_flush_reg = AR933X_DDR_REG_FLUSH_USB;
|
||||||
} else
|
} else
|
||||||
BUG();
|
BUG();
|
||||||
|
|
||||||
|
@ -82,6 +82,11 @@
|
|||||||
#define AR913X_DDR_REG_FLUSH_USB 0x84
|
#define AR913X_DDR_REG_FLUSH_USB 0x84
|
||||||
#define AR913X_DDR_REG_FLUSH_WMAC 0x88
|
#define AR913X_DDR_REG_FLUSH_WMAC 0x88
|
||||||
|
|
||||||
|
#define AR933X_DDR_REG_FLUSH_GE0 0x7c
|
||||||
|
#define AR933X_DDR_REG_FLUSH_GE1 0x80
|
||||||
|
#define AR933X_DDR_REG_FLUSH_USB 0x84
|
||||||
|
#define AR933X_DDR_REG_FLUSH_WMAC 0x88
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PLL block
|
* PLL block
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user