1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 04:33:21 +02:00
* fixes old ifxmips in header file
* pass default ebu value to gpio driver


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25366 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
blogic 2011-02-04 22:48:53 +00:00
parent 7f398df47f
commit 97d0bd90d2
2 changed files with 11 additions and 3 deletions

View File

@ -146,6 +146,6 @@
+ int irq[16]; + int irq[16];
+}; +};
+ +
+extern int (*ifxmips_pci_plat_dev_init)(struct pci_dev *dev); +extern int (*lqpci_plat_dev_init)(struct pci_dev *dev);
+ +
+#endif +#endif

View File

@ -615,7 +615,7 @@
+} +}
--- /dev/null --- /dev/null
+++ b/arch/mips/lantiq/xway/devices.c +++ b/arch/mips/lantiq/xway/devices.c
@@ -0,0 +1,305 @@ @@ -0,0 +1,313 @@
+/* +/*
+ * This program is free software; you can redistribute it and/or modify it + * 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 + * under the terms of the GNU General Public License version 2 as published
@ -787,10 +787,18 @@
+ .flags = IORESOURCE_MEM, + .flags = IORESOURCE_MEM,
+}; +};
+ +
+static struct platform_device lq_ebu =
+{
+ .name = "lq_ebu",
+ .resource = &lq_ebu_resource,
+ .num_resources = 1,
+};
+
+void __init +void __init
+lq_register_gpio_ebu(unsigned int value) +lq_register_gpio_ebu(unsigned int value)
+{ +{
+ platform_device_register_simple("lq_ebu", 0, &lq_ebu_resource, 1); + lq_ebu.dev.platform_data = (void*) value;
+ platform_device_register(&lq_ebu);
+} +}
+ +
+/* ethernet */ +/* ethernet */