diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-02-21 06:51:33 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-02-21 06:51:33 -0500 |
commit | 8bfc245f9ad7bd4e461179e4e7852ef99b8b6144 (patch) | |
tree | 0ad091f645fbc8318634599d278966a53d3922ee /arch/mips/include/asm/mach-ath79 | |
parent | 612663a974065c3445e641d046769fe4c55a6438 (diff) | |
parent | 535237cecab2b078114be712c67e89a0db61965f (diff) |
Merge branch 'mips-next-3.9' of git://git.linux-mips.org/pub/scm/john/linux-john into mips-for-linux-next
Diffstat (limited to 'arch/mips/include/asm/mach-ath79')
-rw-r--r-- | arch/mips/include/asm/mach-ath79/ar71xx_regs.h | 124 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-ath79/ath79.h | 17 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-ath79/irq.h | 27 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-ath79/pci.h | 28 |
4 files changed, 148 insertions, 48 deletions
diff --git a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h index 8dec938af115..b86a1253a5bf 100644 --- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h +++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h | |||
@@ -41,11 +41,37 @@ | |||
41 | #define AR71XX_RESET_BASE (AR71XX_APB_BASE + 0x00060000) | 41 | #define AR71XX_RESET_BASE (AR71XX_APB_BASE + 0x00060000) |
42 | #define AR71XX_RESET_SIZE 0x100 | 42 | #define AR71XX_RESET_SIZE 0x100 |
43 | 43 | ||
44 | #define AR71XX_PCI_MEM_BASE 0x10000000 | ||
45 | #define AR71XX_PCI_MEM_SIZE 0x07000000 | ||
46 | |||
47 | #define AR71XX_PCI_WIN0_OFFS 0x10000000 | ||
48 | #define AR71XX_PCI_WIN1_OFFS 0x11000000 | ||
49 | #define AR71XX_PCI_WIN2_OFFS 0x12000000 | ||
50 | #define AR71XX_PCI_WIN3_OFFS 0x13000000 | ||
51 | #define AR71XX_PCI_WIN4_OFFS 0x14000000 | ||
52 | #define AR71XX_PCI_WIN5_OFFS 0x15000000 | ||
53 | #define AR71XX_PCI_WIN6_OFFS 0x16000000 | ||
54 | #define AR71XX_PCI_WIN7_OFFS 0x07000000 | ||
55 | |||
56 | #define AR71XX_PCI_CFG_BASE \ | ||
57 | (AR71XX_PCI_MEM_BASE + AR71XX_PCI_WIN7_OFFS + 0x10000) | ||
58 | #define AR71XX_PCI_CFG_SIZE 0x100 | ||
59 | |||
44 | #define AR7240_USB_CTRL_BASE (AR71XX_APB_BASE + 0x00030000) | 60 | #define AR7240_USB_CTRL_BASE (AR71XX_APB_BASE + 0x00030000) |
45 | #define AR7240_USB_CTRL_SIZE 0x100 | 61 | #define AR7240_USB_CTRL_SIZE 0x100 |
46 | #define AR7240_OHCI_BASE 0x1b000000 | 62 | #define AR7240_OHCI_BASE 0x1b000000 |
47 | #define AR7240_OHCI_SIZE 0x1000 | 63 | #define AR7240_OHCI_SIZE 0x1000 |
48 | 64 | ||
65 | #define AR724X_PCI_MEM_BASE 0x10000000 | ||
66 | #define AR724X_PCI_MEM_SIZE 0x04000000 | ||
67 | |||
68 | #define AR724X_PCI_CFG_BASE 0x14000000 | ||
69 | #define AR724X_PCI_CFG_SIZE 0x1000 | ||
70 | #define AR724X_PCI_CRP_BASE (AR71XX_APB_BASE + 0x000c0000) | ||
71 | #define AR724X_PCI_CRP_SIZE 0x1000 | ||
72 | #define AR724X_PCI_CTRL_BASE (AR71XX_APB_BASE + 0x000f0000) | ||
73 | #define AR724X_PCI_CTRL_SIZE 0x100 | ||
74 | |||
49 | #define AR724X_EHCI_BASE 0x1b000000 | 75 | #define AR724X_EHCI_BASE 0x1b000000 |
50 | #define AR724X_EHCI_SIZE 0x1000 | 76 | #define AR724X_EHCI_SIZE 0x1000 |
51 | 77 | ||
@@ -68,6 +94,25 @@ | |||
68 | #define AR934X_SRIF_BASE (AR71XX_APB_BASE + 0x00116000) | 94 | #define AR934X_SRIF_BASE (AR71XX_APB_BASE + 0x00116000) |
69 | #define AR934X_SRIF_SIZE 0x1000 | 95 | #define AR934X_SRIF_SIZE 0x1000 |
70 | 96 | ||
97 | #define QCA955X_PCI_MEM_BASE0 0x10000000 | ||
98 | #define QCA955X_PCI_MEM_BASE1 0x12000000 | ||
99 | #define QCA955X_PCI_MEM_SIZE 0x02000000 | ||
100 | #define QCA955X_PCI_CFG_BASE0 0x14000000 | ||
101 | #define QCA955X_PCI_CFG_BASE1 0x16000000 | ||
102 | #define QCA955X_PCI_CFG_SIZE 0x1000 | ||
103 | #define QCA955X_PCI_CRP_BASE0 (AR71XX_APB_BASE + 0x000c0000) | ||
104 | #define QCA955X_PCI_CRP_BASE1 (AR71XX_APB_BASE + 0x00250000) | ||
105 | #define QCA955X_PCI_CRP_SIZE 0x1000 | ||
106 | #define QCA955X_PCI_CTRL_BASE0 (AR71XX_APB_BASE + 0x000f0000) | ||
107 | #define QCA955X_PCI_CTRL_BASE1 (AR71XX_APB_BASE + 0x00280000) | ||
108 | #define QCA955X_PCI_CTRL_SIZE 0x100 | ||
109 | |||
110 | #define QCA955X_WMAC_BASE (AR71XX_APB_BASE + 0x00100000) | ||
111 | #define QCA955X_WMAC_SIZE 0x20000 | ||
112 | #define QCA955X_EHCI0_BASE 0x1b000000 | ||
113 | #define QCA955X_EHCI1_BASE 0x1b400000 | ||
114 | #define QCA955X_EHCI_SIZE 0x1000 | ||
115 | |||
71 | /* | 116 | /* |
72 | * DDR_CTRL block | 117 | * DDR_CTRL block |
73 | */ | 118 | */ |
@@ -199,6 +244,41 @@ | |||
199 | #define AR934X_PLL_CPU_DDR_CLK_CTRL_DDRCLK_FROM_DDRPLL BIT(21) | 244 | #define AR934X_PLL_CPU_DDR_CLK_CTRL_DDRCLK_FROM_DDRPLL BIT(21) |
200 | #define AR934X_PLL_CPU_DDR_CLK_CTRL_AHBCLK_FROM_DDRPLL BIT(24) | 245 | #define AR934X_PLL_CPU_DDR_CLK_CTRL_AHBCLK_FROM_DDRPLL BIT(24) |
201 | 246 | ||
247 | #define QCA955X_PLL_CPU_CONFIG_REG 0x00 | ||
248 | #define QCA955X_PLL_DDR_CONFIG_REG 0x04 | ||
249 | #define QCA955X_PLL_CLK_CTRL_REG 0x08 | ||
250 | |||
251 | #define QCA955X_PLL_CPU_CONFIG_NFRAC_SHIFT 0 | ||
252 | #define QCA955X_PLL_CPU_CONFIG_NFRAC_MASK 0x3f | ||
253 | #define QCA955X_PLL_CPU_CONFIG_NINT_SHIFT 6 | ||
254 | #define QCA955X_PLL_CPU_CONFIG_NINT_MASK 0x3f | ||
255 | #define QCA955X_PLL_CPU_CONFIG_REFDIV_SHIFT 12 | ||
256 | #define QCA955X_PLL_CPU_CONFIG_REFDIV_MASK 0x1f | ||
257 | #define QCA955X_PLL_CPU_CONFIG_OUTDIV_SHIFT 19 | ||
258 | #define QCA955X_PLL_CPU_CONFIG_OUTDIV_MASK 0x3 | ||
259 | |||
260 | #define QCA955X_PLL_DDR_CONFIG_NFRAC_SHIFT 0 | ||
261 | #define QCA955X_PLL_DDR_CONFIG_NFRAC_MASK 0x3ff | ||
262 | #define QCA955X_PLL_DDR_CONFIG_NINT_SHIFT 10 | ||
263 | #define QCA955X_PLL_DDR_CONFIG_NINT_MASK 0x3f | ||
264 | #define QCA955X_PLL_DDR_CONFIG_REFDIV_SHIFT 16 | ||
265 | #define QCA955X_PLL_DDR_CONFIG_REFDIV_MASK 0x1f | ||
266 | #define QCA955X_PLL_DDR_CONFIG_OUTDIV_SHIFT 23 | ||
267 | #define QCA955X_PLL_DDR_CONFIG_OUTDIV_MASK 0x7 | ||
268 | |||
269 | #define QCA955X_PLL_CLK_CTRL_CPU_PLL_BYPASS BIT(2) | ||
270 | #define QCA955X_PLL_CLK_CTRL_DDR_PLL_BYPASS BIT(3) | ||
271 | #define QCA955X_PLL_CLK_CTRL_AHB_PLL_BYPASS BIT(4) | ||
272 | #define QCA955X_PLL_CLK_CTRL_CPU_POST_DIV_SHIFT 5 | ||
273 | #define QCA955X_PLL_CLK_CTRL_CPU_POST_DIV_MASK 0x1f | ||
274 | #define QCA955X_PLL_CLK_CTRL_DDR_POST_DIV_SHIFT 10 | ||
275 | #define QCA955X_PLL_CLK_CTRL_DDR_POST_DIV_MASK 0x1f | ||
276 | #define QCA955X_PLL_CLK_CTRL_AHB_POST_DIV_SHIFT 15 | ||
277 | #define QCA955X_PLL_CLK_CTRL_AHB_POST_DIV_MASK 0x1f | ||
278 | #define QCA955X_PLL_CLK_CTRL_CPUCLK_FROM_CPUPLL BIT(20) | ||
279 | #define QCA955X_PLL_CLK_CTRL_DDRCLK_FROM_DDRPLL BIT(21) | ||
280 | #define QCA955X_PLL_CLK_CTRL_AHBCLK_FROM_DDRPLL BIT(24) | ||
281 | |||
202 | /* | 282 | /* |
203 | * USB_CONFIG block | 283 | * USB_CONFIG block |
204 | */ | 284 | */ |
@@ -238,6 +318,10 @@ | |||
238 | #define AR934X_RESET_REG_BOOTSTRAP 0xb0 | 318 | #define AR934X_RESET_REG_BOOTSTRAP 0xb0 |
239 | #define AR934X_RESET_REG_PCIE_WMAC_INT_STATUS 0xac | 319 | #define AR934X_RESET_REG_PCIE_WMAC_INT_STATUS 0xac |
240 | 320 | ||
321 | #define QCA955X_RESET_REG_RESET_MODULE 0x1c | ||
322 | #define QCA955X_RESET_REG_BOOTSTRAP 0xb0 | ||
323 | #define QCA955X_RESET_REG_EXT_INT_STATUS 0xac | ||
324 | |||
241 | #define MISC_INT_ETHSW BIT(12) | 325 | #define MISC_INT_ETHSW BIT(12) |
242 | #define MISC_INT_TIMER4 BIT(10) | 326 | #define MISC_INT_TIMER4 BIT(10) |
243 | #define MISC_INT_TIMER3 BIT(9) | 327 | #define MISC_INT_TIMER3 BIT(9) |
@@ -315,6 +399,8 @@ | |||
315 | #define AR934X_BOOTSTRAP_SDRAM_DISABLED BIT(1) | 399 | #define AR934X_BOOTSTRAP_SDRAM_DISABLED BIT(1) |
316 | #define AR934X_BOOTSTRAP_DDR1 BIT(0) | 400 | #define AR934X_BOOTSTRAP_DDR1 BIT(0) |
317 | 401 | ||
402 | #define QCA955X_BOOTSTRAP_REF_CLK_40 BIT(4) | ||
403 | |||
318 | #define AR934X_PCIE_WMAC_INT_WMAC_MISC BIT(0) | 404 | #define AR934X_PCIE_WMAC_INT_WMAC_MISC BIT(0) |
319 | #define AR934X_PCIE_WMAC_INT_WMAC_TX BIT(1) | 405 | #define AR934X_PCIE_WMAC_INT_WMAC_TX BIT(1) |
320 | #define AR934X_PCIE_WMAC_INT_WMAC_RXLP BIT(2) | 406 | #define AR934X_PCIE_WMAC_INT_WMAC_RXLP BIT(2) |
@@ -333,6 +419,37 @@ | |||
333 | AR934X_PCIE_WMAC_INT_PCIE_RC1 | AR934X_PCIE_WMAC_INT_PCIE_RC2 | \ | 419 | AR934X_PCIE_WMAC_INT_PCIE_RC1 | AR934X_PCIE_WMAC_INT_PCIE_RC2 | \ |
334 | AR934X_PCIE_WMAC_INT_PCIE_RC3) | 420 | AR934X_PCIE_WMAC_INT_PCIE_RC3) |
335 | 421 | ||
422 | #define QCA955X_EXT_INT_WMAC_MISC BIT(0) | ||
423 | #define QCA955X_EXT_INT_WMAC_TX BIT(1) | ||
424 | #define QCA955X_EXT_INT_WMAC_RXLP BIT(2) | ||
425 | #define QCA955X_EXT_INT_WMAC_RXHP BIT(3) | ||
426 | #define QCA955X_EXT_INT_PCIE_RC1 BIT(4) | ||
427 | #define QCA955X_EXT_INT_PCIE_RC1_INT0 BIT(5) | ||
428 | #define QCA955X_EXT_INT_PCIE_RC1_INT1 BIT(6) | ||
429 | #define QCA955X_EXT_INT_PCIE_RC1_INT2 BIT(7) | ||
430 | #define QCA955X_EXT_INT_PCIE_RC1_INT3 BIT(8) | ||
431 | #define QCA955X_EXT_INT_PCIE_RC2 BIT(12) | ||
432 | #define QCA955X_EXT_INT_PCIE_RC2_INT0 BIT(13) | ||
433 | #define QCA955X_EXT_INT_PCIE_RC2_INT1 BIT(14) | ||
434 | #define QCA955X_EXT_INT_PCIE_RC2_INT2 BIT(15) | ||
435 | #define QCA955X_EXT_INT_PCIE_RC2_INT3 BIT(16) | ||
436 | #define QCA955X_EXT_INT_USB1 BIT(24) | ||
437 | #define QCA955X_EXT_INT_USB2 BIT(28) | ||
438 | |||
439 | #define QCA955X_EXT_INT_WMAC_ALL \ | ||
440 | (QCA955X_EXT_INT_WMAC_MISC | QCA955X_EXT_INT_WMAC_TX | \ | ||
441 | QCA955X_EXT_INT_WMAC_RXLP | QCA955X_EXT_INT_WMAC_RXHP) | ||
442 | |||
443 | #define QCA955X_EXT_INT_PCIE_RC1_ALL \ | ||
444 | (QCA955X_EXT_INT_PCIE_RC1 | QCA955X_EXT_INT_PCIE_RC1_INT0 | \ | ||
445 | QCA955X_EXT_INT_PCIE_RC1_INT1 | QCA955X_EXT_INT_PCIE_RC1_INT2 | \ | ||
446 | QCA955X_EXT_INT_PCIE_RC1_INT3) | ||
447 | |||
448 | #define QCA955X_EXT_INT_PCIE_RC2_ALL \ | ||
449 | (QCA955X_EXT_INT_PCIE_RC2 | QCA955X_EXT_INT_PCIE_RC2_INT0 | \ | ||
450 | QCA955X_EXT_INT_PCIE_RC2_INT1 | QCA955X_EXT_INT_PCIE_RC2_INT2 | \ | ||
451 | QCA955X_EXT_INT_PCIE_RC2_INT3) | ||
452 | |||
336 | #define REV_ID_MAJOR_MASK 0xfff0 | 453 | #define REV_ID_MAJOR_MASK 0xfff0 |
337 | #define REV_ID_MAJOR_AR71XX 0x00a0 | 454 | #define REV_ID_MAJOR_AR71XX 0x00a0 |
338 | #define REV_ID_MAJOR_AR913X 0x00b0 | 455 | #define REV_ID_MAJOR_AR913X 0x00b0 |
@@ -344,6 +461,8 @@ | |||
344 | #define REV_ID_MAJOR_AR9341 0x0120 | 461 | #define REV_ID_MAJOR_AR9341 0x0120 |
345 | #define REV_ID_MAJOR_AR9342 0x1120 | 462 | #define REV_ID_MAJOR_AR9342 0x1120 |
346 | #define REV_ID_MAJOR_AR9344 0x2120 | 463 | #define REV_ID_MAJOR_AR9344 0x2120 |
464 | #define REV_ID_MAJOR_QCA9556 0x0130 | ||
465 | #define REV_ID_MAJOR_QCA9558 0x1130 | ||
347 | 466 | ||
348 | #define AR71XX_REV_ID_MINOR_MASK 0x3 | 467 | #define AR71XX_REV_ID_MINOR_MASK 0x3 |
349 | #define AR71XX_REV_ID_MINOR_AR7130 0x0 | 468 | #define AR71XX_REV_ID_MINOR_AR7130 0x0 |
@@ -364,6 +483,8 @@ | |||
364 | 483 | ||
365 | #define AR934X_REV_ID_REVISION_MASK 0xf | 484 | #define AR934X_REV_ID_REVISION_MASK 0xf |
366 | 485 | ||
486 | #define QCA955X_REV_ID_REVISION_MASK 0xf | ||
487 | |||
367 | /* | 488 | /* |
368 | * SPI block | 489 | * SPI block |
369 | */ | 490 | */ |
@@ -401,12 +522,15 @@ | |||
401 | #define AR71XX_GPIO_REG_INT_ENABLE 0x24 | 522 | #define AR71XX_GPIO_REG_INT_ENABLE 0x24 |
402 | #define AR71XX_GPIO_REG_FUNC 0x28 | 523 | #define AR71XX_GPIO_REG_FUNC 0x28 |
403 | 524 | ||
525 | #define AR934X_GPIO_REG_FUNC 0x6c | ||
526 | |||
404 | #define AR71XX_GPIO_COUNT 16 | 527 | #define AR71XX_GPIO_COUNT 16 |
405 | #define AR7240_GPIO_COUNT 18 | 528 | #define AR7240_GPIO_COUNT 18 |
406 | #define AR7241_GPIO_COUNT 20 | 529 | #define AR7241_GPIO_COUNT 20 |
407 | #define AR913X_GPIO_COUNT 22 | 530 | #define AR913X_GPIO_COUNT 22 |
408 | #define AR933X_GPIO_COUNT 30 | 531 | #define AR933X_GPIO_COUNT 30 |
409 | #define AR934X_GPIO_COUNT 23 | 532 | #define AR934X_GPIO_COUNT 23 |
533 | #define QCA955X_GPIO_COUNT 24 | ||
410 | 534 | ||
411 | /* | 535 | /* |
412 | * SRIF block | 536 | * SRIF block |
diff --git a/arch/mips/include/asm/mach-ath79/ath79.h b/arch/mips/include/asm/mach-ath79/ath79.h index 4f248c3d7b23..1557934aaca9 100644 --- a/arch/mips/include/asm/mach-ath79/ath79.h +++ b/arch/mips/include/asm/mach-ath79/ath79.h | |||
@@ -32,6 +32,8 @@ enum ath79_soc_type { | |||
32 | ATH79_SOC_AR9341, | 32 | ATH79_SOC_AR9341, |
33 | ATH79_SOC_AR9342, | 33 | ATH79_SOC_AR9342, |
34 | ATH79_SOC_AR9344, | 34 | ATH79_SOC_AR9344, |
35 | ATH79_SOC_QCA9556, | ||
36 | ATH79_SOC_QCA9558, | ||
35 | }; | 37 | }; |
36 | 38 | ||
37 | extern enum ath79_soc_type ath79_soc; | 39 | extern enum ath79_soc_type ath79_soc; |
@@ -98,6 +100,21 @@ static inline int soc_is_ar934x(void) | |||
98 | return soc_is_ar9341() || soc_is_ar9342() || soc_is_ar9344(); | 100 | return soc_is_ar9341() || soc_is_ar9342() || soc_is_ar9344(); |
99 | } | 101 | } |
100 | 102 | ||
103 | static inline int soc_is_qca9556(void) | ||
104 | { | ||
105 | return ath79_soc == ATH79_SOC_QCA9556; | ||
106 | } | ||
107 | |||
108 | static inline int soc_is_qca9558(void) | ||
109 | { | ||
110 | return ath79_soc == ATH79_SOC_QCA9558; | ||
111 | } | ||
112 | |||
113 | static inline int soc_is_qca955x(void) | ||
114 | { | ||
115 | return soc_is_qca9556() || soc_is_qca9558(); | ||
116 | } | ||
117 | |||
101 | extern void __iomem *ath79_ddr_base; | 118 | extern void __iomem *ath79_ddr_base; |
102 | extern void __iomem *ath79_pll_base; | 119 | extern void __iomem *ath79_pll_base; |
103 | extern void __iomem *ath79_reset_base; | 120 | extern void __iomem *ath79_reset_base; |
diff --git a/arch/mips/include/asm/mach-ath79/irq.h b/arch/mips/include/asm/mach-ath79/irq.h index 0968f69e2018..5c9ca76a7ebf 100644 --- a/arch/mips/include/asm/mach-ath79/irq.h +++ b/arch/mips/include/asm/mach-ath79/irq.h | |||
@@ -10,10 +10,13 @@ | |||
10 | #define __ASM_MACH_ATH79_IRQ_H | 10 | #define __ASM_MACH_ATH79_IRQ_H |
11 | 11 | ||
12 | #define MIPS_CPU_IRQ_BASE 0 | 12 | #define MIPS_CPU_IRQ_BASE 0 |
13 | #define NR_IRQS 48 | 13 | #define NR_IRQS 51 |
14 | |||
15 | #define ATH79_CPU_IRQ(_x) (MIPS_CPU_IRQ_BASE + (_x)) | ||
14 | 16 | ||
15 | #define ATH79_MISC_IRQ_BASE 8 | 17 | #define ATH79_MISC_IRQ_BASE 8 |
16 | #define ATH79_MISC_IRQ_COUNT 32 | 18 | #define ATH79_MISC_IRQ_COUNT 32 |
19 | #define ATH79_MISC_IRQ(_x) (ATH79_MISC_IRQ_BASE + (_x)) | ||
17 | 20 | ||
18 | #define ATH79_PCI_IRQ_BASE (ATH79_MISC_IRQ_BASE + ATH79_MISC_IRQ_COUNT) | 21 | #define ATH79_PCI_IRQ_BASE (ATH79_MISC_IRQ_BASE + ATH79_MISC_IRQ_COUNT) |
19 | #define ATH79_PCI_IRQ_COUNT 6 | 22 | #define ATH79_PCI_IRQ_COUNT 6 |
@@ -23,25 +26,9 @@ | |||
23 | #define ATH79_IP2_IRQ_COUNT 2 | 26 | #define ATH79_IP2_IRQ_COUNT 2 |
24 | #define ATH79_IP2_IRQ(_x) (ATH79_IP2_IRQ_BASE + (_x)) | 27 | #define ATH79_IP2_IRQ(_x) (ATH79_IP2_IRQ_BASE + (_x)) |
25 | 28 | ||
26 | #define ATH79_CPU_IRQ_IP2 (MIPS_CPU_IRQ_BASE + 2) | 29 | #define ATH79_IP3_IRQ_BASE (ATH79_IP2_IRQ_BASE + ATH79_IP2_IRQ_COUNT) |
27 | #define ATH79_CPU_IRQ_USB (MIPS_CPU_IRQ_BASE + 3) | 30 | #define ATH79_IP3_IRQ_COUNT 3 |
28 | #define ATH79_CPU_IRQ_GE0 (MIPS_CPU_IRQ_BASE + 4) | 31 | #define ATH79_IP3_IRQ(_x) (ATH79_IP3_IRQ_BASE + (_x)) |
29 | #define ATH79_CPU_IRQ_GE1 (MIPS_CPU_IRQ_BASE + 5) | ||
30 | #define ATH79_CPU_IRQ_MISC (MIPS_CPU_IRQ_BASE + 6) | ||
31 | #define ATH79_CPU_IRQ_TIMER (MIPS_CPU_IRQ_BASE + 7) | ||
32 | |||
33 | #define ATH79_MISC_IRQ_TIMER (ATH79_MISC_IRQ_BASE + 0) | ||
34 | #define ATH79_MISC_IRQ_ERROR (ATH79_MISC_IRQ_BASE + 1) | ||
35 | #define ATH79_MISC_IRQ_GPIO (ATH79_MISC_IRQ_BASE + 2) | ||
36 | #define ATH79_MISC_IRQ_UART (ATH79_MISC_IRQ_BASE + 3) | ||
37 | #define ATH79_MISC_IRQ_WDOG (ATH79_MISC_IRQ_BASE + 4) | ||
38 | #define ATH79_MISC_IRQ_PERFC (ATH79_MISC_IRQ_BASE + 5) | ||
39 | #define ATH79_MISC_IRQ_OHCI (ATH79_MISC_IRQ_BASE + 6) | ||
40 | #define ATH79_MISC_IRQ_DMA (ATH79_MISC_IRQ_BASE + 7) | ||
41 | #define ATH79_MISC_IRQ_TIMER2 (ATH79_MISC_IRQ_BASE + 8) | ||
42 | #define ATH79_MISC_IRQ_TIMER3 (ATH79_MISC_IRQ_BASE + 9) | ||
43 | #define ATH79_MISC_IRQ_TIMER4 (ATH79_MISC_IRQ_BASE + 10) | ||
44 | #define ATH79_MISC_IRQ_ETHSW (ATH79_MISC_IRQ_BASE + 12) | ||
45 | 32 | ||
46 | #include_next <irq.h> | 33 | #include_next <irq.h> |
47 | 34 | ||
diff --git a/arch/mips/include/asm/mach-ath79/pci.h b/arch/mips/include/asm/mach-ath79/pci.h deleted file mode 100644 index 7868f7fa028f..000000000000 --- a/arch/mips/include/asm/mach-ath79/pci.h +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | /* | ||
2 | * Atheros AR71XX/AR724X PCI support | ||
3 | * | ||
4 | * Copyright (C) 2011 René Bolldorf <xsecute@googlemail.com> | ||
5 | * Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org> | ||
6 | * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License version 2 as published | ||
10 | * by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifndef __ASM_MACH_ATH79_PCI_H | ||
14 | #define __ASM_MACH_ATH79_PCI_H | ||
15 | |||
16 | #if defined(CONFIG_PCI) && defined(CONFIG_SOC_AR71XX) | ||
17 | int ar71xx_pcibios_init(void); | ||
18 | #else | ||
19 | static inline int ar71xx_pcibios_init(void) { return 0; } | ||
20 | #endif | ||
21 | |||
22 | #if defined(CONFIG_PCI_AR724X) | ||
23 | int ar724x_pcibios_init(int irq); | ||
24 | #else | ||
25 | static inline int ar724x_pcibios_init(int irq) { return 0; } | ||
26 | #endif | ||
27 | |||
28 | #endif /* __ASM_MACH_ATH79_PCI_H */ | ||