From: nafiton <jose.ferreiro@horushardware.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] IMMAP M5282 correct?
Date: Wed, 07 Apr 2004 18:12:15 +0200 [thread overview]
Message-ID: <4074285F.9070900@horushardware.com> (raw)
In-Reply-To: <40740F99.7090008@horus.es>
> I am having problems trying to use the net features on a new board
> configuration.
> Is it possible that the include/asm-m68k/immap_5282.h file is wrong?
> It seems to not coincide with Motorola documentation about its FEC
> registers.
>
Well. I don?t know if this is the way to do it. Being a newbie, I must
be missing something because as I see it, it is imposible that it worked
before.
After I rebuild the immap file, the board started transmision but not
received nothing. It was necessary to write the packet length on the FEC
Receive Control Register ( just as it was necesary to do to make dBUG
work - my first step with this new board :-) After it, the TFTP works
very fine (curiosly, far finer then dBUG tftp :-)
Can you see what I am doing awrong?
Thank you
PD: This is the immap_5282.file that get the thing to work:
/* Fast ethernet controller registers
*/
typedef struct fec {
uint res1; /* reserved 1000*/
uint fec_ievent; /* interrupt event register 1004*/
uint fec_imask; /* interrupt mask register 1008*/
uint res2; /* reserved 100c*/
uint fec_r_des_active; /* Rx ring updated flag 1010*/
uint fec_x_des_active; /* Tx ring updated flag 1014*/
uint res3[3]; /* reserved 1018*/
uint fec_ecntrl; /* ethernet control register 1024*/
uint res4[6]; /* reserved 1028*/
uint fec_mii_data; /* MII data register 1040*/
uint fec_mii_speed; /* MII speed control register
1044*/
uint res5[7]; /* reserved 1048*/
uint fec_mibc; /* MIB Control/Status register 1064*/
uint res6[7]; /* reserved 1068*/
uint fec_r_cntrl; /* Rx control register 1084*/
uint res7[15]; /* reserved 1088*/
uint fec_x_cntrl; /* Tx control register 10C4*/
uint res8[7]; /* reserved 10C8*/
uint fec_addr_low; /* lower 32 bits of station address
10E4*/
uint fec_addr_high; /* upper 16 bits of station address +
type field 10E8*/
uint fec_opd; /* opcode + pause duration 10EC*/
uint res9[10]; /* reserved 10F0*/
uint fec_ihash_table_high; /* upper 32-bits of individual hash
table 1118*/
uint fec_ihash_table_low; /* lower 32-bits of individual hash
table 111C*/
uint fec_ghash_table_high; /* upper 32-bits of group hash
table 1120*/
uint fec_ghash_table_low; /* lower 32-bits of group hash
table 1124*/
uint res10[7]; /* reserved 1128*/
uint fec_tfwr; /* Transmit FIFO watermark 1144*/
uint res11; /* reserved 1148*/
uint fec_r_bound; /* FIFO Receive Bound Register = end of
RAM (read-only) ??? 114C*/
uint fec_r_fstart; /* FIFO Receive FIfo Start Registers =
Rx FIFO start address ??? 1150*/
uint res12[11]; /* reserved 1154*/
uint fec_r_des_start; /* beginning of Rx descriptor ring 1180*/
uint fec_x_des_start; /* beginning of Tx descriptor ring 1184*/
uint fec_r_buff_size; /* Rx buffer size 118C*/
} fec_t;
>
next prev parent reply other threads:[~2004-04-07 16:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-07 14:26 [U-Boot-Users] IMMAP M5282 correct? nafiton smith
2004-04-07 16:12 ` nafiton [this message]
2004-04-08 6:24 ` Josef Baumgartner
2004-04-09 20:52 ` Stuart Wood
2004-04-13 7:08 ` Josef Baumgartner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4074285F.9070900@horushardware.com \
--to=jose.ferreiro@horushardware.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.