Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4b834c1 authored by Barry Song's avatar Barry Song Committed by Mike Frysinger
Browse files

Blackfin: bf537-stamp: add resources for AD1938 audio card

parent e68d1ebc
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -524,6 +524,15 @@ static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
};
#endif

#if defined(CONFIG_SND_BF5XX_SOC_AD1938) \
	|| defined(CONFIG_SND_BF5XX_SOC_AD1938_MODULE)
static struct bfin5xx_spi_chip ad1938_spi_chip_info = {
	.enable_dma = 0,
	.bits_per_word = 8,
	.cs_gpio = GPIO_PF5,
};
#endif

#if defined(CONFIG_AD9960) || defined(CONFIG_AD9960_MODULE)
static struct bfin5xx_spi_chip ad9960_spi_chip_info = {
	.enable_dma = 0,
@@ -754,6 +763,18 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
		.controller_data = &ad1836_spi_chip_info,
	},
#endif

#if defined(CONFIG_SND_BF5XX_SOC_AD1938) || defined(CONFIG_SND_BF5XX_SOC_AD1938_MODULE)
	{
		.modalias = "ad1938-spi",
		.max_speed_hz = 3125000,     /* max spi clock (SCK) speed in HZ */
		.bus_num = 0,
		.chip_select = 0,/* CONFIG_SND_BLACKFIN_SPI_PFBIT */
		.controller_data = &ad1938_spi_chip_info,
		.mode = SPI_MODE_3,
	},
#endif

#if defined(CONFIG_AD9960) || defined(CONFIG_AD9960_MODULE)
	{
		.modalias = "ad9960-spi",