[uboot-lantiq] add support for arv4518 and arv752DWP22 boards
[openwrt/svn-archive/archive.git] / target / linux / lantiq / patches / 900-pci_ath5k_hook.patch
1 --- /dev/null
2 +++ b/arch/mips/include/asm/mach-lantiq/pci.h
3 @@ -0,0 +1,14 @@
4 +/*
5 + * lantiq SoCs specific PCI definitions
6 + *
7 + * This program is free software; you can redistribute it and/or modify it
8 + * under the terms of the GNU General Public License version 2 as published
9 + * by the Free Software Foundation.
10 + */
11 +
12 +#ifndef __ASM_MACH_LANTIQ_PCI_H
13 +#define __ASM_MACH_LANTIQ_PCI_H
14 +
15 +extern int (*ifxmips_pci_plat_dev_init)(struct pci_dev *dev);
16 +
17 +#endif
18 --- a/arch/mips/pci/pci-lantiq.c
19 +++ b/arch/mips/pci/pci-lantiq.c
20 @@ -68,6 +68,8 @@
21
22 u32 lq_pci_mapped_cfg;
23
24 +int (*lqpci_plat_dev_init)(struct pci_dev *dev) = NULL;
25 +
26 /* Since the PCI REQ pins can be reused for other functionality, make it possible
27 to exclude those from interpretation by the PCI controller */
28 static int lq_pci_req_mask = 0xf;
29 @@ -126,6 +128,10 @@
30 printk ("WARNING: invalid interrupt pin %d\n", pin);
31 return 1;
32 }
33 +
34 + if (lqpci_plat_dev_init)
35 + return lqpci_plat_dev_init(dev);
36 +
37 return 0;
38 }
39
40