All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MSP82XX pci support. Add pci fixup entries for MSP82XX Acadia board.
@ 2011-02-22 15:21 Anoop P.A
  0 siblings, 0 replies; only message in thread
From: Anoop P.A @ 2011-02-22 15:21 UTC (permalink / raw)
  To: ralf, linux-mips, linux-kernel; +Cc: Anoop P A

From: Anoop P A <anoop.pa@gmail.com>


Signed-off-by: Anoop P A <anoop.pa@gmail.com>
---
 arch/mips/pci/fixup-pmcmsp.c |   42 +++++++++++++++++++++++++++++++++++++++---
 1 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/arch/mips/pci/fixup-pmcmsp.c b/arch/mips/pci/fixup-pmcmsp.c
index 65735b1..6569e70 100644
--- a/arch/mips/pci/fixup-pmcmsp.c
+++ b/arch/mips/pci/fixup-pmcmsp.c
@@ -122,6 +122,45 @@ static char irq_tab[][5] __initdata = {
 	{0,     0,      0,      0,      0 }     /* 21 (AD[31]): Unused */
 };
 
+#elif defined(CONFIG_PMC_MSP82XX_ACADIA)
+
+/* Acadia Board IRQ wiring to PCI slots */
+static char irq_tab[][5] __initdata = {
+	/*INTA	INTB	INTC	INTD */
+	{0,	0,	0,	0,	0 },	/*	(AD[0]): Unused */
+	{0,	0,	0,	0,	0 },	/*	(AD[1]): Unused */
+	{0,	0,	0,	0,	0 },	/*	(AD[2]): Unused */
+	{0,	0,	0,	0,	0 },	/*	(AD[3]): Unused */
+	{0,	0,	0,	0,	0 },	/*	(AD[4]): Unused */
+	{0,	0,	0,	0,	0 },	/*	(AD[5]): Unused */
+	{0,	0,	0,	0,	0 },	/*	(AD[6]): Unused */
+	{0,	0,	0,	0,	0 },	/*	(AD[7]): Unused */
+	{0,	0,	0,	0,	0 },	/*	(AD[8]): Unused */
+	{0,	0,	0,	0,	0 },	/*	(AD[9]): Unused */
+	{0,	0,	0,	0,	0 },	/*	0 (AD[10]): Unused */
+	{0,	0,	0,	0,	0 },	/*	1 (AD[11]): Unused */
+	{0,	0,	0,	0,	0 },	/*	2 (AD[12]): Unused */
+	{0,	0,	0,	0,	0 },	/*	3 (AD[13]): Unused */
+	{0,	0,	0,	0,	0 },	/*	4 (AD[14]): Unused */
+	{0,	0,	0,	0,	0 },	/*	5 (AD[15]): Unused */
+	{0,	0,	0,	0,	0 },	/*	6 (AD[16]): Unused */
+	{0,	0,	0,	0,	0 },	/*	7 (AD[17]): Unused */
+	{0,	0,	0,	0,	0 },	/*	8 (AD[18]): Unused */
+	{0,	0,	0,	0,	0 },	/*	9 (AD[19]): Unused */
+	{0,	0,	0,	0,	0 },	/*	10 (AD[20]): Unused */
+	{0,	0,	0,	0,	0 },	/*	11 (AD[21]): Unused */
+	{0,	0,	0,	0,	0 },	/*	12 (AD[22]): Unused */
+	{0,	0,	0,	0,	0 },	/*	13 (AD[23]): Unused */
+	{0,	0,	0,	0,	0 },	/*	14 (AD[24]): Unused */
+	{0,	0,	0,	0,	0 },	/*	15 (AD[25]): Unused */
+	{0,	0,	0,	0,	0 },	/*	16 (AD[26]): Unused */
+	{0,	0,	0,	0,	0 },	/*	17 (AD[27]): Unused */
+	{0,	IRQ5,	IRQ5,	0,	0 },	/*	18 (AD[28]): slot 0 */
+	{0,	0,	0,	0,	0 },	/*	19 (AD[29]): Unused */
+	{0,	IRQ4,	IRQ4,	0,	0 },	/*	20 (AD[30]): slot 1*/
+	{0,	0,	0,	0,	0 },	/*	21 (AD[31]): Unused */
+};
+
 #else
 
 /* Unknown board -- don't assign any IRQs */
@@ -204,9 +243,6 @@ int pcibios_plat_dev_init(struct pci_dev *dev)
  ****************************************************************************/
 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
 {
-#if !defined(CONFIG_PMC_MSP7120_GW) && !defined(CONFIG_PMC_MSP7120_EVAL)
-	printk(KERN_WARNING "PCI: unknown board, no PCI IRQs assigned.\n");
-#endif
 	printk(KERN_WARNING "PCI: irq_tab returned %d for slot=%d pin=%d\n",
 		irq_tab[slot][pin], slot, pin);
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-22 14:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-22 15:21 [PATCH] MSP82XX pci support. Add pci fixup entries for MSP82XX Acadia board Anoop P.A

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.