MIPS: ath79: add tplink-mr3020 board support
This board support code can be used for TP-LINK WR703 too. TP-LINK WR703 is very similar to TP-LINK MR3020, there are some non-essential differences: * WR703 is smaller and cheaper; * WR703 has only one led, but MR3020 has five leds; * MR3020 uses mini-USB connector, WR703 uses micro-USB connector. See https://forum.openwrt.org/viewtopic.php?id=45159 for details. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
0b7f8d996d
commit
6839863a85
|
@ -79,6 +79,7 @@ machine-$(CONFIG_MACH_MIPS_AR231X) := ar231x
|
|||
board-$(CONFIG_BOARD_NETGEAR_WG102) := netgear-wg102
|
||||
|
||||
machine-$(CONFIG_MACH_MIPS_ATH79) := ath79
|
||||
board-$(CONFIG_BOARD_TPLINK_MR3020) := tplink-mr3020
|
||||
|
||||
machine-$(CONFIG_MACH_MIPS_BCM47XX) := bcm47xx
|
||||
board-$(CONFIG_BOARD_DLINK_DIR320) := dlink-dir-320
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
obj-y += board.o
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (C) 2014 Antony Pavlov <antonynpavlov@gmail.com>
|
||||
*
|
||||
* This file is part of barebox.
|
||||
* See file CREDITS for list of people who contributed to this project.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <init.h>
|
||||
|
||||
static int model_hostname_init(void)
|
||||
{
|
||||
barebox_set_hostname("mr3020");
|
||||
|
||||
return 0;
|
||||
}
|
||||
postcore_initcall(model_hostname_init);
|
|
@ -0,0 +1,16 @@
|
|||
/dts-v1/;
|
||||
|
||||
#include <ar9331.dtsi>
|
||||
|
||||
/ {
|
||||
model = "TP-LINK MR3020";
|
||||
compatible = "tplink,mr3020";
|
||||
|
||||
memory {
|
||||
reg = <0x00000000 0x2000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&serial0 {
|
||||
status = "okay";
|
||||
};
|
|
@ -4,4 +4,12 @@ config ARCH_TEXT_BASE
|
|||
hex
|
||||
default 0xa0800000
|
||||
|
||||
choice
|
||||
prompt "Board type"
|
||||
|
||||
config BOARD_TPLINK_MR3020
|
||||
bool "TP-LINK MR3020"
|
||||
|
||||
endchoice
|
||||
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue