oxnas: drop 3.14 support
[openwrt.git] / target / linux / octeon / patches-3.14 / 100-ubnt_edgerouter2_support.patch
1 --- a/arch/mips/include/asm/octeon/cvmx-bootinfo.h
2 +++ b/arch/mips/include/asm/octeon/cvmx-bootinfo.h
3 @@ -228,6 +228,8 @@ enum cvmx_board_types_enum {
4          */
5         CVMX_BOARD_TYPE_CUST_PRIVATE_MIN = 20001,
6         CVMX_BOARD_TYPE_UBNT_E100 = 20002,
7 +       CVMX_BOARD_TYPE_UBNT_E200 = 20003,
8 +       CVMX_BOARD_TYPE_UBNT_E220 = 20005,
9         CVMX_BOARD_TYPE_CUST_PRIVATE_MAX = 30000,
10  
11         /* The remaining range is reserved for future use. */
12 @@ -327,6 +329,8 @@ static inline const char *cvmx_board_typ
13                     /* Customer private range */
14                 ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_PRIVATE_MIN)
15                 ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_UBNT_E100)
16 +               ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_UBNT_E200)
17 +               ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_UBNT_E220)
18                 ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_PRIVATE_MAX)
19         }
20         return "Unsupported Board";
21 --- a/arch/mips/cavium-octeon/executive/cvmx-helper-board.c
22 +++ b/arch/mips/cavium-octeon/executive/cvmx-helper-board.c
23 @@ -186,6 +186,8 @@ int cvmx_helper_board_get_mii_address(in
24                         return 7 - ipd_port;
25                 else
26                         return -1;
27 +       case CVMX_BOARD_TYPE_UBNT_E200:
28 +               return -1;
29         }
30  
31         /* Some unknown board. Somebody forgot to update this function... */