]> git.sur5r.net Git - u-boot/commit
p1022ds: fix switching of DIU/LBC signals
authorTimur Tabi <timur@freescale.com>
Fri, 3 Dec 2010 19:03:45 +0000 (13:03 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 13 Dec 2010 16:05:51 +0000 (10:05 -0600)
commitfdb9482b42c28d314317ea0118181b1f32a7c689
treed2e582477c7be74c9eec497e2a186b05cfc9af43
parent2c1764efc2872fc944d0d580e911168c0a231f8c
p1022ds: fix switching of DIU/LBC signals

On the P1022, the pins which drive the video display (DIU) are muxed with the
local bus controller (LBC), so if the DIU is active, the pins need to be
temporarily muxed to LBC whenever accessing NOR flash.

The code which handled this transition is checking and changing the wrong
bits in PMUXCR.

Also add a follow-up read after a write to NOR flash if we're going to
mux back to DIU after the write, as described in the P1022 RM.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/p1022ds/diu.c