100-ubnt_edgerouter2_support.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  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_DSR1000N = 20006,
  10. CVMX_BOARD_TYPE_CUST_PRIVATE_MAX = 30000,
  11. @@ -328,6 +330,8 @@ static inline const char *cvmx_board_typ
  12. /* Customer private range */
  13. ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_PRIVATE_MIN)
  14. ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_UBNT_E100)
  15. + ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_UBNT_E200)
  16. + ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_UBNT_E220)
  17. ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_DSR1000N)
  18. ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_PRIVATE_MAX)
  19. }
  20. --- a/arch/mips/cavium-octeon/executive/cvmx-helper-board.c
  21. +++ b/arch/mips/cavium-octeon/executive/cvmx-helper-board.c
  22. @@ -195,6 +195,8 @@ int cvmx_helper_board_get_mii_address(in
  23. return 8;
  24. else
  25. return -1;
  26. + case CVMX_BOARD_TYPE_UBNT_E200:
  27. + return -1;
  28. }
  29. /* Some unknown board. Somebody forgot to update this function... */