]> git.dujemihanovic.xyz Git - u-boot.git/commit
Pass in tsec_info struct through tsec_initialize
authorAndy Fleming <afleming@freescale.com>
Sun, 31 Aug 2008 21:33:26 +0000 (16:33 -0500)
committerBen Warren <biggerbadderben@gmail.com>
Wed, 3 Sep 2008 04:18:15 +0000 (21:18 -0700)
commit75b9d4ae0d69f214eab641caf12ce8af83a39a42
tree61614a99bcfc7389d0c337edde151dac29a98af5
parentdd3d1f56a01f460d560766126ee7dfed2ea9bc10
Pass in tsec_info struct through tsec_initialize

The tsec driver contains a hard-coded array of configuration information
for the tsec ethernet controllers.  We create a default function that works
for most tsecs, and allow that to be overridden by board code.  It creates
an array of tsec_info structures, which are then parsed by the corresponding
driver instance to determine configuration.  Also, add regs, miiregs, and
devname fields to the tsec_info structure, so that we don't need the kludgy
"index" parameter.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
cpu/mpc83xx/cpu.c
cpu/mpc85xx/cpu.c
cpu/mpc86xx/cpu.c
drivers/net/tsec.c
include/tsec.h