X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/a61f0baa4c33ca352b7356e0d89d8e0ba6c0eeaf..151259743b7854bcf3ff9970a71ec26afd31a7e1:/target/linux/adm5120/patches-2.6.26/001-adm5120.patch diff --git a/target/linux/adm5120/patches-2.6.26/001-adm5120.patch b/target/linux/adm5120/patches-2.6.26/001-adm5120.patch index 334362c21..0661ee1ad 100644 --- a/target/linux/adm5120/patches-2.6.26/001-adm5120.patch +++ b/target/linux/adm5120/patches-2.6.26/001-adm5120.patch @@ -1,6 +1,6 @@ --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig -@@ -18,6 +18,20 @@ +@@ -18,6 +18,21 @@ prompt "System type" default SGI_IP22 @@ -16,12 +16,13 @@ + select SYS_SUPPORTS_BIG_ENDIAN + select SYS_SUPPORTS_32BIT_KERNEL + select GENERIC_GPIO ++ select HAVE_GPIO_LIB + select SWAP_IO_SPACE if CPU_BIG_ENDIAN + config MACH_ALCHEMY bool "Alchemy processor based machines" -@@ -687,6 +701,7 @@ +@@ -687,6 +702,7 @@ endchoice @@ -31,7 +32,7 @@ source "arch/mips/jazz/Kconfig" --- a/arch/mips/Makefile +++ b/arch/mips/Makefile -@@ -174,6 +174,20 @@ +@@ -174,6 +174,21 @@ load-$(CONFIG_MACH_JAZZ) += 0xffffffff80080000 # @@ -44,6 +45,7 @@ +core-$(CONFIG_ADM5120_OEM_EDIMAX) += arch/mips/adm5120/edimax/ +core-$(CONFIG_ADM5120_OEM_INFINEON) += arch/mips/adm5120/infineon/ +core-$(CONFIG_ADM5120_OEM_MIKROTIK) += arch/mips/adm5120/mikrotik/ ++core-$(CONFIG_ADM5120_OEM_MOTOROLA) += arch/mips/adm5120/motorola/ +core-$(CONFIG_ADM5120_OEM_ZYXEL) += arch/mips/adm5120/zyxel/ +cflags-$(CONFIG_ADM5120) += -Iinclude/asm-mips/mach-adm5120 +load-$(CONFIG_ADM5120) += 0xffffffff80001000 @@ -54,7 +56,7 @@ core-$(CONFIG_SOC_AU1X00) += arch/mips/au1000/common/ --- a/include/asm-mips/bootinfo.h +++ b/include/asm-mips/bootinfo.h -@@ -94,6 +94,54 @@ +@@ -94,6 +94,55 @@ #define MACH_MSP7120_FPGA 5 /* PMC-Sierra MSP7120 Emulation */ #define MACH_MSP_OTHER 255 /* PMC-Sierra unknown board type */ @@ -105,6 +107,7 @@ +#define MACH_ADM5120_BR6104K 41 /* Edimax BR-6104K */ +#define MACH_ADM5120_BR6104KP 42 /* Edimax BR-6104KP */ +#define MACH_ADM5120_BR61X4WG 43 /* Edimax BR-6104Wg/BR-6114WG */ ++#define MACH_ADM5120_PMUGW 44 /* Motorola Powerline MU Gateway */ + #define CL_SIZE COMMAND_LINE_SIZE