[U-Boot] [PATCH 1/4] SPI:rewrite the Freescale DSPI driver.

Stefano Babic sbabic at denx.de
Mon Nov 18 09:38:12 CET 2013


Hi Chao,

On 18/11/2013 07:34, Chao Fu wrote:
> From: Chao Fu <B44548 at freescale.com>
> 
> Freescale DSPI module is used on both the ColdFire platform and the ARM
> platform. The original DSPI driver is written for ColdFire platform only, this patch
> rewrite the driver to make it be used across the platforms. The rewrite including the 
> following changes:
> 
> Rename the file name :
> 	cf_spi.c -> fsl_dspi.c
> Move the file:
> 	arch/m68k/include/asm/coldfire/dspi.h -> include/fsl_dspi.h
> Rename the functions and variables:
> 	cfxxx -> dspixxx
> Keep the following functions for ColdFire: 
> 	cfspi_port_conf()
> 	cfspi_claim_bus()
> 	cfspi_release_bus()
> 
> Signed-off-by: Chao Fu <B44548 at freescale.com>
> ---
>  arch/m68k/include/asm/coldfire/dspi.h | 142 --------------
>  drivers/spi/Makefile                  |   2 +-
>  drivers/spi/cf_spi.c                  | 347 ---------------------------------
>  drivers/spi/fsl_dspi.c                | 352 ++++++++++++++++++++++++++++++++++
>  include/fsl_dspi.h                    | 147 ++++++++++++++
>  5 files changed, 500 insertions(+), 490 deletions(-)
>  delete mode 100644 arch/m68k/include/asm/coldfire/dspi.h
>  delete mode 100644 drivers/spi/cf_spi.c
>  create mode 100644 drivers/spi/fsl_dspi.c
>  create mode 100644 include/fsl_dspi.h
> 

When you deal with renaming and moving, you should add the option -C to
git format-patch. This let git to recognize if a file is moved without
deleting and creating the same file.

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list