public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] NAND on mpc8360erdk
@ 2009-04-22 17:47 Renaud barbier
  2009-04-22 18:17 ` Anatolij Gustschin
  2009-04-23  8:54 ` Wolfgang Grandegger
  0 siblings, 2 replies; 4+ messages in thread
From: Renaud barbier @ 2009-04-22 17:47 UTC (permalink / raw)
  To: u-boot

I am in the middle of NAND debugging on a MPC8544 based system.
 
In the following code for the mpc8360erdk, why is there
the instruction "out_8(upm->io_addr, 0x0);" in the for loop.
Is that board specific?

static void upm_setup(struct fsl_upm *upm)
{
    int i;

    /* write upm array */
    out_be32(upm->mxmr, MxMR_OP_WARR);

    for (i = 0; i < 64; i++) {
        out_be32(upm->mdr, upm_array[i]);
        out_8(upm->io_addr, 0x0);
    }

    /* normal operation */
    out_be32(upm->mxmr, MxMR_OP_NORM);
    while (in_be32(upm->mxmr) != MxMR_OP_NORM)
        eieio();
}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] NAND on mpc8360erdk
  2009-04-22 17:47 [U-Boot] NAND on mpc8360erdk Renaud barbier
@ 2009-04-22 18:17 ` Anatolij Gustschin
  2009-04-23  8:54 ` Wolfgang Grandegger
  1 sibling, 0 replies; 4+ messages in thread
From: Anatolij Gustschin @ 2009-04-22 18:17 UTC (permalink / raw)
  To: u-boot

Hi,

Renaud barbier wrote:
> I am in the middle of NAND debugging on a MPC8544 based system.
>  
> In the following code for the mpc8360erdk, why is there
> the instruction "out_8(upm->io_addr, 0x0);" in the for loop.

it is a dummy write transaction step of the UPM RAM array
programming algorithm to hit the relevant chip select.
Take a look at section '10.4.4.2 Programming the UPMs' of the
MPC8360E Reference Manual, the steps to write the UPM RAM
array are described there.

> Is that board specific?

No.

Anatolij

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] NAND on mpc8360erdk
  2009-04-22 17:47 [U-Boot] NAND on mpc8360erdk Renaud barbier
  2009-04-22 18:17 ` Anatolij Gustschin
@ 2009-04-23  8:54 ` Wolfgang Grandegger
  2009-04-23 22:08   ` Renaud barbier
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Grandegger @ 2009-04-23  8:54 UTC (permalink / raw)
  To: u-boot

Renaud barbier wrote:
> I am in the middle of NAND debugging on a MPC8544 based system.

BTW: also the TQM8548 module uses FSL UPM NAND.

Wolfgang.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] NAND on mpc8360erdk
  2009-04-23  8:54 ` Wolfgang Grandegger
@ 2009-04-23 22:08   ` Renaud barbier
  0 siblings, 0 replies; 4+ messages in thread
From: Renaud barbier @ 2009-04-23 22:08 UTC (permalink / raw)
  To: u-boot

Thanks. I supposed the NAND on the TQM8548 is connected to the CPU as 
per Freescale Application Note.


Wolfgang Grandegger wrote:
> Renaud barbier wrote:
>   
>> I am in the middle of NAND debugging on a MPC8544 based system.
>>     
>
> BTW: also the TQM8548 module uses FSL UPM NAND.
>
> Wolfgang.
>   

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-23 22:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-22 17:47 [U-Boot] NAND on mpc8360erdk Renaud barbier
2009-04-22 18:17 ` Anatolij Gustschin
2009-04-23  8:54 ` Wolfgang Grandegger
2009-04-23 22:08   ` Renaud barbier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox