Signed-off-by: Daniel Golle <[email protected]> --- .../ar7/patches-3.3/300-add-ac49x-platform.patch | 142 +++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 target/linux/ar7/patches-3.3/300-add-ac49x-platform.patch
diff --git a/target/linux/ar7/patches-3.3/300-add-ac49x-platform.patch b/target/linux/ar7/patches-3.3/300-add-ac49x-platform.patch new file mode 100644 index 0000000..1f6e9b6 --- /dev/null +++ b/target/linux/ar7/patches-3.3/300-add-ac49x-platform.patch @@ -0,0 +1,142 @@ +Index: linux-3.3.8/arch/mips/Kconfig +=================================================================== +--- linux-3.3.8.orig/arch/mips/Kconfig ++++ linux-3.3.8/arch/mips/Kconfig +@@ -39,6 +39,25 @@ choice + prompt "System type" + default SGI_IP22 + ++config AC49X ++ bool "AudioCodes AC49X" ++ select BOOT_ELF32 ++ select DMA_NONCOHERENT ++ select CEVT_R4K ++ select CSRC_R4K ++ select IRQ_CPU ++ select NO_EXCEPT_FILL ++ select SWAP_IO_SPACE ++ select SYS_HAS_CPU_MIPS32_R1 ++ select SYS_HAS_EARLY_PRINTK ++ select SYS_SUPPORTS_32BIT_KERNEL ++ select SYS_SUPPORTS_LITTLE_ENDIAN ++ select SYS_SUPPORTS_ZBOOT_UART16550 ++ select ARCH_REQUIRE_GPIOLIB ++ select VLYNQ ++ help ++ Support for the AudioCodes AC49x System-on-a-Chip family. ++ + config MIPS_ALCHEMY + bool "Alchemy processor based machines" + select 64BIT_PHYS_ADDR +Index: linux-3.3.8/arch/mips/ar7/Platform +=================================================================== +--- linux-3.3.8.orig/arch/mips/ar7/Platform ++++ linux-3.3.8/arch/mips/ar7/Platform +@@ -4,3 +4,10 @@ + platform-$(CONFIG_AR7) += ar7/ + cflags-$(CONFIG_AR7) += -I$(srctree)/arch/mips/include/asm/mach-ar7 + load-$(CONFIG_AR7) += 0xffffffff94100000 ++ ++# ++# AudioCodes AC49x ++# ++platform-$(CONFIG_AC49X) += ar7/ ++cflags-$(CONFIG_AC49X) += -I$(srctree)/arch/mips/include/asm/mach-ar7 ++load-$(CONFIG_AC49X) += 0xffffffff945ca000 +Index: linux-3.3.8/drivers/char/Kconfig +=================================================================== +--- linux-3.3.8.orig/drivers/char/Kconfig ++++ linux-3.3.8/drivers/char/Kconfig +@@ -480,7 +480,7 @@ config MWAVE + + config AR7_GPIO + tristate "TI AR7 GPIO Support" +- depends on AR7 ++ depends on AR7 || AC49X + help + Give userspace access to the GPIO pins on the Texas Instruments AR7 + processors. +Index: linux-3.3.8/drivers/net/ethernet/ti/Kconfig +=================================================================== +--- linux-3.3.8.orig/drivers/net/ethernet/ti/Kconfig ++++ linux-3.3.8/drivers/net/ethernet/ti/Kconfig +@@ -5,7 +5,7 @@ + config NET_VENDOR_TI + bool "Texas Instruments (TI) devices" + default y +- depends on PCI || EISA || AR7 || (ARM && (ARCH_DAVINCI || ARCH_OMAP3)) ++ depends on PCI || EISA || AC49X || AR7 || (ARM && (ARCH_DAVINCI || ARCH_OMAP3)) + ---help--- + If you have a network (Ethernet) card belonging to this class, say Y + and read the Ethernet-HOWTO, available from +@@ -69,7 +69,7 @@ config TLAN + + config CPMAC + tristate "TI AR7 CPMAC Ethernet support (EXPERIMENTAL)" +- depends on EXPERIMENTAL && AR7 ++ depends on EXPERIMENTAL && ( AC49X || AR7 ) + select PHYLIB + ---help--- + TI AR7 CPMAC Ethernet support +Index: linux-3.3.8/drivers/vlynq/Kconfig +=================================================================== +--- linux-3.3.8.orig/drivers/vlynq/Kconfig ++++ linux-3.3.8/drivers/vlynq/Kconfig +@@ -1,5 +1,5 @@ + menu "TI VLYNQ" +- depends on AR7 && EXPERIMENTAL ++ depends on ( AR7 || AC49X ) && EXPERIMENTAL + + config VLYNQ + bool "TI VLYNQ bus support" +Index: linux-3.3.8/drivers/watchdog/Kconfig +=================================================================== +--- linux-3.3.8.orig/drivers/watchdog/Kconfig ++++ linux-3.3.8/drivers/watchdog/Kconfig +@@ -989,7 +989,7 @@ config SIBYTE_WDOG + + config AR7_WDT + tristate "TI AR7 Watchdog Timer" +- depends on AR7 ++ depends on AR7 || AC49X + help + Hardware driver for the TI AR7 Watchdog Timer. + +Index: linux-3.3.8/arch/mips/boot/compressed/uart-16550.c +=================================================================== +--- linux-3.3.8.orig/arch/mips/boot/compressed/uart-16550.c ++++ linux-3.3.8/arch/mips/boot/compressed/uart-16550.c +@@ -13,7 +13,7 @@ + #define PORT(offset) (CKSEG1ADDR(UART_BASE) + (offset)) + #endif + +-#ifdef CONFIG_AR7 ++#if defined(CONFIG_AR7) || defined(CONFIG_AC49X) + #include <ar7.h> + #define PORT(offset) (CKSEG1ADDR(AR7_REGS_UART0) + (4 * offset)) + #endif +Index: linux-3.3.8/arch/mips/ar7/setup.c +=================================================================== +--- linux-3.3.8.orig/arch/mips/ar7/setup.c ++++ linux-3.3.8/arch/mips/ar7/setup.c +@@ -69,6 +69,8 @@ const char *get_system_type(void) + return "TI AR7 (TNETV1056)"; + case TITAN_CHIP_1060: + return "TI AR7 (TNETV1060)"; ++ case TITAN_CHIP_AC: ++ return "AudioCodes AC49x"; + } + default: + return "TI AR7 (unknown)"; +Index: linux-3.3.8/arch/mips/include/asm/mach-ar7/ar7.h +=================================================================== +--- linux-3.3.8.orig/arch/mips/include/asm/mach-ar7/ar7.h ++++ linux-3.3.8/arch/mips/include/asm/mach-ar7/ar7.h +@@ -92,6 +92,7 @@ + #define TITAN_CHIP_1055 0x0e + #define TITAN_CHIP_1056 0x0d + #define TITAN_CHIP_1060 0x07 ++#define TITAN_CHIP_AC 0x02 + + /* Interrupts */ + #define AR7_IRQ_UART0 15 -- 1.7.12.2
pgpoTJZ5x1eKy.pgp
Description: PGP signature
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
