Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146675
b: refs/heads/master
c: 951a681
h: refs/heads/master
i:
  146673: 11e8e72
  146671: eb0674a
v: v3
  • Loading branch information
Paul Mundt committed Apr 20, 2009
1 parent 87e8c4f commit d159885
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37c8ac361efdbae969eff1a603bc39412d3e873f
refs/heads/master: 951a681bda844491de8699b3bdc6c3899cbd4c9f
5 changes: 1 addition & 4 deletions trunk/arch/sh/drivers/pci/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ config SH_PCIDMA_NONCOHERENT

# Temporary config option for transitioning off of PCI_AUTO
config PCI_NEW
bool
def_bool y
depends on PCI
default y if CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7780 || \
CPU_SUBTYPE_SH7785 || CPU_SH5 || \
CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R

# This is also board-specific
config PCI_AUTO
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/drivers/pci/fixups-dreamcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

static void __init gapspci_fixup_resources(struct pci_dev *dev)
{
struct pci_channel *p = board_pci_channels;
struct pci_channel *p = dev->sysdata;

printk(KERN_NOTICE "PCI: Fixing up device %s\n", pci_name(dev));

Expand Down
27 changes: 12 additions & 15 deletions trunk/arch/sh/drivers/pci/pci-dreamcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <linux/irq.h>
#include <linux/pci.h>
#include <linux/module.h>

#include <asm/io.h>
#include <asm/irq.h>
#include <mach/pci.h>
Expand All @@ -40,11 +39,19 @@ static struct resource gapspci_mem_resource = {
.flags = IORESOURCE_MEM,
};

static struct pci_channel dreamcast_pci_controller = {
.pci_ops = &gapspci_pci_ops,
.io_resource = &gapspci_io_resource,
.io_offset = 0x00000000,
.mem_resource = &gapspci_mem_resource,
.mem_offset = 0x00000000,
};

/*
* gapspci init
*/

static int __init gapspci_init(struct pci_channel *chan)
static int __init gapspci_init(void)
{
char idbuf[16];
int i;
Expand Down Expand Up @@ -88,18 +95,8 @@ static int __init gapspci_init(struct pci_channel *chan)
outl(0x00002001, GAPSPCI_BBA_CONFIG+0x10);
outl(0x01000000, GAPSPCI_BBA_CONFIG+0x14);

register_pci_controller(&dreamcast_pci_controller);

return 0;
}

struct pci_channel board_pci_channels[] = {
{
.init = gapspci_init,
.pci_ops = &gapspci_pci_ops,
.io_resource = &gapspci_io_resource,
.mem_resource = &gapspci_mem_resource,
.first_devfn = 0,
.last_devfn = 1,
}, {
.init = NULL,
}
};
arch_initcall(gapspci_init);

0 comments on commit d159885

Please sign in to comment.