All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] "stacked" memory mapped flash assisted with GPIOs
Date: Mon, 21 Jan 2008 08:01:48 -0500	[thread overview]
Message-ID: <200801210801.49358.vapier@gentoo.org> (raw)
In-Reply-To: <20080121130006.1fc7b5ce@dhcp-252-066.norway.atmel.com>

On Monday 21 January 2008, Haavard Skinnemoen wrote:
> Mike Frysinger <vapier@gentoo.org> wrote:
> > - have memory display / flash write commands toggle the GPIO lines
> >  * pros: user interface is transparent and not confusing by making it
> > seem like 1 flash exists (think software raid 0).  able to use 1 write
> > command and the lower layers will automatically split it across multiple
> > flashes.  should work with multiple types of flashes.
> >  * cons: requires modification to cmd_mem.c and cfi_flash.c.
>
> Wouldn't it be enough to just modify the blackfin-specific implementation
> of map_physmem() and unmap_physmem()? Just use some of the physical
> address bits to toggle the necessary GPIO lines and return a suitable
> pointer into the 4MB memory window.

i'm working with u-boot-1.1.6 at the moment (will probably be syncing to 
mainline in the next month or two) so i didnt see these hooks added to the 
cfi_flash.c driver.

that would allow board porters to select an arbitrary address and say "if you 
wish to erase/write the flash in a contiguous manner, you need to use the 
base address 0x........ rather than the real base address 0x........".  
however, from what i can see, this would only account for erase/writes.  
reads are done directly by u-boot using physical addresses, so those have no 
provision for catching accesses.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20080121/9230661a/attachment.pgp 

  reply	other threads:[~2008-01-21 13:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-20 10:56 [U-Boot-Users] "stacked" memory mapped flash assisted with GPIOs Mike Frysinger
2008-01-20 11:26 ` Michael Schwingen
2008-01-20 20:04   ` Mike Frysinger
2008-01-20 21:28     ` Michael Schwingen
2008-01-21  5:57       ` Mike Frysinger
2008-01-21 12:00 ` Haavard Skinnemoen
2008-01-21 13:01   ` Mike Frysinger [this message]
2008-01-21 22:20     ` Haavard Skinnemoen

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=200801210801.49358.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.