Signed-off-by: Daniel Golle <[email protected]>

 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..7132743
--- /dev/null
+++ b/target/linux/ar7/patches-3.3/300-add-ac49x-platform.patch
@@ -0,0 +1,124 @@
+--- a/arch/mips/Kconfig
++++ b/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
+--- a/arch/mips/ar7/Platform
++++ b/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
+--- a/drivers/char/Kconfig
++++ b/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.
+--- a/drivers/net/ethernet/ti/Kconfig
++++ b/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
+--- a/drivers/vlynq/Kconfig
++++ b/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"
+--- a/drivers/watchdog/Kconfig
++++ b/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.
+ 
+--- a/arch/mips/boot/compressed/uart-16550.c
++++ b/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
+--- a/arch/mips/ar7/setup.c
++++ b/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)";
+--- a/arch/mips/include/asm/mach-ar7/ar7.h
++++ b/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

Attachment: pgpXUfs1Zevpq.pgp
Description: PGP signature

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to