diff options
author | John Crispin <john@openwrt.org> | 2014-09-12 06:53:21 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-09-12 06:53:21 +0000 |
commit | fb4196ec2af752f6660ee2e813844357c1150552 (patch) | |
tree | a6d19f55e5b6367427e0d606d5551dcb9001e137 /target/linux/atheros/patches-3.14/105-ar2315_pci.patch | |
parent | 94efeaa51f4e4f00160559c53ca6f601f2864560 (diff) | |
download | upstream-fb4196ec2af752f6660ee2e813844357c1150552.tar.gz upstream-fb4196ec2af752f6660ee2e813844357c1150552.tar.bz2 upstream-fb4196ec2af752f6660ee2e813844357c1150552.zip |
atheros: ar2315-pci: update DMA offset macroses
Remove duplicated macroses, which define DMA offset (SDRAM baseaddress).
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 42504
Diffstat (limited to 'target/linux/atheros/patches-3.14/105-ar2315_pci.patch')
-rw-r--r-- | target/linux/atheros/patches-3.14/105-ar2315_pci.patch | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/target/linux/atheros/patches-3.14/105-ar2315_pci.patch b/target/linux/atheros/patches-3.14/105-ar2315_pci.patch index 1460299a75..5c437dc2c5 100644 --- a/target/linux/atheros/patches-3.14/105-ar2315_pci.patch +++ b/target/linux/atheros/patches-3.14/105-ar2315_pci.patch @@ -7,7 +7,7 @@ +obj-$(CONFIG_ATHEROS_AR2315_PCI) += pci.o --- /dev/null +++ b/arch/mips/ar231x/pci.c -@@ -0,0 +1,337 @@ +@@ -0,0 +1,340 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License @@ -198,9 +198,12 @@ + return -ENODEV; + + /* Program MBARs */ -+ ar2315_pci_local_cfg_wr(devfn, PCI_BASE_ADDRESS_0, HOST_PCI_MBAR0); -+ ar2315_pci_local_cfg_wr(devfn, PCI_BASE_ADDRESS_1, HOST_PCI_MBAR1); -+ ar2315_pci_local_cfg_wr(devfn, PCI_BASE_ADDRESS_2, HOST_PCI_MBAR2); ++ ar2315_pci_local_cfg_wr(devfn, PCI_BASE_ADDRESS_0, ++ AR2315_PCI_HOST_MBAR0); ++ ar2315_pci_local_cfg_wr(devfn, PCI_BASE_ADDRESS_1, ++ AR2315_PCI_HOST_MBAR1); ++ ar2315_pci_local_cfg_wr(devfn, PCI_BASE_ADDRESS_2, ++ AR2315_PCI_HOST_MBAR2); + + /* Run */ + ar2315_pci_local_cfg_wr(devfn, PCI_COMMAND, PCI_COMMAND_MEMORY | |