arm: mvebu: Change network init code to allow a more flexible setup
authorStefan Roese <sr@denx.de>
Sat, 25 Apr 2015 04:29:52 +0000 (06:29 +0200)
committerLuka Perkov <luka.perkov@sartura.hr>
Tue, 5 May 2015 12:31:49 +0000 (14:31 +0200)
commitcae9008f69ab07b6faf75ebd0167ef06b8ebaf99
tree64ab9edc376146b81ecbba940cc47b5f4b94ba79
parent9c6d3b7b666b949a5015146a6539b468fbbf451f
arm: mvebu: Change network init code to allow a more flexible setup

With the introduction of the Armada 38x support, its necessary to change
the mvneta ethernet driver init call from always 4 times to a
configurable value. Lets make this init call more flexible by moving
the actually used devices to the config header.

Additionally this patch takes care of the slightly different base
addresses for the ethernet controllers on A38x.

Signed-off-by: Stefan Roese <sr@denx.de>
Tested-by: Kevin Smith <kevin.smith@elecsyscorp.com>
Tested-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
arch/arm/mach-mvebu/cpu.c
board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
include/configs/db-mv784mp-gp.h
include/configs/maxbcm.h