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

* [U-Boot-Users] fec structure errors?
  2005-03-16 23:58 [U-Boot-Users] fec structure errors? NZG
@ 2005-03-17  3:45 ` Zachary Landau
  0 siblings, 0 replies; 2+ messages in thread
From: Zachary Landau @ 2005-03-17  3:45 UTC (permalink / raw)
  To: u-boot

On Wed, 16 Mar 2005 17:58:11 -0600, NZG <ngustavson@emacinc.com> wrote:
> 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?

It is not just you, the config is wrong.  Take a look at the
immap_5282.h included in the tarball I sent you.

Also, if you still have problems, make sure you setup the timers
correctly on the coldfire.  There are various delays in the ethernet
code that won't delay at all with the original 5282 code.

If anyone else needs it, the rough 5282 support I implemented is
available here[1] for now.  It needs work and is in no way official,
but it works for me on the 5282 uCdimm.

[1] http://kapheine.hypa.net/tmp/u-boot-5282.tar.bz2

-- 
Zachary P. Landau <kapheine@gmail.com>

^ 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