public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] fec structure errors?
@ 2005-03-16 23:58 NZG
  2005-03-17  3:45 ` Zachary Landau
  0 siblings, 1 reply; 2+ messages in thread
From: NZG @ 2005-03-16 23:58 UTC (permalink / raw)
  To: u-boot

Got u-boot up on the 5282, but the ethernet isn't working, I'm debugging it 
and it seems really weird.

Is it just me or is the fec structure in immap_5282.h incorrect?

On page 374 of the Coldfire manual it gives a memory map of the registers.

The first thing I noticed is that the ethernet controller register (ECR) is 
located at offset 0x1024 in the manual, but appears to be at offset 0x1000 in 
the structure

ypedef struct fec {
 uint fec_ecntrl;  /* ethernet control register  */
 uint fec_ievent;  /* interrupt event register  */
 uint fec_imask;  /* interrupt mask register  */
 uint fec_ivec;  /* interrupt level and vector status */
 uint fec_r_des_active; /* Rx ring updated flag   */
 uint fec_x_des_active; /* Tx ring updated flag   */
 uint res3[10];  /* reserved    */
.............

Has anyone gotten the fec to work with u-boot with the 5282?
Is it possible the structure is wrong?

thx,
NZG.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-17  3:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-16 23:58 [U-Boot-Users] fec structure errors? NZG
2005-03-17  3:45 ` Zachary Landau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox