mirror of https://gitee.com/openkylin/linux.git
Blackfin: rename AD1836 to AD183X in board files
The ASoC codec driver was generalized and renamed, so update the board resources accordingly. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
df6a949b46
commit
d40bd71f88
|
@ -339,8 +339,8 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) \
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) \
|
||||||
|| defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
|| defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -417,8 +417,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) \
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) \
|
||||||
|| defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
|| defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
|
|
|
@ -428,8 +428,8 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) \
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) \
|
||||||
|| defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
|| defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -544,8 +544,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) \
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) \
|
||||||
|| defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
|| defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
|
|
|
@ -171,7 +171,7 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -206,7 +206,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 16,
|
.max_speed_hz = 16,
|
||||||
|
|
|
@ -71,7 +71,7 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -110,7 +110,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
|
|
|
@ -222,7 +222,7 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -261,7 +261,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
|
|
|
@ -184,7 +184,7 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -251,7 +251,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
|
|
|
@ -73,7 +73,7 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -112,7 +112,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
|
|
|
@ -74,7 +74,7 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -113,7 +113,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
|
|
|
@ -175,8 +175,8 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) \
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) \
|
||||||
|| defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
|| defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -238,8 +238,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) \
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) \
|
||||||
|| defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
|| defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
|
|
|
@ -528,8 +528,8 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BF5XX_SOC_AD1836) \
|
#if defined(CONFIG_SND_BF5XX_SOC_AD183X) \
|
||||||
|| defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE)
|
|| defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -953,13 +953,14 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BF5XX_SOC_AD1836) \
|
#if defined(CONFIG_SND_BF5XX_SOC_AD183X) \
|
||||||
|| defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE)
|
|| defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad183x",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
.bus_num = 0,
|
.bus_num = 0,
|
||||||
.chip_select = 4,/* CONFIG_SND_BLACKFIN_SPI_PFBIT */
|
.chip_select = 4,/* CONFIG_SND_BLACKFIN_SPI_PFBIT */
|
||||||
|
.platform_data = "ad1836", /* only includes chip name for the moment */
|
||||||
.controller_data = &ad1836_spi_chip_info,
|
.controller_data = &ad1836_spi_chip_info,
|
||||||
.mode = SPI_MODE_3,
|
.mode = SPI_MODE_3,
|
||||||
},
|
},
|
||||||
|
|
|
@ -74,7 +74,7 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -113,7 +113,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
|
|
|
@ -963,8 +963,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) \
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) \
|
||||||
|| defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
|| defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -1020,8 +1020,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
.mode = SPI_MODE_3,
|
.mode = SPI_MODE_3,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) \
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) \
|
||||||
|| defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
|| defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
|
|
|
@ -72,7 +72,7 @@ static struct bfin5xx_spi_chip spi_adc_chip_info = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -111,7 +111,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) || defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
|
|
|
@ -274,8 +274,8 @@ static struct platform_device ezkit_flash_device = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) \
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) \
|
||||||
|| defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
|| defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
.bits_per_word = 16,
|
.bits_per_word = 16,
|
||||||
|
@ -328,8 +328,8 @@ static struct platform_device bfin_spi0_device = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
static struct spi_board_info bfin_spi_board_info[] __initdata = {
|
||||||
#if defined(CONFIG_SND_BLACKFIN_AD1836) \
|
#if defined(CONFIG_SND_BLACKFIN_AD183X) \
|
||||||
|| defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
|
|| defined(CONFIG_SND_BLACKFIN_AD183X_MODULE)
|
||||||
{
|
{
|
||||||
.modalias = "ad1836",
|
.modalias = "ad1836",
|
||||||
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
.max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
|
||||||
|
|
Loading…
Reference in New Issue