diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-07-10 20:14:54 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-10 20:14:54 +0000 |
commit | 96c1dae44cdd6fc127a63e182cbf161df8c75439 (patch) | |
tree | d1b7ea4406143ddf176d0f1e9d454a2f0875a229 | |
parent | fb6da76b116ea53b7313cdf1a82fb401880080fb (diff) | |
download | upstream-96c1dae44cdd6fc127a63e182cbf161df8c75439.tar.gz upstream-96c1dae44cdd6fc127a63e182cbf161df8c75439.tar.bz2 upstream-96c1dae44cdd6fc127a63e182cbf161df8c75439.zip |
octeon: add basic board detection for UBNT EdgeRouter PRO
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41572 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/octeon/patches-3.10/100-ubnt_edgerouter2_support.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/octeon/patches-3.10/100-ubnt_edgerouter2_support.patch b/target/linux/octeon/patches-3.10/100-ubnt_edgerouter2_support.patch new file mode 100644 index 0000000000..7891e7129a --- /dev/null +++ b/target/linux/octeon/patches-3.10/100-ubnt_edgerouter2_support.patch @@ -0,0 +1,31 @@ +--- a/arch/mips/include/asm/octeon/cvmx-bootinfo.h ++++ b/arch/mips/include/asm/octeon/cvmx-bootinfo.h +@@ -228,6 +228,8 @@ enum cvmx_board_types_enum { + */ + CVMX_BOARD_TYPE_CUST_PRIVATE_MIN = 20001, + CVMX_BOARD_TYPE_UBNT_E100 = 20002, ++ CVMX_BOARD_TYPE_UBNT_E200 = 20003, ++ CVMX_BOARD_TYPE_UBNT_E220 = 20005, + CVMX_BOARD_TYPE_CUST_PRIVATE_MAX = 30000, + + /* The remaining range is reserved for future use. */ +@@ -327,6 +329,8 @@ static inline const char *cvmx_board_typ + /* Customer private range */ + ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_PRIVATE_MIN) + ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_UBNT_E100) ++ ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_UBNT_E200) ++ ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_UBNT_E220) + ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_PRIVATE_MAX) + } + return "Unsupported Board"; +--- a/arch/mips/cavium-octeon/executive/cvmx-helper-board.c ++++ b/arch/mips/cavium-octeon/executive/cvmx-helper-board.c +@@ -186,6 +186,8 @@ int cvmx_helper_board_get_mii_address(in + return 7 - ipd_port; + else + return -1; ++ case CVMX_BOARD_TYPE_UBNT_E200: ++ return -1; + } + + /* Some unknown board. Somebody forgot to update this function... */ |