blob: e1703ff5a4d237339264e9e4c699dcb8dc4c2073 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/arch/sh/drivers/pci/ops-sh03.c
3 *
4 * PCI initialization for the Interface CTP/PCI-SH03 board
5 */
6
Linus Torvalds1da177e2005-04-16 15:20:36 -07007#include <linux/kernel.h>
8#include <linux/types.h>
9#include <linux/init.h>
10#include <linux/delay.h>
11#include <linux/pci.h>
12#include <asm/io.h>
13#include "pci-sh7751.h"
14
15/*
16 * Description: This function sets up and initializes the pcic, sets
17 * up the BARS, maps the DRAM into the address space etc, etc.
18 */
19int __init pcibios_init_platform(void)
20{
Paul Mundt43eeb0f2008-12-17 12:54:09 +090021 __set_io_port_base(SH7751_PCI_IO_BASE);
22 return 1;
Linus Torvalds1da177e2005-04-16 15:20:36 -070023}
24
25static struct resource sh7751_io_resource = {
26 .name = "SH03 IO",
27 .start = SH7751_PCI_IO_BASE,
28 .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1,
29 .flags = IORESOURCE_IO
30};
31
32static struct resource sh7751_mem_resource = {
33 .name = "SH03 mem",
34 .start = SH7751_PCI_MEMORY_BASE,
35 .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1,
36 .flags = IORESOURCE_MEM
37};
38
Paul Mundt711fa802006-10-03 13:14:04 +090039extern struct pci_ops sh4_pci_ops;
Linus Torvalds1da177e2005-04-16 15:20:36 -070040
41struct pci_channel board_pci_channels[] = {
Paul Mundt711fa802006-10-03 13:14:04 +090042 { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff },
Linus Torvalds1da177e2005-04-16 15:20:36 -070043 { NULL, NULL, NULL, 0, 0 },
44};
45