ramips: add HAME MPR-A2 support

This patch adds support for HAME MPR-A2 router using a DTS file.
The platform is Ralink RT5350.
http://wiki.openwrt.org/toh/hame/mpr-a2

Signed-off-by: Dmitry Shmygov <shmygov@rambler.ru>

SVN-Revision: 36898
This commit is contained in:
John Crispin
2013-06-10 08:24:56 +00:00
parent 30786d2dd0
commit fc9532aeaa
11 changed files with 174 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ preinit_set_mac_address() {
dir-620-a1 |\
esr-9753 |\
freestation5 |\
mpr-a2 | \
nw718 |\
psr-680w |\
rt-n56u |\

View File

@@ -6,6 +6,18 @@
. /lib/ramips.sh
ramips_set_preinit_iface() {
local board=$(ramips_board_name)
case "$board" in
mpr-a2)
#TODO
# Ralink ethernet driver cannot re-open ethernet if it is opened during preinit and then closed.
# Looks like Ralink ethernet driver has a problem.
# Temporary solution is not to open ethernet during preinit.
return 0
;;
esac
ifname=eth0
}