Blackfin arch: SPI_MMC is now mainlined MMC_SPI
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
parent
4aad7ec373
commit
f3f704d375
@ -182,9 +182,9 @@ static struct bfin5xx_spi_chip spi_switch_info = {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
||||||
.enable_dma = 1,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 8,
|
.bits_per_word = 8,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -276,23 +276,13 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "spi_mmc_dummy",
|
.modalias = "mmc_spi",
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
||||||
.bus_num = 0,
|
.bus_num = 0,
|
||||||
.chip_select = 0,
|
.chip_select = 5,
|
||||||
.platform_data = NULL,
|
.controller_data = &mmc_spi_chip_info,
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.modalias = "spi_mmc",
|
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
|
||||||
.bus_num = 0,
|
|
||||||
.chip_select = CONFIG_SPI_MMC_CS_CHAN,
|
|
||||||
.platform_data = NULL,
|
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
.mode = SPI_MODE_3,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
@ -487,9 +487,9 @@ static struct bfin5xx_spi_chip ad9960_spi_chip_info = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
||||||
.enable_dma = 1,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 8,
|
.bits_per_word = 8,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -585,23 +585,13 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
|||||||
.controller_data = &ad9960_spi_chip_info,
|
.controller_data = &ad9960_spi_chip_info,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "spi_mmc_dummy",
|
.modalias = "mmc_spi",
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */
|
||||||
.bus_num = 0,
|
.bus_num = 0,
|
||||||
.chip_select = 0,
|
.chip_select = 5,
|
||||||
.platform_data = NULL,
|
.controller_data = &mmc_spi_chip_info,
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.modalias = "spi_mmc",
|
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
|
||||||
.bus_num = 0,
|
|
||||||
.chip_select = CONFIG_SPI_MMC_CS_CHAN,
|
|
||||||
.platform_data = NULL,
|
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
.mode = SPI_MODE_3,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
@ -256,9 +256,9 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
||||||
.enable_dma = 1,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 8,
|
.bits_per_word = 8,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -366,23 +366,13 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
|||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "spi_mmc_dummy",
|
.modalias = "mmc_spi",
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
||||||
.bus_num = 0,
|
.bus_num = 0,
|
||||||
.chip_select = 0,
|
.chip_select = 5,
|
||||||
.platform_data = NULL,
|
.controller_data = &mmc_spi_chip_info,
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.modalias = "spi_mmc",
|
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
|
||||||
.bus_num = 0,
|
|
||||||
.chip_select = CONFIG_SPI_MMC_CS_CHAN,
|
|
||||||
.platform_data = NULL,
|
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
.mode = SPI_MODE_3,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
@ -101,9 +101,9 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
||||||
.enable_dma = 1,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 8,
|
.bits_per_word = 8,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -129,23 +129,13 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
|||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "spi_mmc_dummy",
|
.modalias = "mmc_spi",
|
||||||
.max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */
|
||||||
.bus_num = 0,
|
.bus_num = 0,
|
||||||
.chip_select = 0,
|
.chip_select = 5,
|
||||||
.platform_data = NULL,
|
.controller_data = &mmc_spi_chip_info,
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.modalias = "spi_mmc",
|
|
||||||
.max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */
|
|
||||||
.bus_num = 0,
|
|
||||||
.chip_select = CONFIG_SPI_MMC_CS_CHAN,
|
|
||||||
.platform_data = NULL,
|
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
.mode = SPI_MODE_3,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
@ -96,9 +96,9 @@ static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
||||||
.enable_dma = 1,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 8,
|
.bits_per_word = 8,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -138,23 +138,13 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
|||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "spi_mmc_dummy",
|
.modalias = "mmc_spi",
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
||||||
.bus_num = 0,
|
.bus_num = 0,
|
||||||
.chip_select = 0,
|
.chip_select = 5,
|
||||||
.platform_data = NULL,
|
.controller_data = &mmc_spi_chip_info,
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.modalias = "spi_mmc",
|
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
|
||||||
.bus_num = 0,
|
|
||||||
.chip_select = CONFIG_SPI_MMC_CS_CHAN,
|
|
||||||
.platform_data = NULL,
|
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
.mode = SPI_MODE_3,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
@ -127,8 +127,8 @@ static struct platform_device dm9000_device2 = {
|
|||||||
#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
|
#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
|
||||||
/* all SPI peripherals info goes here */
|
/* all SPI peripherals info goes here */
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
||||||
/*
|
/*
|
||||||
* CPOL (Clock Polarity)
|
* CPOL (Clock Polarity)
|
||||||
* 0 - Active high SCK
|
* 0 - Active high SCK
|
||||||
@ -152,14 +152,13 @@ static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
|||||||
/* Notice: for blackfin, the speed_hz is the value of register
|
/* Notice: for blackfin, the speed_hz is the value of register
|
||||||
* SPI_BAUD, not the real baudrate */
|
* SPI_BAUD, not the real baudrate */
|
||||||
static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "spi_mmc",
|
.modalias = "mmc_spi",
|
||||||
.max_speed_hz = 2,
|
.max_speed_hz = 2,
|
||||||
.bus_num = 1,
|
.bus_num = 1,
|
||||||
.chip_select = CONFIG_SPI_MMC_CS_CHAN,
|
.chip_select = 5,
|
||||||
.platform_data = NULL,
|
.controller_data = &mmc_spi_chip_info,
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
@ -108,9 +108,9 @@ static struct bfin5xx_spi_chip ad9960_spi_chip_info = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
||||||
.enable_dma = 1,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 8,
|
.bits_per_word = 8,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -160,23 +160,13 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
|||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "spi_mmc_dummy",
|
.modalias = "mmc_spi",
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */
|
||||||
.bus_num = 0,
|
.bus_num = 0,
|
||||||
.chip_select = 7,
|
.chip_select = 1,
|
||||||
.platform_data = NULL,
|
.controller_data = &mmc_spi_chip_info,
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.modalias = "spi_mmc",
|
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
|
||||||
.bus_num = 0,
|
|
||||||
.chip_select = CONFIG_SPI_MMC_CS_CHAN,
|
|
||||||
.platform_data = NULL,
|
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
.mode = SPI_MODE_3,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
@ -134,9 +134,9 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
||||||
.enable_dma = 1,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 8,
|
.bits_per_word = 8,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -156,23 +156,13 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
|||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "spi_mmc_dummy",
|
.modalias = "mmc_spi",
|
||||||
.max_speed_hz = 5000000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 5000000, /* max spi clock (SCK) speed in HZ */
|
||||||
.bus_num = 0,
|
.bus_num = 0,
|
||||||
.chip_select = 0,
|
.chip_select = 5,
|
||||||
.platform_data = NULL,
|
.controller_data = &mmc_spi_chip_info,
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.modalias = "spi_mmc",
|
|
||||||
.max_speed_hz = 5000000, /* max spi clock (SCK) speed in HZ */
|
|
||||||
.bus_num = 0,
|
|
||||||
.chip_select = CONFIG_SPI_MMC_CS_CHAN,
|
|
||||||
.platform_data = NULL,
|
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
.mode = SPI_MODE_3,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
@ -289,9 +289,9 @@ static struct bfin5xx_spi_chip ad9960_spi_chip_info = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
||||||
.enable_dma = 1,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 8,
|
.bits_per_word = 8,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -364,23 +364,13 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
|||||||
.controller_data = &ad9960_spi_chip_info,
|
.controller_data = &ad9960_spi_chip_info,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "spi_mmc_dummy",
|
.modalias = "mmc_spi",
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
||||||
.bus_num = 0,
|
.bus_num = 0,
|
||||||
.chip_select = 7,
|
.chip_select = 5,
|
||||||
.platform_data = NULL,
|
.controller_data = &mmc_spi_chip_info,
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.modalias = "spi_mmc",
|
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
|
||||||
.bus_num = 0,
|
|
||||||
.chip_select = CONFIG_SPI_MMC_CS_CHAN,
|
|
||||||
.platform_data = NULL,
|
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
.mode = SPI_MODE_3,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
@ -108,9 +108,9 @@ static struct bfin5xx_spi_chip ad9960_spi_chip_info = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
||||||
.enable_dma = 1,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 8,
|
.bits_per_word = 8,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -160,23 +160,13 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
|||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "spi_mmc_dummy",
|
.modalias = "mmc_spi",
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
||||||
.bus_num = 0,
|
.bus_num = 0,
|
||||||
.chip_select = 7,
|
.chip_select = 5,
|
||||||
.platform_data = NULL,
|
.controller_data = &mmc_spi_chip_info,
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.modalias = "spi_mmc",
|
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
|
||||||
.bus_num = 0,
|
|
||||||
.chip_select = CONFIG_SPI_MMC_CS_CHAN,
|
|
||||||
.platform_data = NULL,
|
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
.mode = SPI_MODE_3,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
@ -105,9 +105,9 @@ static struct bfin5xx_spi_chip ad9960_spi_chip_info = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
static struct bfin5xx_spi_chip mmc_spi_chip_info = {
|
||||||
.enable_dma = 1,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 8,
|
.bits_per_word = 8,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -155,14 +155,13 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
|||||||
.controller_data = &ad9960_spi_chip_info,
|
.controller_data = &ad9960_spi_chip_info,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE)
|
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "spi_mmc",
|
.modalias = "mmc_spi",
|
||||||
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
|
||||||
.bus_num = 0,
|
.bus_num = 0,
|
||||||
.chip_select = CONFIG_SPI_MMC_CS_CHAN,
|
.chip_select = 5,
|
||||||
.platform_data = NULL,
|
.controller_data = &mmc_spi_chip_info,
|
||||||
.controller_data = &spi_mmc_chip_info,
|
|
||||||
.mode = SPI_MODE_3,
|
.mode = SPI_MODE_3,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user