summaryrefslogtreecommitdiff
path: root/target/linux/au1000/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-14 15:52:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-14 15:52:42 +0000
commit16defbb2bd9478f9e5384b9722f20a694e6bae41 (patch)
treef52e202c30c7fca103b196ece1223e18446e4dfc /target/linux/au1000/patches
parentb4644aedce6526b5d07b336187c8e6417c7dd75e (diff)
downloadmtk-20170518-16defbb2bd9478f9e5384b9722f20a694e6bae41.zip
mtk-20170518-16defbb2bd9478f9e5384b9722f20a694e6bae41.tar.gz
mtk-20170518-16defbb2bd9478f9e5384b9722f20a694e6bae41.tar.bz2
nuke obsolete kernel stuff
SVN-Revision: 14875
Diffstat (limited to 'target/linux/au1000/patches')
-rw-r--r--target/linux/au1000/patches/001-au1000_gpio_kconfig.patch19
-rw-r--r--target/linux/au1000/patches/002-sys_btn_gpio.patch54
-rw-r--r--target/linux/au1000/patches/005-au1000_eth_link_beat.patch23
-rw-r--r--target/linux/au1000/patches/012-mtx1_cmdline.patch11
-rw-r--r--target/linux/au1000/patches/013-openwrt_rootfs.patch11
-rw-r--r--target/linux/au1000/patches/014-au1000_eth_ioctl.patch15
-rw-r--r--target/linux/au1000/patches/015-pci-resource.patch22
-rw-r--r--target/linux/au1000/patches/016-net-irq.patch10
-rw-r--r--target/linux/au1000/patches/017-gpio-dir.patch20
9 files changed, 0 insertions, 185 deletions
diff --git a/target/linux/au1000/patches/001-au1000_gpio_kconfig.patch b/target/linux/au1000/patches/001-au1000_gpio_kconfig.patch
deleted file mode 100644
index b3aa063..0000000
--- a/target/linux/au1000/patches/001-au1000_gpio_kconfig.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-From 8dea23a2b6dae52267b3a969e715d3f0753acf47 Mon Sep 17 00:00:00 2001
-From: Florian Fainelli <florian.fainelli@telecomint.eu>
-Date: Wed, 10 Oct 2007 14:54:11 +0200
-Subject: [PATCH] [PATCH] Add missing generic GPIO support for au1000
-With the generic GPIO support for au1000, we do not
-select it in the kernel configuration.
-
-Signed-off-by: Florian Fainelli <florian.fainelli@telecomint.eu>
----
- arch/mips/au1000/Kconfig | 1 +
- 1 files changed, 1 insertions(+), 0 deletions(-)
-
---- a/arch/mips/au1000/Kconfig
-+++ b/arch/mips/au1000/Kconfig
-@@ -135,3 +135,4 @@ config SOC_AU1X00
- select SYS_SUPPORTS_32BIT_KERNEL
- select SYS_SUPPORTS_APM_EMULATION
- select SYS_SUPPORTS_KGDB
-+ select GENERIC_GPIO
diff --git a/target/linux/au1000/patches/002-sys_btn_gpio.patch b/target/linux/au1000/patches/002-sys_btn_gpio.patch
deleted file mode 100644
index e38b83f..0000000
--- a/target/linux/au1000/patches/002-sys_btn_gpio.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-This patch adds support for the GPIO connected system button on the MTX-1 boards. Default configuration is updated accordingly.
-
-Signed-off-by: Florian Fainelli <florian.fainelli@telecomint.eu>
----
---- a/arch/mips/au1000/mtx-1/platform.c
-+++ b/arch/mips/au1000/mtx-1/platform.c
-@@ -23,9 +23,32 @@
- #include <linux/types.h>
- #include <linux/platform_device.h>
- #include <linux/leds.h>
-+#include <linux/gpio_keys.h>
-+#include <linux/input.h>
-
- #include <asm/gpio.h>
-
-+static struct gpio_keys_button mtx1_gpio_button[] = {
-+ {
-+ .gpio = 207,
-+ .code = BTN_0,
-+ .desc = "System button",
-+ }
-+};
-+
-+static struct gpio_keys_platform_data mtx1_buttons_data = {
-+ .buttons = mtx1_gpio_button,
-+ .nbuttons = ARRAY_SIZE(mtx1_gpio_button),
-+};
-+
-+static struct platform_device mtx1_button = {
-+ .name = "gpio-keys",
-+ .id = -1,
-+ .dev = {
-+ .platform_data = &mtx1_buttons_data,
-+ }
-+};
-+
- static struct resource mtx1_wdt_res[] = {
- [0] = {
- .start = 15,
-@@ -62,11 +85,13 @@ static struct platform_device mtx1_gpio_
-
- static struct platform_device *mtx1_devs[] = {
- &mtx1_gpio_leds,
-- &mtx1_wdt
-+ &mtx1_wdt,
-+ &mtx1_button
- };
-
- static int __init mtx1_register_devices(void)
- {
-+ gpio_direction_input(207);
- return platform_add_devices(mtx1_devs, ARRAY_SIZE(mtx1_devs));
- }
-
diff --git a/target/linux/au1000/patches/005-au1000_eth_link_beat.patch b/target/linux/au1000/patches/005-au1000_eth_link_beat.patch
deleted file mode 100644
index e3771d7..0000000
--- a/target/linux/au1000/patches/005-au1000_eth_link_beat.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- a/drivers/net/au1000_eth.c
-+++ b/drivers/net/au1000_eth.c
-@@ -15,6 +15,9 @@
- * Author: MontaVista Software, Inc.
- * ppopov@mvista.com or source@mvista.com
- *
-+ * Bjoern Riemer 2004
-+ * riemer@fokus.fraunhofer.de or riemer@riemer-nt.de
-+ * // fixed the link beat detection with ioctls (SIOCGMIIPHY)
- * ########################################################################
- *
- * This program is free software; you can distribute it and/or modify it
-@@ -835,6 +838,10 @@ static int au1000_init(struct net_device
-
- control = MAC_RX_ENABLE | MAC_TX_ENABLE;
- #ifndef CONFIG_CPU_LITTLE_ENDIAN
-+ /*riemer: fix for startup without cable */
-+ if (!link)
-+ dev->flags &= ~IFF_RUNNING;
-+
- control |= MAC_BIG_ENDIAN;
- #endif
- if (aup->phy_dev) {
diff --git a/target/linux/au1000/patches/012-mtx1_cmdline.patch b/target/linux/au1000/patches/012-mtx1_cmdline.patch
deleted file mode 100644
index a41ee6f..0000000
--- a/target/linux/au1000/patches/012-mtx1_cmdline.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/arch/mips/au1000/mtx-1/init.c
-+++ b/arch/mips/au1000/mtx-1/init.c
-@@ -54,7 +54,7 @@ void __init prom_init(void)
- prom_argv = (char **) fw_arg1;
- prom_envp = (char **) fw_arg2;
-
-- prom_init_cmdline();
-+ strcpy(arcs_cmdline, CONFIG_CMDLINE);
-
- memsize_str = prom_getenv("memsize");
- if (!memsize_str)
diff --git a/target/linux/au1000/patches/013-openwrt_rootfs.patch b/target/linux/au1000/patches/013-openwrt_rootfs.patch
deleted file mode 100644
index e7bcba6..0000000
--- a/target/linux/au1000/patches/013-openwrt_rootfs.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/drivers/mtd/maps/mtx-1_flash.c
-+++ b/drivers/mtd/maps/mtx-1_flash.c
-@@ -28,7 +28,7 @@ static struct map_info mtx1_map = {
-
- static struct mtd_partition mtx1_partitions[] = {
- {
-- .name = "filesystem",
-+ .name = "rootfs",
- .size = 0x01C00000,
- .offset = 0,
- },{
diff --git a/target/linux/au1000/patches/014-au1000_eth_ioctl.patch b/target/linux/au1000/patches/014-au1000_eth_ioctl.patch
deleted file mode 100644
index 9358981..0000000
--- a/target/linux/au1000/patches/014-au1000_eth_ioctl.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- a/drivers/net/au1000_eth.c
-+++ b/drivers/net/au1000_eth.c
-@@ -1306,9 +1306,12 @@ static void set_rx_mode(struct net_devic
- }
- }
-
-+#define AU1000_KNOWN_PHY_IOCTLS (SIOCGMIIPHY & 0xfff0)
- static int au1000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
- {
- struct au1000_private *aup = (struct au1000_private *)dev->priv;
-+ if((cmd & AU1000_KNOWN_PHY_IOCTLS) != AU1000_KNOWN_PHY_IOCTLS)
-+ return -EINVAL;
-
- if (!netif_running(dev)) return -EINVAL;
-
diff --git a/target/linux/au1000/patches/015-pci-resource.patch b/target/linux/au1000/patches/015-pci-resource.patch
deleted file mode 100644
index 7b0bc89..0000000
--- a/target/linux/au1000/patches/015-pci-resource.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- a/arch/mips/au1000/common/pci.c
-+++ b/arch/mips/au1000/common/pci.c
-@@ -39,15 +39,15 @@
-
- /* TBD */
- static struct resource pci_io_resource = {
-- .start = PCI_IO_START,
-- .end = PCI_IO_END,
-+ .start = (resource_size_t)PCI_IO_START,
-+ .end = (resource_size_t)PCI_IO_END,
- .name = "PCI IO space",
- .flags = IORESOURCE_IO
- };
-
- static struct resource pci_mem_resource = {
-- .start = PCI_MEM_START,
-- .end = PCI_MEM_END,
-+ .start = (resource_size_t)PCI_MEM_START,
-+ .end = (resource_size_t)PCI_MEM_END,
- .name = "PCI memory space",
- .flags = IORESOURCE_MEM
- };
diff --git a/target/linux/au1000/patches/016-net-irq.patch b/target/linux/au1000/patches/016-net-irq.patch
deleted file mode 100644
index a5b00a8..0000000
--- a/target/linux/au1000/patches/016-net-irq.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/include/asm-mips/mach-au1x00/au1000.h
-+++ b/include/asm-mips/mach-au1x00/au1000.h
-@@ -623,6 +623,7 @@ enum soc_au1500_ints {
- AU1000_RTC_MATCH1_INT,
- AU1000_RTC_MATCH2_INT,
- AU1500_PCI_ERR_INT,
-+ AU1500_RESERVED_INT,
- AU1000_USB_DEV_REQ_INT,
- AU1000_USB_DEV_SUS_INT,
- AU1000_USB_HOST_INT,
diff --git a/target/linux/au1000/patches/017-gpio-dir.patch b/target/linux/au1000/patches/017-gpio-dir.patch
deleted file mode 100644
index 5ae819e..0000000
--- a/target/linux/au1000/patches/017-gpio-dir.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/arch/mips/au1000/common/gpio.c
-+++ b/arch/mips/au1000/common/gpio.c
-@@ -66,7 +66,8 @@ static int au1xxx_gpio2_direction_input(
- static int au1xxx_gpio2_direction_output(unsigned gpio, int value)
- {
- gpio -= AU1XXX_GPIO_BASE;
-- gpio2->dir = (0x01 << gpio) | (value << gpio);
-+ gpio2->dir |= 0x01 << gpio;
-+ gpio2->output = (GPIO2_OUTPUT_ENABLE_MASK << gpio) | (value << gpio);
- return 0;
- }
-
-@@ -95,6 +96,7 @@ static int au1xxx_gpio1_direction_input(
- static int au1xxx_gpio1_direction_output(unsigned gpio, int value)
- {
- gpio1->trioutclr = (0x01 & gpio);
-+ au1xxx_gpio1_write(gpio, value);
- return 0;
- }
-