aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Jiang <scott.jiang.linux@gmail.com>2013-07-03 04:48:19 -0400
committerSteven Miao <realmz6@gmail.com>2013-07-09 03:47:54 -0400
commit5e50175bdceefac46427c2cc6ae340a2ac045de5 (patch)
treee049dae9cf3118e3af110f7aea7aefed8b2c5970
parent259c9b1712242fb3c841d49020a4f179f0c1920c (diff)
bf609: rename bfin6xx_spi to bfin_spi3
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com> Signed-off-by: Steven Miao <realmz6@gmail.com>
-rw-r--r--arch/blackfin/include/asm/bfin_spi3.h (renamed from arch/blackfin/include/asm/bfin6xx_spi.h)4
-rw-r--r--arch/blackfin/mach-bf609/boards/ezkit.c18
2 files changed, 11 insertions, 11 deletions
diff --git a/arch/blackfin/include/asm/bfin6xx_spi.h b/arch/blackfin/include/asm/bfin_spi3.h
index 89370b653dcd..0957e65a54be 100644
--- a/arch/blackfin/include/asm/bfin6xx_spi.h
+++ b/arch/blackfin/include/asm/bfin_spi3.h
@@ -240,7 +240,7 @@ struct bfin_spi_regs {
240#define MAX_CTRL_CS 8 /* cs in spi controller */ 240#define MAX_CTRL_CS 8 /* cs in spi controller */
241 241
242/* device.platform_data for SSP controller devices */ 242/* device.platform_data for SSP controller devices */
243struct bfin6xx_spi_master { 243struct bfin_spi3_master {
244 u16 num_chipselect; 244 u16 num_chipselect;
245 u16 pin_req[7]; 245 u16 pin_req[7];
246}; 246};
@@ -248,7 +248,7 @@ struct bfin6xx_spi_master {
248/* spi_board_info.controller_data for SPI slave devices, 248/* spi_board_info.controller_data for SPI slave devices,
249 * copied to spi_device.platform_data ... mostly for dma tuning 249 * copied to spi_device.platform_data ... mostly for dma tuning
250 */ 250 */
251struct bfin6xx_spi_chip { 251struct bfin_spi3_chip {
252 u32 control; 252 u32 control;
253 u16 cs_chg_udelay; /* Some devices require 16-bit delays */ 253 u16 cs_chg_udelay; /* Some devices require 16-bit delays */
254 u32 tx_dummy_val; /* tx value for rx only transfer */ 254 u32 tx_dummy_val; /* tx value for rx only transfer */
diff --git a/arch/blackfin/mach-bf609/boards/ezkit.c b/arch/blackfin/mach-bf609/boards/ezkit.c
index 97d701639585..6939ac3a805e 100644
--- a/arch/blackfin/mach-bf609/boards/ezkit.c
+++ b/arch/blackfin/mach-bf609/boards/ezkit.c
@@ -17,7 +17,7 @@
17#include <linux/i2c.h> 17#include <linux/i2c.h>
18#include <linux/interrupt.h> 18#include <linux/interrupt.h>
19#include <linux/usb/musb.h> 19#include <linux/usb/musb.h>
20#include <asm/bfin6xx_spi.h> 20#include <asm/bfin_spi3.h>
21#include <asm/dma.h> 21#include <asm/dma.h>
22#include <asm/gpio.h> 22#include <asm/gpio.h>
23#include <asm/nand.h> 23#include <asm/nand.h>
@@ -745,13 +745,13 @@ static struct flash_platform_data bfin_spi_flash_data = {
745 .type = "w25q32", 745 .type = "w25q32",
746}; 746};
747 747
748static struct bfin6xx_spi_chip spi_flash_chip_info = { 748static struct bfin_spi3_chip spi_flash_chip_info = {
749 .enable_dma = true, /* use dma transfer with this chip*/ 749 .enable_dma = true, /* use dma transfer with this chip*/
750}; 750};
751#endif 751#endif
752 752
753#if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 753#if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
754static struct bfin6xx_spi_chip spidev_chip_info = { 754static struct bfin_spi3_chip spidev_chip_info = {
755 .enable_dma = true, 755 .enable_dma = true,
756}; 756};
757#endif 757#endif
@@ -1296,7 +1296,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
1296 }, 1296 },
1297#endif 1297#endif
1298}; 1298};
1299#if defined(CONFIG_SPI_BFIN6XX) || defined(CONFIG_SPI_BFIN6XX_MODULE) 1299#if IS_ENABLED(CONFIG_SPI_BFIN_V3)
1300/* SPI (0) */ 1300/* SPI (0) */
1301static struct resource bfin_spi0_resource[] = { 1301static struct resource bfin_spi0_resource[] = {
1302 { 1302 {
@@ -1337,13 +1337,13 @@ static struct resource bfin_spi1_resource[] = {
1337}; 1337};
1338 1338
1339/* SPI controller data */ 1339/* SPI controller data */
1340static struct bfin6xx_spi_master bf60x_spi_master_info0 = { 1340static struct bfin_spi3_master bf60x_spi_master_info0 = {
1341 .num_chipselect = MAX_CTRL_CS + MAX_BLACKFIN_GPIOS, 1341 .num_chipselect = MAX_CTRL_CS + MAX_BLACKFIN_GPIOS,
1342 .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0}, 1342 .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
1343}; 1343};
1344 1344
1345static struct platform_device bf60x_spi_master0 = { 1345static struct platform_device bf60x_spi_master0 = {
1346 .name = "bfin-spi", 1346 .name = "bfin-spi3",
1347 .id = 0, /* Bus number */ 1347 .id = 0, /* Bus number */
1348 .num_resources = ARRAY_SIZE(bfin_spi0_resource), 1348 .num_resources = ARRAY_SIZE(bfin_spi0_resource),
1349 .resource = bfin_spi0_resource, 1349 .resource = bfin_spi0_resource,
@@ -1352,13 +1352,13 @@ static struct platform_device bf60x_spi_master0 = {
1352 }, 1352 },
1353}; 1353};
1354 1354
1355static struct bfin6xx_spi_master bf60x_spi_master_info1 = { 1355static struct bfin_spi3_master bf60x_spi_master_info1 = {
1356 .num_chipselect = MAX_CTRL_CS + MAX_BLACKFIN_GPIOS, 1356 .num_chipselect = MAX_CTRL_CS + MAX_BLACKFIN_GPIOS,
1357 .pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0}, 1357 .pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0},
1358}; 1358};
1359 1359
1360static struct platform_device bf60x_spi_master1 = { 1360static struct platform_device bf60x_spi_master1 = {
1361 .name = "bfin-spi", 1361 .name = "bfin-spi3",
1362 .id = 1, /* Bus number */ 1362 .id = 1, /* Bus number */
1363 .num_resources = ARRAY_SIZE(bfin_spi1_resource), 1363 .num_resources = ARRAY_SIZE(bfin_spi1_resource),
1364 .resource = bfin_spi1_resource, 1364 .resource = bfin_spi1_resource,
@@ -1534,7 +1534,7 @@ static struct platform_device *ezkit_devices[] __initdata = {
1534 &bfin_sdh_device, 1534 &bfin_sdh_device,
1535#endif 1535#endif
1536 1536
1537#if defined(CONFIG_SPI_BFIN6XX) || defined(CONFIG_SPI_BFIN6XX_MODULE) 1537#if IS_ENABLED(CONFIG_SPI_BFIN_V3)
1538 &bf60x_spi_master0, 1538 &bf60x_spi_master0,
1539 &bf60x_spi_master1, 1539 &bf60x_spi_master1,
1540#endif 1540#endif