Skip to contentSkip to conversation

NAND on mpc8360erdk

U-Boot Renaud barbier 3 participants 4 messages Apr 22, 2009 – Apr 23, 2009

lore
Share & tools
lore
#0 lore raw

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();
}
#1 lore raw

Hi,

Quoted 4 lines · Renaud barbier

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.

Quoted 1 line

Is that board specific?

No.

Anatolij

#3 lore raw

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

Quoted 9 lines · Wolfgang Grandegger
Quoted 2 lines · Renaud barbier

I am in the middle of NAND debugging on a MPC8544 based system.

BTW: also the TQM8548 module uses FSL UPM NAND.

Wolfgang.