aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorThibaut VARENE <hacks@slashdirt.org>2017-02-09 23:07:23 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-15 11:28:58 +0100
commitb2044a7f60e789edbe8d4e0f3fd74ef6aaa6be40 (patch)
treee300a9fb2399fbdefbb4cf3cfb156f7db8160f31 /target/linux/ar71xx/files
parent19f42663d294cfd00770e7c6a9048772e074789d (diff)
downloadupstream-b2044a7f60e789edbe8d4e0f3fd74ef6aaa6be40.tar.gz
upstream-b2044a7f60e789edbe8d4e0f3fd74ef6aaa6be40.tar.bz2
upstream-b2044a7f60e789edbe8d4e0f3fd74ef6aaa6be40.zip
ar71xx: add support for RB750r2
This patch adds support for the MikroTik RouterBOARD hEX lite https://routerboard.com/RB750r2 Specifications: - SoC: Qualcomm QCA9531 (850MHz) - RAM: 64MB - Storage: 16MB NOR SPI flash - Ethernet: 5x100M (1 PoE in) This ethernet router is based on the same platform as the hEX PoE lite (it shares the same board identifier), but has no USB and no PoE out. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt1
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c13
2 files changed, 10 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
index 3f4347106f..bc06481e39 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
+++ b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
@@ -930,6 +930,7 @@ config ATH79_MACH_RBSPI
MikroTik RouterBOARD hAP lite
MikroTik RouterBOARD hAP
MikroTik RouterBOARD hEX PoE lite
+ MikroTik RouterBOARD hEX lite
config ATH79_MACH_RBSXTLITE
bool "MikroTik RouterBOARD SXT Lite"
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c
index 81659ef503..c0b27190fe 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c
@@ -5,6 +5,7 @@
* - MikroTik RouterBOARD 941L-2nD
* - MikroTik RouterBOARD 951Ui-2nD
* - MikroTik RouterBOARD 750UP r2
+ * - MikroTik RouterBOARD 750 r2
*
* Copyright (C) 2017 Thibaut VARENE <varenet@parisc-linux.org>
*
@@ -472,18 +473,22 @@ static void __init rb952_setup(void)
}
/*
- * Init the hEX PoE lite hardware.
+ * Init the hEX (PoE) lite hardware.
* The 750UP r2 (hEX PoE lite) is nearly identical to the hAP, only without
- * WLAN.
+ * WLAN. The 750 r2 (hEX lite) is nearly identical to the 750UP r2, only
+ * without USB and POE. It shares the same bootloader board identifier.
*/
static void __init rb750upr2_setup(void)
{
- u32 flags = RBSPI_HAS_WAN4 | RBSPI_HAS_USB |
- RBSPI_HAS_SSR | RBSPI_HAS_POE;
+ u32 flags = RBSPI_HAS_WAN4 | RBSPI_HAS_SSR;
if (rbspi_platform_setup())
return;
+ /* differentiate the hEX lite from the hEX PoE lite */
+ if (strstr(mips_get_machine_name(), "750UP r2"))
+ flags |= RBSPI_HAS_USB | RBSPI_HAS_POE;
+
rbspi_952_750r2_setup(flags);
}