2005-04-16 18:20:36 -04:00
|
|
|
/*
|
|
|
|
* linux/arch/sh/drivers/pci/ops-sh03.c
|
|
|
|
*
|
|
|
|
* PCI initialization for the Interface CTP/PCI-SH03 board
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/delay.h>
|
|
|
|
#include <linux/pci.h>
|
|
|
|
#include <asm/io.h>
|
|
|
|
#include "pci-sh7751.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Description: This function sets up and initializes the pcic, sets
|
|
|
|
* up the BARS, maps the DRAM into the address space etc, etc.
|
|
|
|
*/
|
|
|
|
int __init pcibios_init_platform(void)
|
|
|
|
{
|
2008-12-16 22:54:09 -05:00
|
|
|
__set_io_port_base(SH7751_PCI_IO_BASE);
|
|
|
|
return 1;
|
2005-04-16 18:20:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
static struct resource sh7751_io_resource = {
|
|
|
|
.name = "SH03 IO",
|
|
|
|
.start = SH7751_PCI_IO_BASE,
|
|
|
|
.end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1,
|
|
|
|
.flags = IORESOURCE_IO
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct resource sh7751_mem_resource = {
|
|
|
|
.name = "SH03 mem",
|
|
|
|
.start = SH7751_PCI_MEMORY_BASE,
|
|
|
|
.end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1,
|
|
|
|
.flags = IORESOURCE_MEM
|
|
|
|
};
|
|
|
|
|
2006-10-03 00:14:04 -04:00
|
|
|
extern struct pci_ops sh4_pci_ops;
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
struct pci_channel board_pci_channels[] = {
|
2006-10-03 00:14:04 -04:00
|
|
|
{ &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff },
|
2005-04-16 18:20:36 -04:00
|
|
|
{ NULL, NULL, NULL, 0, 0 },
|
|
|
|
};
|
|
|
|
|