brcm63xx: 96368MVWG supports USB gadget, enable it
authorFlorian Fainelli <florian@openwrt.org>
Tue, 14 Jan 2014 23:56:46 +0000 (23:56 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 14 Jan 2014 23:56:46 +0000 (23:56 +0000)
Enable the use of the USB gadget device at the board level so we can use
bcm63xx_udc on this board.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 39292

19 files changed:
target/linux/brcm63xx/config-3.11 [new file with mode: 0644]
target/linux/brcm63xx/patches-3.10/520-bcm63xx-add-support-for-96368MVWG-board.patch
target/linux/brcm63xx/patches-3.10/521-bcm63xx-add-support-for-96368MVNgr-board.patch
target/linux/brcm63xx/patches-3.10/523-MIPS-BCM63XX-add-963281TAN-reference-board.patch
target/linux/brcm63xx/patches-3.10/524-board_dsl_274xb_rev_f.patch
target/linux/brcm63xx/patches-3.10/525-board_96348w3.patch
target/linux/brcm63xx/patches-3.10/526-board_CT6373-1.patch
target/linux/brcm63xx/patches-3.10/527-board_dva-g3810bn-tl-1.patch
target/linux/brcm63xx/patches-3.10/528-board_nb6.patch
target/linux/brcm63xx/patches-3.10/529-board_fast2604.patch
target/linux/brcm63xx/patches-3.10/530-board_963281T_TEF.patch
target/linux/brcm63xx/patches-3.10/531-board_96328A-1441N1.patch
target/linux/brcm63xx/patches-3.10/532-board_96328a-1241N.patch
target/linux/brcm63xx/patches-3.10/533-board_rta770bw.patch
target/linux/brcm63xx/patches-3.10/534-board_hw556.patch
target/linux/brcm63xx/patches-3.10/535-board_rta770w.patch
target/linux/brcm63xx/patches-3.10/555-board_96318ref.patch
target/linux/brcm63xx/patches-3.10/556-board_96318ref_p300.patch
target/linux/brcm63xx/patches-3.10/801-ssb_export_fallback_sprom.patch

diff --git a/target/linux/brcm63xx/config-3.11 b/target/linux/brcm63xx/config-3.11
new file mode 100644 (file)
index 0000000..6b264ba
--- /dev/null
@@ -0,0 +1,150 @@
+# CONFIG_AIX_PARTITION is not set
+CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y
+CONFIG_ARCH_DISCARD_MEMBLOCK=y
+CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
+CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
+CONFIG_ARCH_HIBERNATION_POSSIBLE=y
+CONFIG_ARCH_REQUIRE_GPIOLIB=y
+CONFIG_ARCH_SUSPEND_POSSIBLE=y
+CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
+CONFIG_BCM63XX=y
+CONFIG_BCM63XX_CPU_3368=y
+CONFIG_BCM63XX_CPU_6328=y
+# CONFIG_BCM63XX_CPU_6338 is not set
+# CONFIG_BCM63XX_CPU_6345 is not set
+# CONFIG_BCM63XX_CPU_6348 is not set
+CONFIG_BCM63XX_CPU_6358=y
+CONFIG_BCM63XX_CPU_6362=y
+CONFIG_BCM63XX_CPU_6368=y
+# CONFIG_BCM63XX_ENET is not set
+# CONFIG_BCM63XX_WDT is not set
+CONFIG_BOARD_BCM963XX=y
+# CONFIG_CAVIUM_OCTEON_SOC is not set
+CONFIG_CEVT_R4K=y
+CONFIG_CLONE_BACKWARDS=y
+CONFIG_CMDLINE="console=ttyS0,115200 earlyprintk init=/etc/preinit"
+CONFIG_CMDLINE_BOOL=y
+CONFIG_CMDLINE_OVERRIDE=y
+# CONFIG_COMPILE_TEST is not set
+CONFIG_CPU_BIG_ENDIAN=y
+CONFIG_CPU_BMIPS=y
+CONFIG_CPU_BMIPS4350=y
+CONFIG_CPU_GENERIC_DUMP_TLB=y
+CONFIG_CPU_HAS_SYNC=y
+CONFIG_CPU_MIPS32=y
+# CONFIG_CPU_MIPS32_R1 is not set
+CONFIG_CPU_R4K_CACHE_TLB=y
+CONFIG_CPU_R4K_FPU=y
+CONFIG_CPU_RMAP=y
+CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
+# CONFIG_CRYPTO_LZ4 is not set
+# CONFIG_CRYPTO_LZ4HC is not set
+CONFIG_CSRC_R4K=y
+# CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not set
+CONFIG_DMA_NONCOHERENT=y
+CONFIG_EARLY_PRINTK=y
+# CONFIG_FMC is not set
+CONFIG_GENERIC_ATOMIC64=y
+CONFIG_GENERIC_CLOCKEVENTS=y
+CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
+CONFIG_GENERIC_CMOS_UPDATE=y
+CONFIG_GENERIC_IO=y
+CONFIG_GENERIC_IRQ_SHOW=y
+CONFIG_GENERIC_NET_UTILS=y
+CONFIG_GENERIC_PCI_IOMAP=y
+CONFIG_GENERIC_SMP_IDLE_THREAD=y
+CONFIG_GPIOLIB=y
+CONFIG_GPIO_DEVRES=y
+CONFIG_HAS_DMA=y
+CONFIG_HAS_IOMEM=y
+CONFIG_HAS_IOPORT=y
+# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
+CONFIG_HAVE_ARCH_JUMP_LABEL=y
+CONFIG_HAVE_ARCH_KGDB=y
+# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set
+CONFIG_HAVE_CLK=y
+CONFIG_HAVE_CONTEXT_TRACKING=y
+CONFIG_HAVE_C_RECORDMCOUNT=y
+CONFIG_HAVE_DEBUG_KMEMLEAK=y
+CONFIG_HAVE_DEBUG_STACKOVERFLOW=y
+CONFIG_HAVE_DMA_API_DEBUG=y
+CONFIG_HAVE_DMA_ATTRS=y
+CONFIG_HAVE_DYNAMIC_FTRACE=y
+CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
+CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
+CONFIG_HAVE_FUNCTION_TRACER=y
+CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=y
+CONFIG_HAVE_GENERIC_DMA_COHERENT=y
+CONFIG_HAVE_GENERIC_HARDIRQS=y
+CONFIG_HAVE_IDE=y
+CONFIG_HAVE_MEMBLOCK=y
+CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
+CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
+CONFIG_HAVE_NET_DSA=y
+CONFIG_HAVE_OPROFILE=y
+CONFIG_HAVE_PERF_EVENTS=y
+CONFIG_HW_HAS_PCI=y
+CONFIG_HZ_PERIODIC=y
+CONFIG_INITRAMFS_SOURCE=""
+CONFIG_IRQ_CPU=y
+CONFIG_IRQ_FORCED_THREADING=y
+CONFIG_IRQ_WORK=y
+# CONFIG_MEN_A21_WDT is not set
+# CONFIG_MFD_KEMPLD is not set
+CONFIG_MIPS=y
+# CONFIG_MIPS_HUGE_TLB_SUPPORT is not set
+CONFIG_MIPS_L1_CACHE_SHIFT=5
+# CONFIG_MIPS_MACHINE is not set
+CONFIG_MIPS_MT_DISABLED=y
+CONFIG_MODULES_USE_ELF_REL=y
+# CONFIG_MTD_BCM63XX_PARTS is not set
+CONFIG_MUTEX_SPIN_ON_OWNER=y
+CONFIG_NEED_DMA_MAP_STATE=y
+CONFIG_NET_FLOW_LIMIT=y
+# CONFIG_NET_IP_TUNNEL is not set
+CONFIG_NET_LL_RX_POLL=y
+# CONFIG_NET_MPLS_GSO is not set
+CONFIG_NET_VENDOR_ARC=y
+# CONFIG_NLMON is not set
+CONFIG_NR_CPUS=2
+CONFIG_NR_CPUS_DEFAULT_2=y
+# CONFIG_N_HDLC is not set
+CONFIG_PAGEFLAGS_EXTENDED=y
+# CONFIG_PCI is not set
+CONFIG_PERF_USE_VMALLOC=y
+# CONFIG_PREEMPT_RCU is not set
+# CONFIG_PWM is not set
+CONFIG_RCU_STALL_COMMON=y
+# CONFIG_RCU_USER_QS is not set
+# CONFIG_RD_LZ4 is not set
+CONFIG_RFS_ACCEL=y
+CONFIG_RPS=y
+# CONFIG_SCSI_DMA is not set
+# CONFIG_SERIAL_8250 is not set
+CONFIG_SERIAL_BCM63XX=y
+CONFIG_SERIAL_BCM63XX_CONSOLE=y
+# CONFIG_SERIAL_FSL_LPUART is not set
+CONFIG_SERIAL_NONSTANDARD=y
+# CONFIG_SH_ETH is not set
+CONFIG_SMP=y
+CONFIG_SSB=y
+# CONFIG_SSB_DRIVER_MIPS is not set
+CONFIG_STOP_MACHINE=y
+CONFIG_SWAP_IO_SPACE=y
+CONFIG_SYS_HAS_CPU_BMIPS4350=y
+CONFIG_SYS_HAS_CPU_MIPS32_R1=y
+CONFIG_SYS_HAS_EARLY_PRINTK=y
+CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y
+CONFIG_SYS_SUPPORTS_ARBIT_HZ=y
+CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y
+CONFIG_SYS_SUPPORTS_HOTPLUG_CPU=y
+CONFIG_SYS_SUPPORTS_SMP=y
+CONFIG_TICK_CPU_ACCOUNTING=y
+# CONFIG_TINY_RCU is not set
+CONFIG_TREE_RCU=y
+CONFIG_UIDGID_CONVERTED=y
+CONFIG_USE_GENERIC_SMP_HELPERS=y
+CONFIG_WEAK_ORDERING=y
+CONFIG_XPS=y
+# CONFIG_ZBUD is not set
+CONFIG_ZONE_DMA_FLAG=0
index bc5bd3d83ee500689a5670b9a46c4ddf015e2812..d01e179f958907551377022157bcca18835a9cf9 100644 (file)
@@ -10,7 +10,7 @@ Subject: [PATCH 32/63] bcm63xx: add support for 96368MVWG board.
 
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2225,6 +2225,78 @@ static struct board_info __initdata boar
+@@ -2225,6 +2225,86 @@ static struct board_info __initdata boar
  #endif
  
  /*
@@ -23,6 +23,14 @@ Subject: [PATCH 32/63] bcm63xx: add support for 96368MVWG board.
 +
 +      .has_uart0                      = 1,
 +      .has_pci                        = 1,
++
++      .has_usbd                       = 1,
++
++      .usbd = {
++              .use_fullspeed          = 0,
++              .port_no                = 0,
++      },
++
 +      .has_enetsw                     = 1,
 +
 +      .enetsw = {
@@ -89,7 +97,7 @@ Subject: [PATCH 32/63] bcm63xx: add support for 96368MVWG board.
   * all boards
   */
  static const struct board_info __initconst *bcm963xx_boards[] = {
-@@ -2279,6 +2351,10 @@ static const struct board_info __initcon
+@@ -2279,6 +2359,10 @@ static const struct board_info __initcon
        &board_HW553,
        &board_spw303v,
  #endif
@@ -100,7 +108,7 @@ Subject: [PATCH 32/63] bcm63xx: add support for 96368MVWG board.
  };
  
  /*
-@@ -2460,12 +2536,25 @@ void __init board_prom_init(void)
+@@ -2460,12 +2544,25 @@ void __init board_prom_init(void)
                bcm63xx_pci_enabled = 1;
                if (BCMCPU_IS_6348())
                        val |= GPIO_MODE_6348_G2_PCI;
index bcda63fa7d6d2e2e361e343466e85597688b1561..b92f0693612afa45c1fdf3c45400e58e12e8ed80 100644 (file)
@@ -9,7 +9,7 @@ Subject: [PATCH 33/63] bcm63xx: add support for 96368MVNgr board.
 
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2294,6 +2294,72 @@ static struct board_info __initdata boar
+@@ -2302,6 +2302,72 @@ static struct board_info __initdata boar
        .has_ohci0 = 1,
        .has_ehci0 = 1,
  };
@@ -82,7 +82,7 @@ Subject: [PATCH 33/63] bcm63xx: add support for 96368MVNgr board.
  #endif
  
  /*
-@@ -2354,6 +2420,7 @@ static const struct board_info __initcon
+@@ -2362,6 +2428,7 @@ static const struct board_info __initcon
  
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
index c392e78376adafeab34ad343949fa07fe7081cf5..b094aba57f2767ed777b64a97cc841eb498a3fe3 100644 (file)
@@ -86,7 +86,7 @@ Subject: [PATCH] MIPS: BCM63XX: add 963281TAN reference board
  #endif
  
  /*
-@@ -2403,6 +2473,7 @@ static const struct board_info __initcon
+@@ -2411,6 +2481,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
index 06457c1d1d6431bcd1ce1b7dd6785d07d651ba2c..6c933533a2eade88ef07b5f420203bd2c11f686c 100644 (file)
@@ -122,7 +122,7 @@ Subject: [PATCH 70/79] MIPS: BCM63XX: Add board definition for D-Link
  #endif
  
  /*
-@@ -2474,6 +2579,7 @@ static const struct board_info __initcon
+@@ -2482,6 +2587,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
        &board_963281TAN,
index 2d260f9cf105e440c1d11b836f77cfd7c5998bb0..e93b4c1e3abba5d020c9b30bab92cb0af67f76a6 100644 (file)
@@ -60,7 +60,7 @@
  #endif
  
  /*
-@@ -2609,6 +2662,7 @@ static const struct board_info __initcon
+@@ -2617,6 +2670,7 @@ static const struct board_info __initcon
        &board_ct536_ct5621,
        &board_96348A_122,
        &board_CPVA502plus,
index 34e33361640e9bfc49d28ecace371ea91504a455..572de788424bd67a354beebf3b6fc67ab51a53c9 100644 (file)
  static struct board_info __initdata board_HW553 = {
        .name                           = "HW553",
        .expected_cpu_id                = 0x6358,
-@@ -2677,6 +2791,7 @@ static const struct board_info __initcon
+@@ -2685,6 +2799,7 @@ static const struct board_info __initcon
        &board_nb4_ser_r2,
        &board_nb4_fxc_r1,
        &board_nb4_fxc_r2,
index f63d4a0c2c18cbebea977fc854e01630a25168b4..1e8f43b4b20eb11cc47d229a67a33eb60cac64df 100644 (file)
@@ -74,7 +74,7 @@
  #endif
  
  /*
-@@ -2794,6 +2861,7 @@ static const struct board_info __initcon
+@@ -2802,6 +2869,7 @@ static const struct board_info __initcon
        &board_ct6373_1,
        &board_HW553,
        &board_spw303v,
index 8199cb653e6e6704cbf5c942004c3eab4304f7a7..0a7196d96d4213e03c702f7264e00ce26ea67143 100644 (file)
  /*
   * known 6368 boards
   */
-@@ -2864,6 +2964,10 @@ static const struct board_info __initcon
+@@ -2872,6 +2972,10 @@ static const struct board_info __initcon
        &board_DVAG3810BN,
  #endif
  
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
-@@ -2931,6 +3035,11 @@ static void __init boardid_fixup(u8 *boo
+@@ -2939,6 +3043,11 @@ static void __init boardid_fixup(u8 *boo
                }
        }
  
index c8535bdde89599ea4b9c9ed2a69827e65db7ebbf..fb346456603dfa53941d99266aa3c554380c5101 100644 (file)
@@ -58,7 +58,7 @@
  static struct board_info __initdata board_rta1025w_16 = {
        .name                           = "RTA1025W_16",
        .expected_cpu_id                = 0x6348,
-@@ -2932,6 +2983,7 @@ static const struct board_info __initcon
+@@ -2940,6 +2991,7 @@ static const struct board_info __initcon
        &board_96348gw_10,
        &board_96348gw_11,
        &board_FAST2404,
index 46a86582bc19a6bb6f38feb08ff70158a9f7ba98..c864caed66b27b9042e59861befaf165452cf5be 100644 (file)
  static struct board_info __initdata board_dsl_274xb_f1 = {
        .name                           = "AW4339U",
        .expected_cpu_id                = 0x6328,
-@@ -2964,6 +3083,7 @@ static const struct board_info __initcon
+@@ -2972,6 +3091,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
        &board_963281TAN,
index b86e4edf148ceaab473613b396fe5999923ebe65..bb2adfdd933f05a96969b037c107de01c2c9e31b 100644 (file)
@@ -79,7 +79,7 @@
  static struct board_info __initdata board_963281TAN = {
        .name                           = "963281TAN",
        .expected_cpu_id                = 0x6328,
-@@ -3082,6 +3154,7 @@ static const struct board_info __initcon
+@@ -3090,6 +3162,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
index 0ef58e24fa307d2ad84163560fc05ab018a995cd..8ccdf9c5909bd56dc0c799e05ca70191d9fefcd1 100644 (file)
@@ -73,7 +73,7 @@
  static struct board_info __initdata board_96328A_1441N1 = {
        .name                                   = "96328A-1441N1",
        .expected_cpu_id                        = 0x6328,
-@@ -3154,6 +3220,7 @@ static const struct board_info __initcon
+@@ -3162,6 +3228,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
index 9fc31cc495e2f3ea2d91f53287a89610f3ead9ad..a4cffe020d9cf5ae67916f7f00ed54b193bc1498 100644 (file)
@@ -56,7 +56,7 @@
  #endif
  
  /*
-@@ -3234,6 +3283,7 @@ static const struct board_info __initcon
+@@ -3242,6 +3291,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6345
        &board_96345gw2,
index c66caf7fe3bd9cd99403933ac83e77a888d9e0c8..193d9c9d97be283e596eb75364e2f3aa012fc65e 100644 (file)
   /* T-Home Speedport W 303V Typ B */
  static struct board_info __initdata board_spw303v = {
        .name                   = "96358-502V",
-@@ -3322,6 +3804,10 @@ static const struct board_info __initcon
+@@ -3330,6 +3812,10 @@ static const struct board_info __initcon
        &board_nb4_fxc_r2,
        &board_ct6373_1,
        &board_HW553,
        &board_spw303v,
        &board_DVAG3810BN,
  #endif
-@@ -3387,13 +3873,37 @@ static void __init boardid_fixup(u8 *boo
+@@ -3395,13 +3881,37 @@ static void __init boardid_fixup(u8 *boo
        struct bcm_tag *tag = (struct bcm_tag *)(boot_addr + CFE_OFFSET_64K);
        char *board_name = (char *)bcm63xx_nvram_get_name();
  
index 3933d00b5cacff001375fc457837b6d748218f9d..7d3707495e25abaf39ca811cb72709aa65381160 100644 (file)
@@ -61,7 +61,7 @@
  #endif
  
  /*
-@@ -3766,6 +3820,7 @@ static const struct board_info __initcon
+@@ -3774,6 +3828,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6345
        &board_96345gw2,
        &board_rta770bw,
index fa476edf0ce10e2166420bfcddbdc626e29bcfe6..91c9100df12e2388f2adea84debf9382d332d58d 100644 (file)
@@ -93,7 +93,7 @@
   * known 6328 boards
   */
  #ifdef CONFIG_BCM63XX_CPU_6328
-@@ -4034,6 +4120,9 @@ static const struct board_info __initcon
+@@ -4042,6 +4128,9 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_3368
        &board_cvg834g,
  #endif
index c1fb272e19eaaa402f4d2907a778abd901f9c5dd..b8e451bb943e8a082a4d347915d20a10866db5f9 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -186,6 +186,93 @@ static struct board_info __initdata boar
+@@ -185,6 +185,93 @@ static struct board_info __initdata boar
                },
        },
  };
@@ -94,7 +94,7 @@
  #endif
  
  /*
-@@ -4123,6 +4210,7 @@ static const struct board_info __initcon
+@@ -4130,6 +4217,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6318
        &board_96318ref,
index 5d5a1085d576d7ce24bdb00328e6592e31ae11bb..0dac578d8bf2bdac337d6e2703d50109f338725f 100644 (file)
@@ -8,7 +8,7 @@
  #include <linux/spi/spi.h>
  #include <linux/spi/spi_gpio.h>
  #include <linux/spi/74x164.h>
-@@ -4202,7 +4203,7 @@ static const struct board_info __initcon
+@@ -4298,7 +4299,7 @@ static const struct board_info __initcon
   * bcm4318 WLAN work
   */
  #ifdef CONFIG_SSB_PCIHOST
@@ -17,7 +17,7 @@
        .revision               = 0x02,
        .board_rev              = 0x17,
        .country_code           = 0x0,
-@@ -4222,6 +4223,7 @@ static struct ssb_sprom bcm63xx_sprom =
+@@ -4318,6 +4319,7 @@ static struct ssb_sprom bcm63xx_sprom =
        .boardflags_lo          = 0x2848,
        .boardflags_hi          = 0x0000,
  };