]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tegra: spi: rename tegra SPI drivers
authorAllen Martin <amartin@nvidia.com>
Sat, 16 Mar 2013 18:58:03 +0000 (18:58 +0000)
committerTom Warren <twarren@nvidia.com>
Mon, 25 Mar 2013 16:56:05 +0000 (09:56 -0700)
Rename tegra SPI drivers to tegra20_flash and tegra20_slink in
preparation for commonization and addition of tegra114_spi.

Signed-off-by: Allen Martin <amartin@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
arch/arm/include/asm/arch-tegra20/tegra20_sflash.h [moved from arch/arm/include/asm/arch-tegra/tegra_spi.h with 96% similarity]
arch/arm/include/asm/arch-tegra20/tegra20_slink.h [moved from arch/arm/include/asm/arch-tegra/tegra_slink.h with 97% similarity]
board/nvidia/common/board.c
drivers/spi/Makefile
drivers/spi/tegra20_sflash.c [moved from drivers/spi/tegra_spi.c with 99% similarity]
drivers/spi/tegra20_slink.c [moved from drivers/spi/tegra_slink.c with 99% similarity]
include/configs/cardhu.h
include/configs/trimslice.h

similarity index 96%
rename from arch/arm/include/asm/arch-tegra/tegra_spi.h
rename to arch/arm/include/asm/arch-tegra20/tegra20_sflash.h
index d53a93ff53ab653df5a4782fd786c119533ca4ca..26a8402512abe07310ac11576ba0b8f260db3bbc 100644 (file)
@@ -22,8 +22,8 @@
  * MA 02111-1307 USA
  */
 
-#ifndef _TEGRA_SPI_H_
-#define _TEGRA_SPI_H_
+#ifndef _TEGRA20_SPI_H_
+#define _TEGRA20_SPI_H_
 
 #include <asm/types.h>
 
@@ -72,4 +72,4 @@ struct spi_tegra {
 #define SPI_TIMEOUT            1000
 #define TEGRA_SPI_MAX_FREQ     52000000
 
-#endif /* _TEGRA_SPI_H_ */
+#endif /* _TEGRA20_SPI_H_ */
similarity index 97%
rename from arch/arm/include/asm/arch-tegra/tegra_slink.h
rename to arch/arm/include/asm/arch-tegra20/tegra20_slink.h
index 74804b5465a32d952eeff3c4a4bb0960bd01d9ae..afa9b36923eaea435e411eb6db1d6725f18f8c8b 100644 (file)
@@ -22,8 +22,8 @@
  * MA 02111-1307 USA
  */
 
-#ifndef _TEGRA_SLINK_H_
-#define _TEGRA_SLINK_H_
+#ifndef _TEGRA30_SPI_H_
+#define _TEGRA30_SPI_H_
 
 #include <asm/types.h>
 
@@ -81,4 +81,4 @@ struct slink_tegra {
 #define SPI_TIMEOUT            1000
 #define TEGRA_SPI_MAX_FREQ     52000000
 
-#endif /* _TEGRA_SLINK_H_ */
+#endif /* _TEGRA30_SPI_H_ */
index b6e6566685d4d687e4ffff6f9e8431160d4bc515..87a418bc6a34b49c3435e5b1baac007aecf4ebad 100644 (file)
@@ -132,7 +132,7 @@ int board_init(void)
        clock_init();
        clock_verify();
 
-#if defined(CONFIG_TEGRA_SPI) || defined(CONFIG_TEGRA_SLINK)
+#if defined(CONFIG_TEGRA20_SFLASH) || defined(CONFIG_TEGRA20_SLINK)
        pin_mux_spi();
        spi_init();
 #endif
index b8264df3a9b34cac227461d6563c4dadcfc0cdb8..78e3d3d5683220481816469738ca25edb9d81916 100644 (file)
@@ -46,8 +46,8 @@ 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_TEGRA_SPI) += tegra_spi.o
-COBJS-$(CONFIG_TEGRA_SLINK) += tegra_slink.o
+COBJS-$(CONFIG_TEGRA20_SFLASH) += tegra20_sflash.o
+COBJS-$(CONFIG_TEGRA20_SLINK) += tegra20_slink.o
 COBJS-$(CONFIG_XILINX_SPI) += xilinx_spi.o
 
 COBJS  := $(COBJS-y)
similarity index 99%
rename from drivers/spi/tegra_spi.c
rename to drivers/spi/tegra20_sflash.c
index 2662923ff14873620f05fa88c9b3e11f500a9e34..c6af30f0d66b6df1e39c4912e62b6a1ccd0f0316 100644 (file)
@@ -29,7 +29,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch-tegra/clk_rst.h>
-#include <asm/arch-tegra/tegra_spi.h>
+#include <asm/arch-tegra20/tegra20_sflash.h>
 #include <spi.h>
 #include <fdtdec.h>
 
similarity index 99%
rename from drivers/spi/tegra_slink.c
rename to drivers/spi/tegra20_slink.c
index 2c41fabe286ea55ad2aaab4343142cd627fde35e..a6de4cec69e0183cb81bef84acd021bdf9fca4da 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/clk_rst.h>
-#include <asm/arch-tegra/tegra_slink.h>
+#include <asm/arch-tegra20/tegra20_slink.h>
 #include <spi.h>
 #include <fdtdec.h>
 
index 55dc83da6a187bfc00f94d84182c17ba5737a979..6a991752114ae70ecba7c5829dec2eebf35ae533 100644 (file)
@@ -60,7 +60,7 @@
 #define CONFIG_SYS_MMC_ENV_PART                2
 
 /* SPI */
-#define CONFIG_TEGRA_SLINK
+#define CONFIG_TEGRA20_SLINK
 #define CONFIG_TEGRA_SLINK_CTRLS       6
 #define CONFIG_SPI_FLASH
 #define CONFIG_SPI_FLASH_WINBOND
index 0644f7a5b8f668351358989f762d80b555a29c62..b92531477e78580edf1e0a0e2b4e60c3eb54ae48 100644 (file)
@@ -46,7 +46,7 @@
 #define CONFIG_BOARD_EARLY_INIT_F
 
 /* SPI */
-#define CONFIG_TEGRA_SPI
+#define CONFIG_TEGRA20_SFLASH
 #define CONFIG_SPI_FLASH
 #define CONFIG_SPI_FLASH_WINBOND
 #define CONFIG_SF_DEFAULT_MODE         SPI_MODE_0