]> git.sur5r.net Git - u-boot/commit
fsl_upm: Add MxMR/MDR synchronization
authorJohn Schmoller <jschmoller@xes-inc.com>
Thu, 2 Dec 2010 17:43:10 +0000 (11:43 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 13 Dec 2010 15:32:15 +0000 (09:32 -0600)
commit9fd84915a92058b775fcc8fad4ab4e59fe51cf17
tree4c08894e72fa0a94d71365391ac9d8db226795f6
parent72c96a6802d9b1c949785d1d152f8bc8666c753d
fsl_upm: Add MxMR/MDR synchronization

According to Freescale reference manuals (eg section "13.4.4.2
Programming the UPMs" of the P4080 Reference Manual):

"Since the result of any update to the MxMR/MDR register must be in
effect before the dummy read or write to the UPM region, a write to
MxMR/MDR should be followed immediately by a read of MxMR/MDR."

The UPM on a custom P4080-based board did not work without performing
a read of MxMR/MDR after a write.

Signed-off-by: John Schmoller <jschmoller@xes-inc.com>
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/mtd/nand/fsl_upm.c