Switch to kernel 3.3.8(solo2)
[vuplus_openvuplus] / meta-bsp / common / recipes / linux / linux-vuplus-3.3.8 / brcm_3.3.patch
1 diff --git a/Makefile b/Makefile
2 index 002da9a..03831b6 100644
3 --- a/Makefile
4 +++ b/Makefile
5 @@ -193,7 +193,7 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
6  # Default value for CROSS_COMPILE is not to prefix executables
7  # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
8  export KBUILD_BUILDHOST := $(SUBARCH)
9 -ARCH           ?= $(SUBARCH)
10 +ARCH           ?= mips
11  CROSS_COMPILE  ?= $(CONFIG_CROSS_COMPILE:"%"=%)
12  
13  # Architecture as present in compile.h
14 diff --git a/drivers/brcmstb/bchip.c b/drivers/brcmstb/bchip.c
15 index b4c5b0b..4f871cd 100644
16 --- a/drivers/brcmstb/bchip.c
17 +++ b/drivers/brcmstb/bchip.c
18 @@ -450,9 +450,14 @@ void __init bchip_early_setup(void)
19                 genet_pdata[0].phy_id = BRCM_PHY_ID_AUTO;
20         }
21  #else
22 +#if defined(CONFIG_BCMGENET_0_GPHY)
23 +        genet_pdata[0].phy_type = BRCM_PHY_TYPE_EXT_RGMII;
24 +        genet_pdata[0].phy_id = BRCM_PHY_ID_AUTO;
25 +#else
26         genet_pdata[0].phy_type = BRCM_PHY_TYPE_INT;
27         genet_pdata[0].phy_id = 1;
28  #endif
29 +#endif
30  
31  #endif
32  
33 diff --git a/drivers/net/ethernet/broadcom/genet/Kconfig b/drivers/net/ethernet/broadcom/genet/Kconfig
34 index c1ed960..8e87443 100644
35 --- a/drivers/net/ethernet/broadcom/genet/Kconfig
36 +++ b/drivers/net/ethernet/broadcom/genet/Kconfig
37 @@ -1,5 +1,27 @@
38  menu "BCMGENET options"
39  
40 +config BCMGENET_0_GPHY
41 +        bool "GENET0 is connected to GPHY via RGMII"
42 +        depends on BCMGENET && BRCM_HAS_GENET_0
43 +        default n
44 +        help
45 +          Say Y to use an external GPHY for GENET_0.  By default this will
46 +          use RGMII mode and disable the internal 10/100 PHY (if present);
47 +          the pinmux must be set up properly in arch/mips/brcmstb/board.c .
48 +
49 +          If unsure, say N.
50 +
51 +config BCMGENET_1_GPHY
52 +        bool "GENET1 is connected to GPHY via RGMII"
53 +        depends on BCMGENET && BRCM_HAS_GENET_1
54 +        default n
55 +        help
56 +          Say Y to use an external GPHY for GENET_1.  By default this will
57 +          use RGMII mode and disable the internal 10/100 PHY (if present);
58 +          the pinmux must be set up properly in arch/mips/brcmstb/board.c .
59 +
60 +          If unsure, say N.
61 +
62  config BCMGENET_RX_DESC_THROTTLE 
63         bool "use hardware rx descriptor throttling"
64         depends on BCMGENET