[U-Boot] [PATCH 1/1] mtd/spi: Support of non-jedec MRAM devices

Jagan Teki jagannadh.teki at gmail.com
Fri Aug 25 16:47:07 UTC 2017


On Mon, Jul 10, 2017 at 10:01 PM, Matt Weber
<matthew.weber at rockwellcollins.com> wrote:
> This patch adds support of non-jedec MRAM devices mr25hx from Everspin.
> This flash devices do not have jedec device ID and hence support for
> name matching is also added as part of this series.
>
> This patch streamlined the update of SPI flash probing function API
> changes and included the following updates:
>
> 1) Updated "spi_flash_probe" (old method) and
> "spi_flash_probe_bus_cs" (new method) APIs
> 2) Added ifdefs for CONFIG_ENV_SPI_NAME and CONFIG_SF_DEFAULT_NAME so
> that addition of flash name in case of non-jedec device becomes
> streamlined.
> 3) Used CONFIG_ENV_SPI_NAME and CONFIG_SF_DEFAULT_NAME at all possible
> places except board/ files which has custom or hard coded arguments in
> "spi_flash_probe" functions. In such cases, passed NULL as flash name.
>
> Signed-off-by: Ronak Desai <ronak.desai at rockwellcollins.com>
> Signed-off-by: Matthew Weber <matthew.weber at rockwellcollins.com>
> ---
>  board/Arcturus/ucp1020/cmd_arc.c         |  4 ++--
>  board/Synology/ds414/cmd_syno.c          |  2 +-
>  board/aries/ma5d4evk/ma5d4evk.c          |  3 ++-
>  board/buffalo/lsxl/lsxl.c                |  2 +-
>  board/congatec/cgtqmx6eval/cgtqmx6eval.c |  5 +++--
>  board/davinci/da8xxevm/da850evm.c        |  2 +-
>  board/renesas/sh7752evb/sh7752evb.c      |  4 ++--
>  board/renesas/sh7753evb/sh7753evb.c      |  4 ++--
>  board/renesas/sh7757lcr/sh7757lcr.c      |  6 +++---
>  board/siemens/taurus/taurus.c            |  3 ++-
>  cmd/mvebu/bubt.c                         |  3 ++-
>  cmd/sf.c                                 | 12 ++++++++----
>  common/env_sf.c                          | 10 ++++++----
>  common/spl/spl_spi.c                     |  3 ++-
>  common/splash_source.c                   |  3 ++-
>  drivers/dfu/dfu_sf.c                     |  3 ++-
>  drivers/mtd/spi/Kconfig                  |  5 +++++
>  drivers/mtd/spi/fsl_espi_spl.c           |  4 ++--
>  drivers/mtd/spi/sf-uclass.c              |  9 +++++----
>  drivers/mtd/spi/sf_internal.h            |  4 +++-
>  drivers/mtd/spi/sf_probe.c               | 18 +++++++++---------
>  drivers/mtd/spi/spi_flash.c              | 27 ++++++++++++++++++++++++---
>  drivers/mtd/spi/spi_flash_ids.c          | 11 +++++++++++
>  drivers/net/fm/fm.c                      |  4 ++--
>  drivers/spi/spi-uclass.c                 | 15 +++++++++------
>  include/spi.h                            |  6 +++++-
>  include/spi_flash.h                      | 11 +++++++----
>  27 files changed, 123 insertions(+), 60 deletions(-)

Please split this into multiple patches where inital non-jedec on
flash has one patch and adding boards will be an individual patches.

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the U-Boot mailing list