u-boot/drivers/net/fm
Priyanka Jain 2ee6c52e22 driver/net/fm/memac_phy: Initialize mdio_clock for SoCs wih FMANv3
MDIO clock needs to be initialized in u-boot code for SoCs
having FMAN-v3(v3H or v3L) controller due to below reasons

-On SoCs that have FMAN-v3H  like B4860, default value of
MDIO_CLK_DIV bits in mdio_stat(mdio_cfg) register generates
mdio clock too high (much higher than 2.5MHz), violating the
IEEE specs.
-On SOCs that have FMAN-v3L like T1040, default value of
MDIO_CLK_DIV bits is zero, so MDIO clock is disabled.

So, for proper functioninig of MDIO, MDIO_CLK_DIV bits needs to
be properly initialized.
Also this type of initialization is generally done in
PBI(pre-bootloader) phase using rcw.But for chips like T1040
which support deep-sleep, such type of initialization cannot be
done in PBI phase due to the limitation that during deep-sleep
resume, FMAN (MDIO) registers are not accessible in PBI phase.
So, mdio clock initailization must be done as part of u-boot.

This initialization code is implemented in memac_phy.c which
gets compiled only for SoCs having FMANv3, so no extra compilation
flag is required.

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
2014-04-22 17:58:49 -07:00
..
b4860.c net/fman: add a fm_enable_port function 2013-10-24 09:35:59 -07:00
dtsec.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
eth.c net/fman: Add support for 10GEC3 and 10GEC4 2013-11-25 11:43:47 -08:00
fm.c QE/FMAN: modify CONFIG_SYS_QE_FMAN_FW_ADDR to CONFIG_SYS_FMAN_FW_ADDR and CONFIG_SYS_QE_FW_ADDR 2014-04-22 17:58:47 -07:00
fm.h net/fman: Add support for 10GEC3 and 10GEC4 2013-11-25 11:43:47 -08:00
init.c net/fm: revert commit 732dfe090d 2014-01-21 14:05:52 -08:00
Makefile powerpc/mpc85xx: Add T2080/T2081 SoC support 2013-11-25 11:44:25 -08:00
memac.c powerpc/t4240: add QSGMII interface support 2013-08-20 10:46:48 -07:00
memac_phy.c driver/net/fm/memac_phy: Initialize mdio_clock for SoCs wih FMANv3 2014-04-22 17:58:49 -07:00
p1023.c net/fman: add a fm_enable_port function 2013-10-24 09:35:59 -07:00
p4080.c net/fman: add a fm_enable_port function 2013-10-24 09:35:59 -07:00
p5020.c net/fman: add a fm_enable_port function 2013-10-24 09:35:59 -07:00
p5040.c net/fman: add a fm_enable_port function 2013-10-24 09:35:59 -07:00
t1040.c boards/t1040qds: Adds ethernet support for T1040 2014-02-03 08:38:48 -08:00
t2080.c powerpc/t2080qds: some update for t2080qds 2014-01-21 13:37:41 -08:00
t4240.c net/fman: add a fm_enable_port function 2013-10-24 09:35:59 -07:00
tgec.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
tgec_phy.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00