davinci: DA850/OMAP-L138 EVM: implement autodetect of RMII PHY
authorSekhar Nori <nsekhar@ti.com>
Wed, 21 Oct 2009 15:48:22 +0000 (21:18 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 25 Nov 2009 18:21:35 +0000 (10:21 -0800)
commitbae105879f2f2404155da6f50b3636193d228a62
tree8e6e73a218a3a77680598ecba8334cd2f510f303
parentb5ebe4e198e595cad412a9de2d7b253693545d30
davinci: DA850/OMAP-L138 EVM: implement autodetect of RMII PHY

Implement autodetection of RMII PHY by shifting the decision
to use the RMII PHY to da850_evm_ui_expander_setup() from
da850_evm_init() earlier.

Without this patch, selecting RMII PHY in the UI expander menu
will make the MII PHY unusable even though UI board is not
connected.

The actual configuration and registration of the EMAC device
is delayed to device_initcall() so it happens after the UI card
detection is complete.

A side effect of this patch is the removal of a voilation of
Documentation/SubmittingPatches section 2.2 in function
da850_evm_init()

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