xref: /openbmc/u-boot/doc/README.fec_mxc (revision 4711e7f7af839b41a6d78490257a9e7975494dd3)
1a187559eSBin MengU-Boot config options used in fec_mxc.c
2c30eab2dSTroy Kisky
3c30eab2dSTroy KiskyCONFIG_FEC_MXC
495c69223SOlaf Mandel	Selects fec_mxc.c to be compiled into u-boot. Can read out the
595c69223SOlaf Mandel	ethaddr from the SoC eFuses (see below).
6c30eab2dSTroy Kisky
7c30eab2dSTroy KiskyCONFIG_MII
8c30eab2dSTroy Kisky	Must be defined if CONFIG_FEC_MXC is defined.
9c30eab2dSTroy Kisky
10c30eab2dSTroy KiskyCONFIG_FEC_XCV_TYPE
11c30eab2dSTroy Kisky	Defaults to MII100 for 100 Base-tx.
12c30eab2dSTroy Kisky	RGMII selects 1000 Base-tx reduced pin count interface.
13c30eab2dSTroy Kisky	RMII selects 100 Base-tx reduced pin count interface.
14c30eab2dSTroy Kisky
15c30eab2dSTroy KiskyCONFIG_FEC_MXC_SWAP_PACKET
16c30eab2dSTroy Kisky	Forced on iff MX28.
17c30eab2dSTroy Kisky	Swaps the bytes order of all words(4 byte units) in the packet.
18c30eab2dSTroy Kisky	This should not be specified by a board file. It is cpu specific.
19c30eab2dSTroy Kisky
20c30eab2dSTroy KiskyCONFIG_PHYLIB
21c30eab2dSTroy Kisky	fec_mxc supports PHYLIB and should be used for new boards.
22c30eab2dSTroy Kisky
23c30eab2dSTroy KiskyCONFIG_FEC_MXC_NO_ANEG
24c30eab2dSTroy Kisky	Relevant only if PHYLIB not used. Skips auto-negotiation restart.
25c30eab2dSTroy Kisky
26c30eab2dSTroy KiskyCONFIG_FEC_MXC_PHYADDR
27c30eab2dSTroy Kisky	Optional, selects the exact phy address that should be connected
28c30eab2dSTroy Kisky	and function fecmxc_initialize will try to initialize it.
2995c69223SOlaf Mandel
30*0750701aSHannes SchmelzerCONFIG_FEC_FIXED_SPEED
31*0750701aSHannes Schmelzer	Optional, selects a fixed speed on the MAC interface without asking some
32*0750701aSHannes Schmelzer	phy. This is usefull if there is a direct MAC <-> MAC connection, for
33*0750701aSHannes Schmelzer	example if the CPU is connected directly via the RGMII interface to a
34*0750701aSHannes Schmelzer	ethernet-switch.
3595c69223SOlaf Mandel
3695c69223SOlaf MandelReading the ethaddr from the SoC eFuses:
3795c69223SOlaf Mandelif CONFIG_FEC_MXC is defined and the U-Boot environment does not contain the
3895c69223SOlaf Mandelethaddr variable, then its value gets read from the corresponding eFuses in
3995c69223SOlaf Mandelthe SoC. See the README files of the specific SoC for details.
40