|
@@ -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)
|
|
|
|
-static struct bfin5xx_spi_chip spi_mmc_chip_info = {
|
|
|
|
|
|
+#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
|
|
|
|
+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,
|
|
|
|
- .platform_data = NULL,
|
|
|
|
- .controller_data = &spi_mmc_chip_info,
|
|
|
|
|
|
+ .chip_select = 5,
|
|
|
|
+ .controller_data = &mmc_spi_chip_info,
|
|
},
|
|
},
|
|
#endif
|
|
#endif
|
|
};
|
|
};
|