diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 08:05:19 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 08:05:19 +0200 |
commit | 4e7b7fdb129995640f144b7de114e109c6b46a2a (patch) | |
tree | 9f3b7bc00884fa35c23a737bc70c8271384b6a89 /arch/sh/drivers/pci/pci-sh7780.h | |
parent | sh: pci: Set class/sub-class code correctly for SH7780 PCIC. (diff) | |
download | linux-4e7b7fdb129995640f144b7de114e109c6b46a2a.tar.xz linux-4e7b7fdb129995640f144b7de114e109c6b46a2a.zip |
sh: pci: Rework SH7780 host controller detection.
This reworks how the host controller is probed, and makes it a bit more
verbose in the event a new type of controller is detected. Additionally,
we also log the revision information.
This now uses the proper access sizes for the vendor/device registers,
rather than relying on a larger access that encapsulated both of them.
Not all devices support 32-bit read cycles for these registers.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/pci-sh7780.h')
-rw-r--r-- | arch/sh/drivers/pci/pci-sh7780.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sh/drivers/pci/pci-sh7780.h b/arch/sh/drivers/pci/pci-sh7780.h index fffcf1dcfedf..213f1d8c9ca5 100644 --- a/arch/sh/drivers/pci/pci-sh7780.h +++ b/arch/sh/drivers/pci/pci-sh7780.h @@ -20,9 +20,8 @@ #define SH7785_DEVICE_ID 0x0007 /* SH7780 Control Registers */ -#define SH7780_PCI_VCR0 0xFE000000 -#define SH7780_PCI_VCR1 0xFE000004 -#define SH7780_PCI_VCR2 0xFE000008 +#define PCIECR 0xFE000008 +#define PCIECR_ENBL 0x01 /* SH7780 Specific Values */ #define SH7780_PCI_CONFIG_BASE 0xFD000000 /* Config space base addr */ |