This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
FEC driver (MPC860T) - minor bug
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] FEC driver (MPC860T) - minor bug
- From: Christoph Csebits <christoph dot csebits at frequentis dot com>
- Date: Tue, 26 Jun 2001 15:37:56 +0200
hi
perhaps there is a bug in if_fec.c (CVS snapshot 12Jun2001):
asm volatile ("mfspr %0,638 \n\t" : "=r" (proc_rev) : );
#define PROC_REVB 0x0020
if ((proc_rev & 0x0000FFFF) == PROC_REVB) {
eppc->pio_pddir = 0x1C58;
} else {
eppc->pio_pddir = 0x1FFF;
}
Reading from PowerPC SPR 638 gives the
Internal Memory Mapping Register (IMMR).
I think SPR 287, the Processor
Version Register (PVR) is the right one
for determining the revision number.
(if this is what the code above should do)
regards, christoph
--
cd /pub
more beer