From: Miquel Raynal <miquel.raynal@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] SPI NOR controller with direct mapping support
Date: Wed, 21 Nov 2018 12:40:19 +0100 [thread overview]
Message-ID: <20181121124019.2f60d9aa@xps13> (raw)
Hello Jagan,
I have a SoC which has a portion of memory where we can map a SPI NOR
portion to do direct accesses. This is only for reading requests,
otherwise regular SPI transfers must be used.
While there is no real support for spi-mem in spi-flash, what is the
right way to implement a driver for such controller? It is more a SPI
controller driver and should probably inherit from UCLASS_SPI. But
inside the driver, it looks like we must access the spi_flash
structure. Also, we would make use of functions like spi_flash_std_xxx
from drivers/mtd/spi/ while I would definitely put the driver itself in
drivers/spi/. Can you please comment on all these points?
Thanks,
Miquèl
reply other threads:[~2018-11-21 11:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20181121124019.2f60d9aa@xps13 \
--to=miquel.raynal@bootlin.com \
--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.