DaVinci: EMAC: Get EMAC_MDIO_PHY_NUM from config files
authorPrakash PM <prakash.pm@ti.com>
Tue, 22 Jun 2010 14:24:43 +0000 (10:24 -0400)
committerSandeep Paulraj <s-paulraj@ti.com>
Tue, 22 Jun 2010 14:24:43 +0000 (10:24 -0400)
commite6441c4f4070aac6825f5b195f38dfe1da53675c
tree5017cb0444a9f4cd82d5a0523459bc9728e3a245
parent54e19a7ded6e9dbdc3392a57d82f4f77b34e85b8
DaVinci: EMAC: Get EMAC_MDIO_PHY_NUM from config files

Currently EMAC_MDIO_PHY_NUM is defined as 1 in emac_defs.h.
Because of this, EMAC does not work on EVMs which do not have phy
connected at 1. Moving the macro to board config file makes this
configurable depending on where the phy is connected on the MDIO bus.

This patch fixes the board reset issue observed during network access
on DM365EVM. EMAC driver was assuming EMAC_MDIO_PHY_NUM as 1
but it is 0 on DM365EVM.

This patch is verified on da830/omap-l137, dm365 and dm644x evms.

Signed-off-by: Prakash PM <prakash.pm@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
arch/arm/include/asm/arch-davinci/emac_defs.h
include/configs/da830evm.h
include/configs/davinci_dm365evm.h
include/configs/davinci_dvevm.h
include/configs/davinci_schmoogie.h
include/configs/davinci_sffsdr.h
include/configs/davinci_sonata.h