From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4] p1022ds: use weak CFI flash accessors when DIU is enabled
Date: Sat, 25 Sep 2010 14:54:04 +0200 [thread overview]
Message-ID: <20100925145404.22a1881d@wker> (raw)
In-Reply-To: <1285419082-5294-1-git-send-email-agust@denx.de>
On Sat, 25 Sep 2010 14:51:22 +0200
Anatolij Gustschin <agust@denx.de> wrote:
> From: Timur Tabi <timur@freescale.com>
>
> 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 <timur@freescale.com>
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
> 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
prev parent reply other threads:[~2010-09-25 12:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-16 21:35 [U-Boot] [PATCH] [v3] p1022ds: use weak CFI flash accessors when DIU is enabled Timur Tabi
2010-09-17 2:27 ` [U-Boot] [u-boot-release] [PATCH] [v3] p1022ds: use weak CFI flash accessorswhen " Jaggi Manish-B10520
2010-09-17 2:51 ` Tabi Timur-B04825
2010-09-17 19:10 ` Scott Wood
2010-09-25 12:51 ` [U-Boot] [PATCH v4] p1022ds: use weak CFI flash accessors when " Anatolij Gustschin
2010-09-25 12:54 ` Anatolij Gustschin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100925145404.22a1881d@wker \
--to=agust@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox