diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-02-19 07:35:04 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-16 03:00:13 -0400 |
commit | e4c6a3604e07185046e2ce4be82a201f4447d788 (patch) | |
tree | 8abb5616899458a0ae197bdac3e36b7360869f25 /arch/sh/drivers/pci/pci-sh7751.c | |
parent | b6706ef10f75921733d7275fd45d268f2f6254c8 (diff) |
sh: add reg_base member to pci_channel
Store the base address of the pci host controller registers in struct
pci_channel and use the address in pci_read_reg() and pci_write_reg().
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/pci-sh7751.c')
-rw-r--r-- | arch/sh/drivers/pci/pci-sh7751.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/drivers/pci/pci-sh7751.c b/arch/sh/drivers/pci/pci-sh7751.c index 447234c69ab1..201266b020f3 100644 --- a/arch/sh/drivers/pci/pci-sh7751.c +++ b/arch/sh/drivers/pci/pci-sh7751.c | |||
@@ -39,6 +39,8 @@ int __init sh7751_pci_init(struct pci_channel *chan) | |||
39 | 39 | ||
40 | pr_debug("PCI: Starting intialization.\n"); | 40 | pr_debug("PCI: Starting intialization.\n"); |
41 | 41 | ||
42 | chan->reg_base = 0xfe200000; | ||
43 | |||
42 | /* check for SH7751/SH7751R hardware */ | 44 | /* check for SH7751/SH7751R hardware */ |
43 | id = pci_read_reg(chan, SH7751_PCICONF0); | 45 | id = pci_read_reg(chan, SH7751_PCICONF0); |
44 | if (id != ((SH7751_DEVICE_ID << 16) | SH7751_VENDOR_ID) && | 46 | if (id != ((SH7751_DEVICE_ID << 16) | SH7751_VENDOR_ID) && |