* [U-Boot-Users] FEC not working : ep852
@ 2005-10-25 13:52 gautam borad
0 siblings, 0 replies; only message in thread
From: gautam borad @ 2005-10-25 13:52 UTC (permalink / raw)
To: u-boot
Hi,
I'm having problem bringing up FEC on ep852 board with LXT971A
transceiver.I get the "Unable to discover phy!" "No PHY device found"
message, and then "TX not ready" and "TX timeout". The dump displays
"Net: FEC ETHERNET" .
I'm using u-boot 1.1.2.
Some of the #defines from the config file :
#define CONFIG_SERIAL_MULTI
#define CONFIG_FEC_ENET 1
#define CONFIG_NET_MULTI 1
#define CONFIG_ETHER_ON_FEC1
#if defined(CONFIG_ETHER_ON_FEC1)
# define FEC_ENET 1
# define CONFIG_MII 1
# define CONFIG_FEC1_PHY (-1) /* Detect PHY ID */
#endif /* CONFIG_ETHER_ON_FEC1 */
#undef CONFIG_SCC3_ENET
#if defined(CONFIG_MII)
# define CFG_ADD_MII_CMD CFG_CMD_MII
#else
# define CFG_ADD_MII_CMD 0
#endif
#define CFG_DISCOVER_PHY /* FEC Ethernet */
#define CONFIG_8xx_CONS_SMC1
Do I need to modify u-boot.lds file?( I dont thinks so).Is something
wrong with the clks if so where do i modify them?
The eth_init() function also fails. It says " Trying FEC ETHERNET" and
then "FAIL"
I'm enabling fec in board_early_init_f() like this:
#if defined(FEC_ENET)
*((volatile uchar *) BCSR2) |= BCSR2_MIIRST | BCSR2_MIIPWRDWN |
BCSR2_FIRQ_EN;
where:
BCSR2 = 0xFA400002
BCSR2_MIIRST = 0x80
BCSR2_MIIPWRDWN = 0x40
BCSR2_FIRQ_EN = 0x20
I dont see any problem in the above #defines but still fec is not
working. Plz help.
Thanks in advance.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-25 13:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-25 13:52 [U-Boot-Users] FEC not working : ep852 gautam borad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox