From: Thomas Chou <thomas@wytron.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/2] mtd: add altera quadspi driver
Date: Fri, 6 Nov 2015 08:18:15 +0800 [thread overview]
Message-ID: <563BF1C7.2060404@wytron.com.tw> (raw)
In-Reply-To: <CAD6G_RR8kJnmHwVpMRVS-eUjxYgSxGhxMszxc_jU7Bnc-KTUVA@mail.gmail.com>
Hi Jagan,
On 2015?11?05? 22:57, Jagan Teki wrote:
> The altera quad spi core is very special that the hardware handle the
>> spi-nor protocol. The core is designed to replace the CFI flash interface.
>> So there is nothing to do with SPI from the parallel flash interface. It is
>> memory mapped. There is no SPI interface. There is nothing related to SPI
>> programming. So please don't worry about the progress on spi-nor. The core
>> should belong to parallel flash, but not serial flash.
>
> Agreed that this is not doing any generic spi things, but it's a
> spi-nor controller all spi-nor controller should be part of spi-nor
> subsystem Linux agreed and have a framework for that.
>
> drivers/mtd/spi-nor/fsl-quadspi.c
> drivers/mtd/spi-nor/nxp-spifi.c
>
> all these are spi-nor controller which doesn't do any generic spi
> things but should be in spi-nor subsystem. Even Marek send altera_qspi
> as spi-nor controller [1]
>
> Since I'm working on similar spi-nor subsystem what Linux have +
> driver model little worried about this because once we have spi-nor
> again it should be a re-work.
>
> [1] http://lists.infradead.org/pipermail/linux-mtd/2015-April/058650.html
I had been a hardware engineer. I designed chips and boards. I believe
this should depend on the programming interface. Eg, there are SSDs of
SATA interfaces which build with NAND or EMMC, and it dose not make
sense to classify them as NAND or MMC. The altera quadspi core is a
similar case, because the hardware converts the programming interface.
There is no way to send spi-nor commands that the spi frame work does.
It is ridiculous to insist it to use under the spi-nor framework.
The altera quadspi hides details about the underlying spi-nor. We may
even choose to build interface that convert EMMC to like cfi flash. The
users can run code directly on the flash or use memory command like
"cp.b" of u-boot to program the flash. This can be a advantage over the
"sf" command.
Best regards,
Thomas
next prev parent reply other threads:[~2015-11-06 0:18 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-03 13:22 [U-Boot] [PATCH] mtd: add altera quadspi driver Thomas Chou
2015-11-03 17:44 ` Marek Vasut
2015-11-03 17:49 ` Jagan Teki
2015-11-03 17:52 ` Marek Vasut
2015-11-03 17:56 ` Jagan Teki
2015-11-03 18:11 ` Marek Vasut
2015-11-04 2:36 ` Thomas Chou
2015-11-04 3:45 ` Marek Vasut
2015-11-04 4:45 ` Thomas Chou
2015-11-04 5:15 ` Marek Vasut
2015-11-04 5:33 ` Thomas Chou
2015-11-04 14:02 ` Marek Vasut
2015-11-04 15:56 ` Chin Liang See
2015-11-04 16:18 ` Marek Vasut
2015-11-05 2:49 ` Chin Liang See
2015-11-05 2:53 ` Marek Vasut
2015-11-05 3:05 ` Chin Liang See
2015-11-05 4:26 ` Thomas Chou
2015-11-05 4:36 ` Marek Vasut
2015-11-05 8:47 ` [U-Boot] [PATCH v2 1/2] nios2: add memcpy_fromio and memcpy_toio Thomas Chou
2015-11-05 8:47 ` [U-Boot] [PATCH v2 2/2] mtd: add altera quadspi driver Thomas Chou
2015-11-05 14:25 ` Jagan Teki
2015-11-05 14:45 ` Thomas Chou
2015-11-05 14:57 ` Jagan Teki
2015-11-05 15:51 ` Marek Vasut
2015-11-06 8:11 ` Jagan Teki
2015-11-06 13:45 ` Marek Vasut
2015-11-06 0:18 ` Thomas Chou [this message]
2015-11-06 8:07 ` Jagan Teki
2015-11-06 9:28 ` Thomas Chou
2015-11-06 9:52 ` Jagan Teki
2015-11-06 11:48 ` Jagan Teki
2015-11-06 13:32 ` Thomas Chou
2015-11-07 8:07 ` [U-Boot] [PATCH v3] " Thomas Chou
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=563BF1C7.2060404@wytron.com.tw \
--to=thomas@wytron.com.tw \
--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