Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/arch/sh/drivers/pci/ops-sh03.c |
| 3 | * |
| 4 | * PCI initialization for the Interface CTP/PCI-SH03 board |
| 5 | */ |
| 6 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | #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 | */ |
| 19 | int __init pcibios_init_platform(void) |
| 20 | { |
| 21 | return 1; |
| 22 | } |
| 23 | |
| 24 | static struct resource sh7751_io_resource = { |
| 25 | .name = "SH03 IO", |
| 26 | .start = SH7751_PCI_IO_BASE, |
| 27 | .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1, |
| 28 | .flags = IORESOURCE_IO |
| 29 | }; |
| 30 | |
| 31 | static struct resource sh7751_mem_resource = { |
| 32 | .name = "SH03 mem", |
| 33 | .start = SH7751_PCI_MEMORY_BASE, |
| 34 | .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1, |
| 35 | .flags = IORESOURCE_MEM |
| 36 | }; |
| 37 | |
Paul Mundt | 711fa80 | 2006-10-03 13:14:04 +0900 | [diff] [blame^] | 38 | extern struct pci_ops sh4_pci_ops; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | |
| 40 | struct pci_channel board_pci_channels[] = { |
Paul Mundt | 711fa80 | 2006-10-03 13:14:04 +0900 | [diff] [blame^] | 41 | { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | { NULL, NULL, NULL, 0, 0 }, |
| 43 | }; |
| 44 | |