blob: 43942998599b37792adcd5bc77ff6d20168d1ea6 [file] [log] [blame]
Thomas Gleixner1a59d1b82019-05-27 08:55:05 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 * fixup-tb0219.c, The TANBAC TB0219 specific PCI fixups.
4 *
Ralf Baechle70342282013-01-22 12:59:30 +01005 * Copyright (C) 2003 Megasolution Inc. <matsu@megasolution.jp>
Yoichi Yuasaada8e952009-07-03 00:39:38 +09006 * Copyright (C) 2004-2005 Yoichi Yuasa <yuasa@linux-mips.org>
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 */
8#include <linux/init.h>
9#include <linux/pci.h>
10
11#include <asm/vr41xx/tb0219.h>
12
Manuel Lauss8eba3652017-09-12 20:36:28 +020013int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
Linus Torvalds1da177e2005-04-16 15:20:36 -070014{
15 int irq = -1;
16
17 switch (slot) {
18 case 12:
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 irq = TB0219_PCI_SLOT1_IRQ;
20 break;
21 case 13:
Linus Torvalds1da177e2005-04-16 15:20:36 -070022 irq = TB0219_PCI_SLOT2_IRQ;
23 break;
24 case 14:
Linus Torvalds1da177e2005-04-16 15:20:36 -070025 irq = TB0219_PCI_SLOT3_IRQ;
26 break;
27 default:
28 break;
29 }
30
31 return irq;
32}
33
34/* Do platform specific device initialization at pci_enable_device() time */
35int pcibios_plat_dev_init(struct pci_dev *dev)
36{
37 return 0;
38}