From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Sat, 25 Sep 2010 14:54:04 +0200 Subject: [U-Boot] [PATCH v4] p1022ds: use weak CFI flash accessors when DIU is enabled In-Reply-To: <1285419082-5294-1-git-send-email-agust@denx.de> References: <1284672944-20033-1-git-send-email-timur@freescale.com> <1285419082-5294-1-git-send-email-agust@denx.de> Message-ID: <20100925145404.22a1881d@wker> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, 25 Sep 2010 14:51:22 +0200 Anatolij Gustschin wrote: > From: Timur Tabi > > On the Freescale P1022, the DIU and the LBC share address pins, which means > that when the DIU is active (e.g. the console is on the DVI display), NOR flash > cannot be accessed. So we use the weak accessor function feature of the CFI > flash code to temporarily switch the pin mux from DIU to LBC whenever we want > to read or write flash. This has a significant performance penalty, but it's > the only way to make it work. > > This change allows the 'saveenv' command to work when the video display is > enabled. Erasing flash and writing to flash (with the 'cp' command) works, > but reading from flash (with the 'md' and 'cp' commands) does not. Also, while > flash is being written, the video display will be blank. > > Signed-off-by: Timur Tabi > Signed-off-by: Anatolij Gustschin > --- > v4: > - rebased on current u-boot-video/next > > board/freescale/p1022ds/diu.c | 208 +++++++++++++++++++++++++++++++++++++++-- > include/configs/P1022DS.h | 6 + > 2 files changed, 207 insertions(+), 7 deletions(-) Applied to u-boot-video/next. Anatolij