[U-Boot] [PATCH 2/4 v2] sf: unify write funcs

Wolfgang Denk wd at denx.de
Tue Jul 26 16:29:38 CEST 2011


Dear Mike Frysinger,

In message <1303750709-7976-1-git-send-email-vapier at gentoo.org> you wrote:
> Once we add a new page_size field for write lengths, we can unify the
> write methods for most of the spi flash drivers.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> v2
> 	- push page program command into common code too since all spi
> 	  flashes use the same one (0x02)
> 
>  drivers/mtd/spi/eon.c                |   66 +------------------------------
>  drivers/mtd/spi/macronix.c           |   66 +------------------------------
>  drivers/mtd/spi/spansion.c           |   66 +------------------------------
>  drivers/mtd/spi/spi_flash.c          |   57 +++++++++++++++++++++++++++
>  drivers/mtd/spi/spi_flash_internal.h |    8 ++++
>  drivers/mtd/spi/stmicro.c            |   66 +------------------------------
>  drivers/mtd/spi/winbond.c            |   71 +--------------------------------
>  include/spi_flash.h                  |    5 ++-
>  8 files changed, 80 insertions(+), 325 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The only person who always got his work done by Friday
                                                 was Robinson Crusoe.


More information about the U-Boot mailing list