[adm5120] switch to 2.6.25.7
[openwrt.git] / target / linux / orion / patches / 013-add_88f5181l_support.patch
1 Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2 ---
3  arch/arm/Kconfig                       |    3 ++-
4  arch/arm/mach-orion5x/common.c         |    4 +++-
5  include/asm-arm/arch-orion5x/orion5x.h |    5 +++--
6  3 files changed, 8 insertions(+), 4 deletions(-)
7
8 --- a/arch/arm/Kconfig
9 +++ b/arch/arm/Kconfig
10 @@ -385,7 +385,8 @@
11         select PLAT_ORION
12         help
13           Support for the following Marvell Orion 5x series SoCs:
14 -         Orion-1 (5181), Orion-NAS (5182), Orion-2 (5281.)
15 +         Orion-1 (5181), Orion-VoIP (5181L), Orion-NAS (5182),
16 +         Orion-2 (5281.)
17  
18  config ARCH_PNX4008
19         bool "Philips Nexperia PNX4008 Mobile"
20 --- a/arch/arm/mach-orion5x/common.c
21 +++ b/arch/arm/mach-orion5x/common.c
22 @@ -394,8 +394,10 @@
23         } else if (*dev == MV88F5181_DEV_ID) {
24                 if (*rev == MV88F5181_REV_B1) {
25                         *dev_name = "MV88F5181-Rev-B1";
26 +               } else if (*rev == MV88F5181L_REV_A1) {
27 +                       *dev_name = "MV88F5181L-Rev-A1";
28                 } else {
29 -                       *dev_name = "MV88F5181-Rev-Unsupported";
30 +                       *dev_name = "MV88F5181(L)-Rev-Unsupported";
31                 }
32         } else {
33                 *dev_name = "Device-Unknown";
34 --- a/include/asm-arm/arch-orion5x/orion5x.h
35 +++ b/include/asm-arm/arch-orion5x/orion5x.h
36 @@ -2,7 +2,7 @@
37   * include/asm-arm/arch-orion5x/orion5x.h
38   *
39   * Generic definitions of Orion SoC flavors:
40 - *  Orion-1, Orion-NAS, Orion-VoIP, and Orion-2.
41 + *  Orion-1, Orion-VoIP, Orion-NAS, and Orion-2.
42   *
43   * Maintainer: Tzachi Perelstein <tzachi@marvell.com>
44   *
45 @@ -63,9 +63,10 @@
46  /*******************************************************************************
47   * Supported Devices & Revisions
48   ******************************************************************************/
49 -/* Orion-1 (88F5181) */
50 +/* Orion-1 (88F5181) and Orion-VoIP (88F5181L) */
51  #define MV88F5181_DEV_ID       0x5181
52  #define MV88F5181_REV_B1       3
53 +#define MV88F5181L_REV_A1      9
54  /* Orion-NAS (88F5182) */
55  #define MV88F5182_DEV_ID       0x5182
56  #define MV88F5182_REV_A2       2