Commit dd99d966 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Ralf Baechle

[MIPS] Alchemy: fix PCI resource conflict

... by getting the PCI resources back into the 32-bit range -- there's no
need therefore for CONFIG_RESOURCES_64BIT either. This makes Alchemy PCI
work again while currently the kernel skips the bus scan.
Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 18ca38d2
...@@ -7,7 +7,6 @@ config MIPS_MTX1 ...@@ -7,7 +7,6 @@ config MIPS_MTX1
bool "4G Systems MTX-1 board" bool "4G Systems MTX-1 board"
select DMA_NONCOHERENT select DMA_NONCOHERENT
select HW_HAS_PCI select HW_HAS_PCI
select RESOURCES_64BIT if PCI
select SOC_AU1500 select SOC_AU1500
select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_SUPPORTS_LITTLE_ENDIAN
...@@ -22,7 +21,6 @@ config MIPS_DB1000 ...@@ -22,7 +21,6 @@ config MIPS_DB1000
select SOC_AU1000 select SOC_AU1000
select DMA_NONCOHERENT select DMA_NONCOHERENT
select HW_HAS_PCI select HW_HAS_PCI
select RESOURCES_64BIT if PCI
select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_SUPPORTS_LITTLE_ENDIAN
config MIPS_DB1100 config MIPS_DB1100
...@@ -44,7 +42,6 @@ config MIPS_DB1500 ...@@ -44,7 +42,6 @@ config MIPS_DB1500
select DMA_NONCOHERENT select DMA_NONCOHERENT
select HW_HAS_PCI select HW_HAS_PCI
select MIPS_DISABLE_OBSOLETE_IDE select MIPS_DISABLE_OBSOLETE_IDE
select RESOURCES_64BIT if PCI
select SYS_SUPPORTS_BIG_ENDIAN select SYS_SUPPORTS_BIG_ENDIAN
select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_SUPPORTS_LITTLE_ENDIAN
...@@ -54,7 +51,6 @@ config MIPS_DB1550 ...@@ -54,7 +51,6 @@ config MIPS_DB1550
select HW_HAS_PCI select HW_HAS_PCI
select DMA_NONCOHERENT select DMA_NONCOHERENT
select MIPS_DISABLE_OBSOLETE_IDE select MIPS_DISABLE_OBSOLETE_IDE
select RESOURCES_64BIT if PCI
select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_SUPPORTS_LITTLE_ENDIAN
config MIPS_MIRAGE config MIPS_MIRAGE
...@@ -68,7 +64,6 @@ config MIPS_PB1000 ...@@ -68,7 +64,6 @@ config MIPS_PB1000
select SOC_AU1000 select SOC_AU1000
select DMA_NONCOHERENT select DMA_NONCOHERENT
select HW_HAS_PCI select HW_HAS_PCI
select RESOURCES_64BIT if PCI
select SWAP_IO_SPACE select SWAP_IO_SPACE
select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_SUPPORTS_LITTLE_ENDIAN
...@@ -77,7 +72,6 @@ config MIPS_PB1100 ...@@ -77,7 +72,6 @@ config MIPS_PB1100
select SOC_AU1100 select SOC_AU1100
select DMA_NONCOHERENT select DMA_NONCOHERENT
select HW_HAS_PCI select HW_HAS_PCI
select RESOURCES_64BIT if PCI
select SWAP_IO_SPACE select SWAP_IO_SPACE
select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_SUPPORTS_LITTLE_ENDIAN
...@@ -86,7 +80,6 @@ config MIPS_PB1200 ...@@ -86,7 +80,6 @@ config MIPS_PB1200
select SOC_AU1200 select SOC_AU1200
select DMA_NONCOHERENT select DMA_NONCOHERENT
select MIPS_DISABLE_OBSOLETE_IDE select MIPS_DISABLE_OBSOLETE_IDE
select RESOURCES_64BIT if PCI
select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_SUPPORTS_LITTLE_ENDIAN
config MIPS_PB1500 config MIPS_PB1500
...@@ -94,7 +87,6 @@ config MIPS_PB1500 ...@@ -94,7 +87,6 @@ config MIPS_PB1500
select SOC_AU1500 select SOC_AU1500
select DMA_NONCOHERENT select DMA_NONCOHERENT
select HW_HAS_PCI select HW_HAS_PCI
select RESOURCES_64BIT if PCI
select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_SUPPORTS_LITTLE_ENDIAN
config MIPS_PB1550 config MIPS_PB1550
...@@ -103,7 +95,6 @@ config MIPS_PB1550 ...@@ -103,7 +95,6 @@ config MIPS_PB1550
select DMA_NONCOHERENT select DMA_NONCOHERENT
select HW_HAS_PCI select HW_HAS_PCI
select MIPS_DISABLE_OBSOLETE_IDE select MIPS_DISABLE_OBSOLETE_IDE
select RESOURCES_64BIT if PCI
select SYS_SUPPORTS_LITTLE_ENDIAN select SYS_SUPPORTS_LITTLE_ENDIAN
config MIPS_XXS1500 config MIPS_XXS1500
......
...@@ -39,15 +39,15 @@ ...@@ -39,15 +39,15 @@
/* TBD */ /* TBD */
static struct resource pci_io_resource = { static struct resource pci_io_resource = {
.start = (resource_size_t)PCI_IO_START, .start = PCI_IO_START,
.end = (resource_size_t)PCI_IO_END, .end = PCI_IO_END,
.name = "PCI IO space", .name = "PCI IO space",
.flags = IORESOURCE_IO .flags = IORESOURCE_IO
}; };
static struct resource pci_mem_resource = { static struct resource pci_mem_resource = {
.start = (resource_size_t)PCI_MEM_START, .start = PCI_MEM_START,
.end = (resource_size_t)PCI_MEM_END, .end = PCI_MEM_END,
.name = "PCI memory space", .name = "PCI memory space",
.flags = IORESOURCE_MEM .flags = IORESOURCE_MEM
}; };
......
...@@ -1680,10 +1680,11 @@ enum soc_au1200_ints { ...@@ -1680,10 +1680,11 @@ enum soc_au1200_ints {
#define Au1500_PCI_MEM_START 0x440000000ULL #define Au1500_PCI_MEM_START 0x440000000ULL
#define Au1500_PCI_MEM_END 0x44FFFFFFFULL #define Au1500_PCI_MEM_END 0x44FFFFFFFULL
#define PCI_IO_START (Au1500_PCI_IO_START + 0x1000) #define PCI_IO_START 0x00001000
#define PCI_IO_END (Au1500_PCI_IO_END) #define PCI_IO_END 0x000FFFFF
#define PCI_MEM_START (Au1500_PCI_MEM_START) #define PCI_MEM_START 0x40000000
#define PCI_MEM_END (Au1500_PCI_MEM_END) #define PCI_MEM_END 0x4FFFFFFF
#define PCI_FIRST_DEVFN (0<<3) #define PCI_FIRST_DEVFN (0<<3)
#define PCI_LAST_DEVFN (19<<3) #define PCI_LAST_DEVFN (19<<3)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment