aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/drivers/pci/pci-sh7751.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-04-22 06:21:10 +0000
committerPaul Mundt <lethal@linux-sh.org>2010-04-26 16:02:25 +0900
commite3a4317e1d9970c56ba19d29393e4289809a1aa5 (patch)
tree708a6ced8554e0e275bc628a4e87af13f5a7130b /arch/sh/drivers/pci/pci-sh7751.c
parent43f5988c1853b1f6c4cd1fca1d4dccd7833d6a8e (diff)
sh: sh7751 pci controller io port fix
This patch updates the sh7751 pci code to handle io ports correctly. The code is based on the sh7788x implementation. Tested on a R2D-1 board with CONFIG_8139TOO_PIO=y. Signed-off-by: Magnus Damm <damm@opensource.se> 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sh/drivers/pci/pci-sh7751.c b/arch/sh/drivers/pci/pci-sh7751.c
index 17811e5d287..f98141b3b7d 100644
--- a/arch/sh/drivers/pci/pci-sh7751.c
+++ b/arch/sh/drivers/pci/pci-sh7751.c
@@ -17,6 +17,7 @@
#include <linux/io.h>
#include "pci-sh4.h"
#include <asm/addrspace.h>
+#include <asm/sizes.h>
static int __init __area_sdram_check(struct pci_channel *chan,
unsigned int area)
@@ -47,8 +48,8 @@ static int __init __area_sdram_check(struct pci_channel *chan,
static struct resource sh7751_pci_resources[] = {
{
.name = "SH7751_IO",
- .start = SH7751_PCI_IO_BASE,
- .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1,
+ .start = 0x1000,
+ .end = SZ_4M - 1,
.flags = IORESOURCE_IO
}, {
.name = "SH7751_mem",