summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches/101-header.patch
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-01-23 12:08:44 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-01-23 12:08:44 +0000
commit67251bb1a5eb25906240b3646561b488b3c22138 (patch)
tree91204788ccd065014cde7e8973cb04ddb32696a2 /target/linux/lantiq/patches/101-header.patch
parentc2b8621119738aac39db105734f81bb67e32ce07 (diff)
[lantiq]
* fix pci support for more than 1 device * fixes ioport mappings * adds support for arcor easybox 803/arv752DWP22 * gpio direction was not set properly during a gpio_request() * usb compile warning bugfix, cleanup, git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25072 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches/101-header.patch')
-rw-r--r--target/linux/lantiq/patches/101-header.patch29
1 files changed, 22 insertions, 7 deletions
diff --git a/target/linux/lantiq/patches/101-header.patch b/target/linux/lantiq/patches/101-header.patch
index 3d0caf2f1..28a44a742 100644
--- a/target/linux/lantiq/patches/101-header.patch
+++ b/target/linux/lantiq/patches/101-header.patch
@@ -97,7 +97,7 @@
+#endif
--- /dev/null
+++ b/arch/mips/include/asm/mach-lantiq/lantiq_platform.h
-@@ -0,0 +1,36 @@
+@@ -0,0 +1,51 @@
+/*
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published
@@ -122,15 +122,30 @@
+ int mii_mode;
+};
+
-+/* struct used to pass info to the pci core */
-+enum {
-+ PCI_CLOCK_INT = 0,
-+ PCI_CLOCK_EXT
-+};
++#define PCI_EXIN0 0x0001
++#define PCI_EXIN1 0x0002
++#define PCI_EXIN2 0x0004
++#define PCI_EXIN_SHIFT 0
++
++#define PCI_GNT1 0x0008
++#define PCI_GNT2 0x0010
++#define PCI_GNT3 0x0020
++#define PCI_GNT_SHIFT 3
++
++#define PCI_REQ1 0x0040
++#define PCI_REQ2 0x0080
++#define PCI_REQ3 0x0100
++#define PCI_REQ_SHIFT 6
++
++#define PCI_CLOCK_INT 0
++#define PCI_CLOCK_EXT 1
+
+struct lq_pci_data {
+ int clock;
-+ int req_mask;
++ int gpio;
++ int irq[16];
+};
+
++extern int (*ifxmips_pci_plat_dev_init)(struct pci_dev *dev);
++
+#endif