From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Mon, 18 Nov 2013 09:38:12 +0100 Subject: [U-Boot] [PATCH 1/4] SPI:rewrite the Freescale DSPI driver. In-Reply-To: <1384756480-18072-1-git-send-email-b44548@freescale.com> References: <1384756480-18072-1-git-send-email-b44548@freescale.com> Message-ID: <5289D1F4.7090609@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Chao, On 18/11/2013 07:34, Chao Fu wrote: > From: Chao Fu > > 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 > --- > 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 =====================================================================