diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 20:11:44 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 20:11:44 +0900 |
commit | a6d377b6969235a3b5a6e87bdcef387d0976b41c (patch) | |
tree | 1c84b8182c8ef468c8b874361f4ae33aeafe50e7 /arch/sh/drivers/pci/ops-sdk7780.c | |
parent | 4c7a47de897e89c25a40e228ac5319cbac7257fe (diff) | |
download | talos-obmc-linux-a6d377b6969235a3b5a6e87bdcef387d0976b41c.tar.gz talos-obmc-linux-a6d377b6969235a3b5a6e87bdcef387d0976b41c.zip |
sh: pci: Consolidate SH7780 PCIC IRQ routing.
Now that the platform code is a bit leaner, we can start consolidating
the various IRQ routing implementations. There are effectively only 2
variants, and the others can use those directly.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/ops-sdk7780.c')
-rw-r--r-- | arch/sh/drivers/pci/ops-sdk7780.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/arch/sh/drivers/pci/ops-sdk7780.c b/arch/sh/drivers/pci/ops-sdk7780.c deleted file mode 100644 index 1d9a91bcfb7d..000000000000 --- a/arch/sh/drivers/pci/ops-sdk7780.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * linux/arch/sh/drivers/pci/ops-sdk7780.c - * - * Copyright (C) 2006 Nobuhiro Iwamatsu - * - * PCI initialization for the SDK7780SE03 - * - * May be copied or modified under the terms of the GNU General Public - * License. See linux/COPYING for more information. - */ -#include <linux/kernel.h> -#include <linux/types.h> -#include <linux/init.h> -#include <linux/delay.h> -#include <linux/pci.h> -#include <mach/sdk7780.h> -#include <asm/io.h> -#include "pci-sh4.h" - -/* IDSEL [16][17][18][19][20][21][22][23][24][25][26][27][28][29][30][31] */ -static char sdk7780_irq_tab[4][16] __initdata = { - /* INTA */ - { 65, 68, 67, 68, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, - /* INTB */ - { 66, 65, -1, 65, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, - /* INTC */ - { 67, 66, -1, 66, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, - /* INTD */ - { 68, 67, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, -}; - -int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) -{ - return sdk7780_irq_tab[pin-1][slot]; -} |