On Fri, Nov 06, 2015 at 03:58:17PM -0800, Simon Glass wrote:
> Hi,
>
> On 6 November 2015 at 10:23, Nishanth Menon wrote:
> > On 11:10-20151106, Nishanth Menon wrote:
> >> On 11/05/2015 10:50 PM, Masahiro Yamada wrote:
> >> > 2015-11-06 12:30 GMT+09:00 Nishanth Menon :
> >> >> On Thu, Nov 5, 2015
Signed-off-by: Michael Heimpold
---
arch/arm/Kconfig | 8 ++
arch/arm/include/asm/mach-types.h | 13 +++
board/i2se/duckbill/Kconfig | 15 +++
board/i2se/duckbill/MAINTAINERS | 6 ++
board/i2se/duckbill/Makefile | 12 +++
board/i2se/duckbill/duckbill.c| 18
Now MTD core has been added as part of spi-flash layer,
so there is no need for explicit driver for handling
mtd stuff, hence removed all neccessary code regarding
SPI_FLASH_MTD driver.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/Kconfig | 12 -
drivers/mtd/spi/Makefile | 1 -
No explict spi-flash mtd handling driver, it's been
part of spi-flash layer iteself, hence removed it from
board configs.
Signed-off-by: Jagan Teki
---
include/configs/aristainetos-common.h | 1 -
include/configs/gw_ventana.h | 1 -
include/configs/socfpga_common.h | 1 -
3 files c
- Use static for file-scope function
- Remove unneeded header file
- Use spi instead of slave notation for spi_slave {}
Reviewed-by: Heiko Schocher
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_probe.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers
This patch adds MTD support to non-dm spi_flash
interface code.
Reviewed-by: Heiko Schocher
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_probe.c | 26 ++
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_p
Since the spi-flash framework itself is using core MTD
functionalities this patch uses lock operation from mtd.
Fabio Estevam
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_internal.h | 9 -
drivers/mtd/spi/sf_ops.c | 383 ++
include/spi_flash.h
Since mtd_info ops got introduced, just drop the unneeded
dm_spi_flash operations.
Reviewed-by: Heiko Schocher
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf-uclass.c | 16
drivers/mtd/spi/sf_probe.c | 30 ---
include/spi_flash.h | 90 +++-
Since mtd got added, replace flash->size with mtd->size.
Reviewed-by: Heiko Schocher
Signed-off-by: Jagan Teki
---
common/cmd_sf.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/common/cmd_sf.c b/common/cmd_sf.c
index 42862d9..d9f1bd1 100644
--- a/common/cm
spi_flash_probe_tail code looks not in proper shape
to add more functionalities. hence refactorized
so-that it's more readable and hence we may extend
more functionalies to it.
Cc: Bin Meng
Cc: Troy Kisky
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_probe.c | 20 +---
1 fil
Since MTD support is added in spi_flash layer, this patch uses
mtd_info operations instead of legacy spi_flash operations.
Reviewed-by: Heiko Schocher
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_ops.c | 66
include/spi_flash.h | 23
This patch adds mtd_info support to spi_flash layer, MTD has
proven core for flash operations so adding MTD to spi_flash
will extends more functionality.
Reviewed-by: Heiko Schocher
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_ops.c | 45 +
driv
Using macro's for flash power up read-only access code
leads wrong behaviour hence use idcode0 for runtime
detection, hence the flash which require this functionality
gets detected at runtime.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_internal.h | 2 ++
drivers/mtd/spi/sf_ops.c | 7 +
spi_flash_probe_tail code looks not in proper shape
to add more functionalities. hence refactorized
so-that it's more readable and hence we may extend
more functionalies to it.
Cc: Bin Meng
Cc: Troy Kisky
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_internal.h | 3 +-
drivers/mtd/spi/sf_o
Removed unneeded header includes in sf_ops and sf_probe
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_ops.c | 2 --
drivers/mtd/spi/sf_probe.c | 3 ---
2 files changed, 5 deletions(-)
diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c
index 7638cb1..e4f841b 100644
--- a/drive
This patch add support to use spi_flash_scan in
dm-spi-flash probe, so-that it can access
the spi_flash functionalities same as non-dm sf probe.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_probe.c | 28 +---
1 file changed, 25 insertions(+), 3 deletions(-)
diff --gi
Use static for file-scope functions and removed
them from header files.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_internal.h | 21 -
drivers/mtd/spi/sf_ops.c | 11 ++-
2 files changed, 6 insertions(+), 26 deletions(-)
diff --git a/drivers/mtd/spi/sf_inter
Most of the register access function are static,
so used simple name to represent each.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_ops.c | 42 +-
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/s
This patch removes unneeded ifdef and fixed accordingly.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/Makefile | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/mtd/spi/Makefile b/drivers/mtd/spi/Makefile
index ff48b25..66c4424 100644
--- a/drivers/mtd/spi/Makefil
flash operations are defined as static and reuse them
with function-pointers so call them with generic
function pounters instead of calling like normal functions.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_ops.c | 2 --
drivers/mtd/spi/sf_probe.c | 15 +++
include/spi_flash.
Use static for file-scope functions and removed
them from header files.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_internal.h | 18 --
drivers/mtd/spi/sf_ops.c | 11 ++-
2 files changed, 6 insertions(+), 23 deletions(-)
diff --git a/drivers/mtd/spi/sf_internal
- Move bar read code below the bar write hance both
at once place, hence it easy for #ifdef macro only
once and readable.
- Move read_cmd_array at top
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_ops.c | 80 +++-
1 file changed, 39 insertions(+
read_id code is related to spi_flash stuff
hence moved to sf_ops.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_internal.h | 3 +--
drivers/mtd/spi/sf_ops.c | 21 ++---
drivers/mtd/spi/sf_probe.c| 15 +--
3 files changed, 20 insertions(+), 19 deletions(-)
This series is combination of mtd and sf tunning stuff in previous
version patches.
This is whole patch series for add mtd support to spi-flash
framework and related stuff.
The idea is to introduce the spi-nor flash framework which
similar to Linux with driver-model support.
spi-nor looks:
Intension is that sf_ops should deals all spi_flash
related stuff and sf_probe (which should renamed future)
should be an interface layer for spi_flash versus spi drivers.
sf_ops => spi_flash interface
sf_probe => interface layer vs spi_flash(sf_probe) to spi drivers
Signed-off-by: Jagan Teki
--
Rename spi_flash_validate_params to spi_flash_scan
as this code not only deals with params setup but
also configure all spi_flash attributes.
And also moved all flash related code into
spi_flash_scan for future functionality addition.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_probe.c | 1
HI Jagan,
On 2015年11月07日 20:35, Jagan Teki wrote:
It seems we are working toward the same direction. :)
Sorry, I couldn't understand this looks we're in different direction.
Let me explain what I thought about mtd_info usage. udevice should be
part of underlying flash structure's like cfi, na
On Fri, Nov 06, 2015 at 01:38:04PM +0800, Thomas Chou wrote:
> Hi Tom,
>
> Please pull,
>
> The following changes since commit ed02c532be690b3d0c3e15c81531785a788fd949:
>
> Merge branch 'master' of git://git.denx.de/u-boot-video (2015-11-05
> 07:47:21 -0500)
>
> are available in the git rep
On Fri, Nov 06, 2015 at 02:10:06PM +0100, Daniel Schwierzeck wrote:
> Hi Tom,
>
> please pull the MIPS bootm fixes, thanks.
>
>
> The following changes since commit ed02c532be690b3d0c3e15c81531785a788fd949:
>
> Merge branch 'master' of git://git.denx.de/u-boot-video (2015-11-05
> 07:47:21 -
>From 83fc9aee5fa80a3f671966e0ca9569eeb372b160 Mon Sep 17 00:00:00 2001
From: Adam Ford
Date: Sat, 7 Nov 2015 05:52:10 -0600
Subject: [PATCH 41/41] ARM: omap3_logic: Fix pin muxing
Enhance pin muxing to enable more board features and reduce power
based on Tony's
device tree work.
Signed-off-by:
Add Altera Generic Quad SPI Controller support. The controller
converts SPI NOR flash to parallel flash interface. So it is
not like other SPI flash, but rather like CFI flash.
Signed-off-by: Thomas Chou
---
v2
use memcpy_toio() for mtd_write() as suggested by Chin Liang
and Marek.
v3
use a
31 matches
Mail list logo