2006-09-27 14:59:17 +08:00
|
|
|
/*
|
|
|
|
* arch/sh/drivers/pci/fixups-r7780rp.c
|
|
|
|
*
|
|
|
|
* Highlander R7780RP-1 PCI fixups
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 Lineo uSolutions, Inc.
|
2006-09-27 15:43:28 +08:00
|
|
|
* Copyright (C) 2004 - 2006 Paul Mundt
|
2006-09-27 14:59:17 +08:00
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
|
|
|
*/
|
2006-09-27 15:43:28 +08:00
|
|
|
#include <linux/pci.h>
|
2009-04-17 19:11:44 +08:00
|
|
|
#include <linux/io.h>
|
2006-09-27 15:43:28 +08:00
|
|
|
#include "pci-sh4.h"
|
2006-09-27 14:59:17 +08:00
|
|
|
|
2009-04-17 19:11:44 +08:00
|
|
|
static char irq_tab[] __initdata = {
|
|
|
|
65, 66, 67, 68,
|
|
|
|
};
|
|
|
|
|
|
|
|
int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin)
|
|
|
|
{
|
|
|
|
return irq_tab[slot];
|
|
|
|
}
|
2009-04-17 19:37:16 +08:00
|
|
|
|
2009-03-11 14:41:51 +08:00
|
|
|
int pci_fixup_pcic(struct pci_channel *chan)
|
2006-09-27 14:59:17 +08:00
|
|
|
{
|
2009-03-11 14:41:51 +08:00
|
|
|
pci_write_reg(chan, 0x000043ff, SH4_PCIINTM);
|
|
|
|
pci_write_reg(chan, 0x00000000, SH7780_PCIIBAR);
|
|
|
|
pci_write_reg(chan, 0x08000000, SH7780_PCICSCR0);
|
|
|
|
pci_write_reg(chan, 0x0000001b, SH7780_PCICSAR0);
|
|
|
|
pci_write_reg(chan, 0xfd000000, SH7780_PCICSCR1);
|
|
|
|
pci_write_reg(chan, 0x0000000f, SH7780_PCICSAR1);
|
2006-09-27 14:59:17 +08:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|