From e4b21186226feed18dd6b36c6eaf83d94565a207 Mon Sep 17 00:00:00 2001 From: acoul Date: Mon, 4 Oct 2010 17:45:05 +0000 Subject: linux/adm5120: add preliminary 2.6.36 kernel support (refresh patches) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23224 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../adm5120/patches-2.6.36/930-2_6_36_ports.patch | 119 +++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 target/linux/adm5120/patches-2.6.36/930-2_6_36_ports.patch (limited to 'target/linux/adm5120/patches-2.6.36/930-2_6_36_ports.patch') diff --git a/target/linux/adm5120/patches-2.6.36/930-2_6_36_ports.patch b/target/linux/adm5120/patches-2.6.36/930-2_6_36_ports.patch new file mode 100644 index 000000000..0c5578405 --- /dev/null +++ b/target/linux/adm5120/patches-2.6.36/930-2_6_36_ports.patch @@ -0,0 +1,119 @@ +--- a/arch/mips/include/asm/war.h ++++ b/arch/mips/include/asm/war.h +@@ -9,7 +9,7 @@ + #ifndef _ASM_WAR_H + #define _ASM_WAR_H + +-#include ++#include + + /* + * Work around certain R4000 CPU errata (as implemented by GCC): +--- a/drivers/amba/bus.c ++++ b/drivers/amba/bus.c +@@ -16,7 +16,7 @@ + #include + + #include +-#include ++#include + + #ifndef NO_IRQ + #define NO_IRQ (-1) +--- a/drivers/watchdog/adm5120_wdt.c ++++ b/drivers/watchdog/adm5120_wdt.c +@@ -167,7 +167,7 @@ static struct file_operations wdt_fops = + owner: THIS_MODULE, + llseek: no_llseek, + write: wdt_write, +- ioctl: wdt_ioctl, ++ unlocked_ioctl: wdt_ioctl, + open: wdt_open, + release: wdt_release, + }; +--- a/arch/mips/Kbuild.platforms ++++ b/arch/mips/Kbuild.platforms +@@ -1,5 +1,6 @@ + # All platforms listed in alphabetic order + ++platforms += adm5120 + platforms += alchemy + platforms += ar7 + platforms += bcm47xx +--- a/drivers/net/adm5120sw.c ++++ b/drivers/net/adm5120sw.c +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + + #include + #include +--- a/arch/mips/adm5120/common/clock.c ++++ b/arch/mips/adm5120/common/clock.c +@@ -33,7 +33,7 @@ static struct clk uart_clk = { + + struct clk *clk_get(struct device *dev, const char *id) + { +- char *name = dev_name(dev); ++ const char *name = dev_name(dev); + + if (!strcmp(name, "apb:uart0") || !strcmp(name, "apb:uart1")) + return &uart_clk; +--- /dev/null ++++ b/arch/mips/adm5120/Platform +@@ -0,0 +1,53 @@ ++# ++# Core Infineon/ADMtek ADM5120 ++# ++platform-$(CONFIG_ADM5120) += adm5120/common/ ++ ++# ++# OEM CELLVISION ++# ++platform-$(CONFIG_ADM5120_OEM_CELLVISION) += adm5120/cellvision/ ++ ++# ++# OEM COMPEX ++# ++platform-$(CONFIG_ADM5120_OEM_COMPEX) += adm5120/compex/ ++ ++# ++# OEM EDIMAX ++# ++platform-$(CONFIG_ADM5120_OEM_EDIMAX) += adm5120/edimax/ ++ ++# ++# OEM GENERIC ++# ++platform-$(CONFIG_ADM5120_OEM_GENERIC) += adm5120/generic/ ++ ++# ++# OEM INFINEON ++# ++platform-$(CONFIG_ADM5120_OEM_INFINEON) += adm5120/infineon/ ++ ++# ++# OEM MIKROTIK ++# ++platform-$(CONFIG_ADM5120_OEM_MIKROTIK) += adm5120/mikrotik/ ++ ++# ++# OEM MOTOROLA ++# ++platform-$(CONFIG_ADM5120_OEM_MOTOROLA) += adm5120/motorola/ ++ ++# ++# OEM OSBRIDGE ++# ++platform-$(CONFIG_ADM5120_OEM_OSBRIDGE) += adm5120/osbridge/ ++ ++# ++# OEM ZYXEL ++# ++platform-$(CONFIG_ADM5120_OEM_ZYXEL) += adm5120/zyxel/ ++ ++cflags-$(CONFIG_ADM5120) += -I$(srctree)/arch/mips/include/asm/mach-adm5120 ++libs-$(CONFIG_ADM5120) += arch/mips/adm5120/prom/ ++load-$(CONFIG_ADM5120) += 0xffffffff8000100 -- cgit v1.2.3