xref: /openbmc/u-boot/doc/README.fec_mxc (revision 95c69223f99425ec1a91ca0cb18b7ecadfba3a5d)
1c30eab2dSTroy KiskyU-boot config options used in fec_mxc.c
2c30eab2dSTroy Kisky
3c30eab2dSTroy KiskyCONFIG_FEC_MXC
4*95c69223SOlaf Mandel	Selects fec_mxc.c to be compiled into u-boot. Can read out the
5*95c69223SOlaf 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.
29*95c69223SOlaf Mandel
30*95c69223SOlaf Mandel
31*95c69223SOlaf MandelReading the ethaddr from the SoC eFuses:
32*95c69223SOlaf Mandelif CONFIG_FEC_MXC is defined and the U-Boot environment does not contain the
33*95c69223SOlaf Mandelethaddr variable, then its value gets read from the corresponding eFuses in
34*95c69223SOlaf Mandelthe SoC. See the README files of the specific SoC for details.
35