davinci: DA850/OMAP-L138 EVM: simplify configuration of emac in MII/RMII mode
authorSekhar Nori <nsekhar@ti.com>
Wed, 21 Oct 2009 15:48:24 +0000 (21:18 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 25 Nov 2009 18:21:36 +0000 (10:21 -0800)
commit17fadd9a5edfeef15ea0e06822a25cc073d9ee02
tree3248df919cadac7654900a4083765d447b1d0e86
parent797d799ed09bbbfd13f684756bccafbbd44ffcd0
davinci: DA850/OMAP-L138 EVM: simplify configuration of emac in MII/RMII mode

There are multiple steps in configuring the EMAC to MII or RMII mode.
Current code implements them using multiple checks.

Consolidate the multiple checks into a single if construct.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/board-da850-evm.c