<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>u-boot/linux MPC8xx PCMCIA woes</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<P><FONT SIZE=2>Any MPC8xx PCMCIA experts out there?<BR>
<BR>
I have a problem I was hoping someone can help me out with.<BR>
<BR>
My hardware is very similar to the MPC885ADS (DUET) board.<BR>
<BR>
I have the PCMCIA interface working fine in Linux 2.4.26<BR>
<BR>
I have recently enabled the PCMCIA support in u-boot. It also<BR>
seems to be working just fine.<BR>
<BR>
My problem is, that once I enabled PCMCIA in u-boot, when Linux<BR>
comes up, my hardware hangs in the Linux PCMCIA initialization<BR>
code.<BR>
<BR>
I have traced the hang down to an instruction in _fpqpcmcia_reset()<BR>
which is in the file .....kernel/drivers/pcmcia/pqpcmcia.c<BR>
<BR>
The following code snipet shows where the hang occurs:<BR>
<BR>
/* reset the mem/io windows */<BR>
/*<BR>
01 mem_win slot_A<BR>
...<BR>
0N mem-win slot_A<BR>
01 io-win slot_A<BR>
...<BR>
0N io-win slot_A<BR>
01 mem-win slot_B<BR>
...<BR>
0N mem-win slot_B<BR>
01 io-win slot_B<BR>
...<BR>
0N io-win slot_B<BR>
*/<BR>
for ( i = p_ctx->first_mem_win; i < (p_ctx->first_mem_win +<BR>
p_ctx->mem_wins_num); i++ )<BR>
{<BR>
p_ctx->REGS->win[i].pbr = 0; /******************* HANGS HERE **********/<BR>
p_ctx->REGS->win[i].por = 0;<BR>
}<BR>
for ( i = p_ctx->first_io_win; i < (p_ctx->first_io_win + p_ctx->io_wins_num); i++ )<BR>
{<BR>
p_ctx->REGS->win[i].pbr = 0;<BR>
p_ctx->REGS->win[i].por = 0;<BR>
}<BR>
<BR>
I've tried doing a reset of the PCMCIA (*p_ctx->pgcr = Q_PCMCIA_PGCRX_CXRESET;)<BR>
in various places before this Linux initialization takes place, but it<BR>
just causes kernel crashes. I've also tried doing the reset earlier<BR>
on. I'm kind of stumped on this one. Is there a way to get the PCMCIA<BR>
into the state it was at reset, without resetting?<BR>
<BR>
I was hoping to fix this problem without becoming a ppc PCMCIA guru.<BR>
I am using the MPC870. Does this ring a bell with anyone here?<BR>
<BR>
Regards,<BR>
- Mike </FONT>
</P>
</BODY>
</HTML>