mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Anoop P.A" <anoop.pa@gmail.com>
To: ralf@linux-mips.org, linux-mips@linux-mips.org,
	linux-kernel@vger.kernel.org
Cc: Anoop P A <anoop.pa@gmail.com>
Subject: [PATCH] MSP82XX pci support. Add pci fixup entries for MSP82XX Acadia board.
Date: Tue, 22 Feb 2011 20:51:28 +0530	[thread overview]
Message-ID: <1298388088-11338-1-git-send-email-anoop.pa@gmail.com> (raw)

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


                 reply	other threads:[~2011-02-22 14:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1298388088-11338-1-git-send-email-anoop.pa@gmail.com \
    --to=anoop.pa@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®