public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jagan Teki <jteki@openedev.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v7 00/87] mtd: Add SPI-NOR core support
Date: Tue, 22 Mar 2016 13:17:00 +0530	[thread overview]
Message-ID: <56F0F874.3030604@openedev.com> (raw)
In-Reply-To: <1458632239-22468-1-git-send-email-jteki@openedev.com>

On Tuesday 22 March 2016 01:07 PM, Jagan Teki wrote:
> Some of the SPI device drivers at drivers/spi not a real
> spi controllers, Unlike normal/generic SPI controllers they
> operates only with SPI-NOR flash devices. these were technically
> termed as SPI-NOR controllers, Ex: drivers/spi/fsl_qspi.c
>
> The problem with these were resides at drivers/spi is entire
> SPI layer becomes SPI-NOR flash oriented which is absolutely
> a wrong indication where SPI layer getting effected more with
> flash operations - So this SPI-NOR core will resolve this issue
> by separating all SPI-NOR flash operations from spi layer and
> creats a generic layer called SPI-NOR core which can be used to
> interact SPI-NOR to SPI driver interface layer and the SPI-NOR
> controller driver. The idea is taken from Linux spi-nor framework.
>
> Before SPI-NOR:
>
> -----------------------
>          cmd/sf.c
> -----------------------
>          spi_flash.c
> -----------------------
>          sf_probe.c
> -----------------------
>          spi-uclass
> -----------------------
>          spi drivers
> -----------------------
>          SPI NOR chip
> -----------------------
>
> After SPI-NOR:
>
> ------------------------------
>          cmd/sf.c
> ------------------------------
>          spi-nor.c
> -------------------------------
> m25p80.c        spi nor drivers
> -------------------------------
> spi-uclass      SPI NOR chip
> -------------------------------
> spi drivers
> -------------------------------
> SPI NOR chip
> -------------------------------
>
> SPI-NOR with MTD:
>
> ------------------------------
>          cmd/sf.c
> ------------------------------
>          MTD core
> ------------------------------
>          spi-nor.c
> -------------------------------
> m25p80.c        spi nor drivers
> -------------------------------
> spi-uclass      SPI NOR chip
> -------------------------------
> spi drivers
> -------------------------------
> SPI NOR chip
> -------------------------------
>
> drivers/mtd/spi-nor/spi-nor.c: spi-nor core
> drivers/mtd/spi-nor/m25p80.c: mtd uclass driver
> which is an interface layer b/w spi-nor core drivers/spi
> drivers/mtd/spi-nor/fsl_qspi.c: spi-nor controller driver(mtd uclass)
>
> Changes for v7:
> - Rebase to latest
> - Fixed git bisectable issues, with buildman.
> - Fixed spi-nor compilation issues
> - newly designed changes.
>
> Changes for v6:
> - Fixed git bisectable issues, with buildman.
> - Fixed spi-nor compilation issues
> - newly designed changes.
>
> Changes for v5:
> - newly designed changes
>
> Testing:
> $ git clone git://git.denx.de/u-boot-spi.git
> $ cd u-boot-spi
> $ git checkout -b spi-nor-test origin/spi-nor-test
>
> Alison Wang (1):
>    defconfig: ls1021atwr_sdcard_qspi: Enable CONFIG_MTD

Tested in hardware and sandbox [1]

Tested-by: Jagan Teki <jteki@openedev.com>

[1] http://paste.ubuntu.com/15470696/

  reply	other threads:[~2016-03-22  7:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-22  7:37 [U-Boot] [PATCH v7 00/87] mtd: Add SPI-NOR core support Jagan Teki
2016-03-22  7:47 ` Jagan Teki [this message]
2016-03-22  7:49   ` Jagan Teki
2016-03-22 10:14     ` Jagan Teki
2016-03-22 14:55     ` Tom Rini
2016-03-28 11:32       ` Jagan Teki
2016-03-28 13:31         ` Tom Rini

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=56F0F874.3030604@openedev.com \
    --to=jteki@openedev.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox