diff options
author | John Crispin <john@phrozen.org> | 2018-06-01 21:03:05 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-06-01 21:03:27 +0200 |
commit | a973a0a38b8bcac44dfe2369bc8c5a773d786e3b (patch) | |
tree | af3f40dd323e1c73ba37ba1f359580f64a184475 /target | |
parent | 0bfb41a55a7ffae7807d803e5b6218131633f909 (diff) | |
download | upstream-a973a0a38b8bcac44dfe2369bc8c5a773d786e3b.tar.gz upstream-a973a0a38b8bcac44dfe2369bc8c5a773d786e3b.tar.bz2 upstream-a973a0a38b8bcac44dfe2369bc8c5a773d786e3b.zip |
Revert "ramips: remove unnecessary resource details."
This reverts commit edea934799911c54ffa7024ef9a650f9dfc8c695.
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c b/target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c index a98752b762..2d4cc65ccf 100644 --- a/target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c +++ b/target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c @@ -307,13 +307,26 @@ struct pci_ops mt7621_pci_ops= { .write = pci_config_write, }; -static struct resource mt7621_res_pci_mem1; -static struct resource mt7621_res_pci_io1; +static struct resource mt7621_res_pci_mem1 = { + .name = "PCI MEM1", + .start = RALINK_PCI_MM_MAP_BASE, + .end = (u32)((RALINK_PCI_MM_MAP_BASE + (unsigned char *)0x0fffffff)), + .flags = IORESOURCE_MEM, +}; +static struct resource mt7621_res_pci_io1 = { + .name = "PCI I/O1", + .start = RALINK_PCI_IO_MAP_BASE, + .end = (u32)((RALINK_PCI_IO_MAP_BASE + (unsigned char *)0x0ffff)), + .flags = IORESOURCE_IO, +}; static struct pci_controller mt7621_controller = { .pci_ops = &mt7621_pci_ops, .mem_resource = &mt7621_res_pci_mem1, .io_resource = &mt7621_res_pci_io1, + .mem_offset = 0x00000000UL, + .io_offset = 0x00000000UL, + .io_map_base = 0xa0000000, }; static void |