Skip to contentSkip to conversation

spi: tegra2: rename tegra2_spi.* to tegra_spi.*

PATCH New Tom Warren 2 participants 2 messages May 22, 2012 – May 31, 2012

Subsystems (3)
lore
Share & tools
lore

Tom Warren

author
#0 lore raw

PATCH 1/1 spi: tegra2: rename tegra2_spi.* to tegra_spi.*

In anticipation of Tegra3 support, start removing/renaming Tegra2-specific files. No functional changes (yet). Also updated copyright to 2012.

---
 .../asm/arch-tegra2/{tegra2_spi.h => tegra_spi.h}  |    9 ++++-----
 board/nvidia/common/uart-spi-switch.c              |    2 +-
 drivers/spi/Makefile                               |    2 +-
 drivers/spi/{tegra2_spi.c => tegra_spi.c}          |    4 ++--
 include/configs/seaboard.h                         |    2 +-
 5 files changed, 9 insertions(+), 10 deletions(-)
 rename arch/arm/include/asm/arch-tegra2/{tegra2_spi.h => tegra_spi.h} (95%)
 rename drivers/spi/{tegra2_spi.c => tegra_spi.c} (98%)
arch/arm/include/asm/arch-tegra2/tegra_spi.h renamed from arch/arm/include/asm/arch-tegra2/tegra2_spi.h +4 -5
similarity index 95%
rename from arch/arm/include/asm/arch-tegra2/tegra2_spi.h
rename to arch/arm/include/asm/arch-tegra2/tegra_spi.h
index ceec428..892d90c 100644
@@ -1,7 +1,7 @@
 /*
  * NVIDIA Tegra2 SPI-FLASH controller
  *
- * Copyright 2010-2011 NVIDIA Corporation
+ * Copyright 2010-2012 NVIDIA Corporation
  *
  * This software may be used and distributed according to the
  * terms of the GNU Public License, Version 2, incorporated
@@ -22,8 +22,8 @@
  * MA 02111-1307 USA
  */
 
-#ifndef _TEGRA2_SPI_H_
-#define _TEGRA2_SPI_H_
+#ifndef _TEGRA_SPI_H_
+#define _TEGRA_SPI_H_
 
 #include <asm/types.h>
 
@@ -72,5 +72,4 @@ struct spi_tegra {
 #define SPI_TIMEOUT		1000
 #define TEGRA2_SPI_MAX_FREQ	52000000
 
-
-#endif	/* _TEGRA2_SPI_H_ */
+#endif	/* _TEGRA_SPI_H_ */
board/nvidia/common/uart-spi-switch.c +1 -1
index 1ba1afd..307937a 100644
@@ -25,7 +25,7 @@
 #include <asm/arch/pinmux.h>
 #include <asm/arch/uart-spi-switch.h>
 #include <asm/arch/tegra2.h>
-#include <asm/arch/tegra2_spi.h>
+#include <asm/arch/tegra_spi.h>
 
 
 /* position of the UART/SPI select switch */
drivers/spi/Makefile +1 -1
index c967d87..c20f1f2 100644
@@ -43,7 +43,7 @@ COBJS-$(CONFIG_OMAP3_SPI) += omap3_spi.o
 COBJS-$(CONFIG_SOFT_SPI) += soft_spi.o
 COBJS-$(CONFIG_SH_SPI) += sh_spi.o
 COBJS-$(CONFIG_FSL_ESPI) += fsl_espi.o
-COBJS-$(CONFIG_TEGRA2_SPI) += tegra2_spi.o
+COBJS-$(CONFIG_TEGRA_SPI) += tegra_spi.o
 
 COBJS	:= $(COBJS-y)
 SRCS	:= $(COBJS:.o=.c)
drivers/spi/tegra_spi.c renamed from drivers/spi/tegra2_spi.c +2 -2
similarity index 98%
rename from drivers/spi/tegra2_spi.c
rename to drivers/spi/tegra_spi.c
index fe7b405..4a3e799 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010-2011 NVIDIA Corporation
+ * Copyright (c) 2010-2012 NVIDIA Corporation
  * With help from the mpc8xxx SPI driver
  * With more help from omap3_spi SPI driver
  *
@@ -32,7 +32,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/uart-spi-switch.h>
-#include <asm/arch/tegra2_spi.h>
+#include <asm/arch/tegra_spi.h>
 
 #if defined(CONFIG_SPI_CORRUPTS_UART)
  #define corrupt_delay()	udelay(CONFIG_SPI_CORRUPTS_UART_DLY);
include/configs/seaboard.h +1 -1
index 643af81..6bbea30 100644
@@ -67,7 +67,7 @@
 #define CONFIG_BOARD_EARLY_INIT_F
 
 /* SPI */
-#define CONFIG_TEGRA2_SPI
+#define CONFIG_TEGRA_SPI
 #define CONFIG_SPI_FLASH
 #define CONFIG_SPI_FLASH_WINBOND
 #define CONFIG_SF_DEFAULT_MODE		SPI_MODE_0
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 spi: tegra2: rename tegra2_spi.* to tegra_spi.*

Quoted 6 lines · Tom Warren

In anticipation of Tegra3 support, start removing/renaming Tegra2-specific files. No functional changes (yet). Also updated copyright to 2012.

Quoted 113 lines
---
 .../asm/arch-tegra2/{tegra2_spi.h => tegra_spi.h}  |    9 ++++-----
 board/nvidia/common/uart-spi-switch.c              |    2 +-
 drivers/spi/Makefile                               |    2 +-
 drivers/spi/{tegra2_spi.c => tegra_spi.c}          |    4 ++--
 include/configs/seaboard.h                         |    2 +-
 5 files changed, 9 insertions(+), 10 deletions(-)
 rename arch/arm/include/asm/arch-tegra2/{tegra2_spi.h => tegra_spi.h}
(95%)
 rename drivers/spi/{tegra2_spi.c => tegra_spi.c} (98%)
arch/arm/include/asm/arch-tegra2/tegra_spi.h renamed from arch/arm/include/asm/arch-tegra2/tegra2_spi.h +4 -5
similarity index 95%
rename from arch/arm/include/asm/arch-tegra2/tegra2_spi.h
rename to arch/arm/include/asm/arch-tegra2/tegra_spi.h
index ceec428..892d90c 100644
@@ -1,7 +1,7 @@
 /*
 * NVIDIA Tegra2 SPI-FLASH controller
 *
- * Copyright 2010-2011 NVIDIA Corporation
+ * Copyright 2010-2012 NVIDIA Corporation
 *
 * This software may be used and distributed according to the
 * terms of the GNU Public License, Version 2, incorporated
@@ -22,8 +22,8 @@
 * MA 02111-1307 USA
 */
 
-#ifndef _TEGRA2_SPI_H_
-#define _TEGRA2_SPI_H_
+#ifndef _TEGRA_SPI_H_
+#define _TEGRA_SPI_H_
 
 #include <asm/types.h>
 
@@ -72,5 +72,4 @@ struct spi_tegra {
 #define SPI_TIMEOUT            1000
 #define TEGRA2_SPI_MAX_FREQ    52000000
 
-
-#endif /* _TEGRA2_SPI_H_ */
+#endif /* _TEGRA_SPI_H_ */
board/nvidia/common/uart-spi-switch.c +1 -1
index 1ba1afd..307937a 100644
@@ -25,7 +25,7 @@
 #include <asm/arch/pinmux.h>
 #include <asm/arch/uart-spi-switch.h>
 #include <asm/arch/tegra2.h>
-#include <asm/arch/tegra2_spi.h>
+#include <asm/arch/tegra_spi.h>
 
 
 /* position of the UART/SPI select switch */
drivers/spi/Makefile +1 -1
index c967d87..c20f1f2 100644
@@ -43,7 +43,7 @@ COBJS-$(CONFIG_OMAP3_SPI) += omap3_spi.o
 COBJS-$(CONFIG_SOFT_SPI) += soft_spi.o
 COBJS-$(CONFIG_SH_SPI) += sh_spi.o
 COBJS-$(CONFIG_FSL_ESPI) += fsl_espi.o
-COBJS-$(CONFIG_TEGRA2_SPI) += tegra2_spi.o
+COBJS-$(CONFIG_TEGRA_SPI) += tegra_spi.o
 
 COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)
drivers/spi/tegra_spi.c renamed from drivers/spi/tegra2_spi.c +2 -2
similarity index 98%
rename from drivers/spi/tegra2_spi.c
rename to drivers/spi/tegra_spi.c
index fe7b405..4a3e799 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010-2011 NVIDIA Corporation
+ * Copyright (c) 2010-2012 NVIDIA Corporation
 * With help from the mpc8xxx SPI driver
 * With more help from omap3_spi SPI driver
 *
@@ -32,7 +32,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/uart-spi-switch.h>
-#include <asm/arch/tegra2_spi.h>
+#include <asm/arch/tegra_spi.h>
 
 #if defined(CONFIG_SPI_CORRUPTS_UART)
 #define corrupt_delay()       udelay(CONFIG_SPI_CORRUPTS_UART_DLY);
include/configs/seaboard.h +1 -2
index 643af81..6bbea30 100644
@@ -67,7 +67,7 @@
 #define CONFIG_BOARD_EARLY_INIT_F
 
 /* SPI */
-#define CONFIG_TEGRA2_SPI
+#define CONFIG_TEGRA_SPI
 #define CONFIG_SPI_FLASH
 #define CONFIG_SPI_FLASH_WINBOND
 #define CONFIG_SF_DEFAULT_MODE         SPI_MODE_0
--

1.7.0.4