.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Ralink RT288x SoC PCI register definitions |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org> |
---|
6 | 7 | * |
---|
7 | 8 | * Parts of this file are based on Ralink's 2.6.21 BSP |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify it |
---|
10 | | - * under the terms of the GNU General Public License version 2 as published |
---|
11 | | - * by the Free Software Foundation. |
---|
12 | 9 | */ |
---|
13 | 10 | |
---|
14 | 11 | #include <linux/delay.h> |
---|
.. | .. |
---|
208 | 205 | { |
---|
209 | 206 | void __iomem *io_map_base; |
---|
210 | 207 | |
---|
211 | | - rt2880_pci_base = ioremap_nocache(RT2880_PCI_BASE, PAGE_SIZE); |
---|
| 208 | + rt2880_pci_base = ioremap(RT2880_PCI_BASE, PAGE_SIZE); |
---|
212 | 209 | |
---|
213 | 210 | io_map_base = ioremap(RT2880_PCI_IO_BASE, RT2880_PCI_IO_SIZE); |
---|
214 | 211 | rt2880_pci_controller.io_map_base = (unsigned long) io_map_base; |
---|
.. | .. |
---|
233 | 230 | rt2880_pci_write_u32(PCI_BASE_ADDRESS_0, 0x08000000); |
---|
234 | 231 | (void) rt2880_pci_read_u32(PCI_BASE_ADDRESS_0); |
---|
235 | 232 | |
---|
| 233 | + rt2880_pci_controller.of_node = pdev->dev.of_node; |
---|
| 234 | + |
---|
236 | 235 | register_pci_controller(&rt2880_pci_controller); |
---|
237 | 236 | return 0; |
---|
238 | 237 | } |
---|