This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

FEC driver (MPC860T) - minor bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]