mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 18:50:53 +07:00
Blackfin: bf537-stamp/bf527-ezkit: move ASoC SPORT resources to boards file
Rather than declaring pin resources in the drivers, do it in the board. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
439b486746
commit
336746ed8e
@ -494,6 +494,22 @@ static struct bfin5xx_spi_chip spidev_chip_info = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE)
|
||||||
|
static struct platform_device bfin_i2s = {
|
||||||
|
.name = "bfin-i2s",
|
||||||
|
.id = CONFIG_SND_BF5XX_SPORT_NUM,
|
||||||
|
/* TODO: add platform data here */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
|
||||||
|
static struct platform_device bfin_tdm = {
|
||||||
|
.name = "bfin-tdm",
|
||||||
|
.id = CONFIG_SND_BF5XX_SPORT_NUM,
|
||||||
|
/* TODO: add platform data here */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE)
|
#if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE)
|
||||||
static struct bfin5xx_spi_chip lq035q1_spi_chip_info = {
|
static struct bfin5xx_spi_chip lq035q1_spi_chip_info = {
|
||||||
.enable_dma = 0,
|
.enable_dma = 0,
|
||||||
@ -1152,6 +1168,14 @@ static struct platform_device *stamp_devices[] __initdata = {
|
|||||||
#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
|
#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
|
||||||
&ezkit_flash_device,
|
&ezkit_flash_device,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE)
|
||||||
|
&bfin_i2s,
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
|
||||||
|
&bfin_tdm,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init ezkit_init(void)
|
static int __init ezkit_init(void)
|
||||||
|
@ -1849,9 +1849,26 @@ static struct platform_device bfin_dpmc = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE)
|
||||||
|
static struct platform_device bfin_i2s = {
|
||||||
|
.name = "bfin-i2s",
|
||||||
|
.id = CONFIG_SND_BF5XX_SPORT_NUM,
|
||||||
|
/* TODO: add platform data here */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
|
#if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
|
||||||
static struct platform_device bfin_tdm = {
|
static struct platform_device bfin_tdm = {
|
||||||
.name = "bfin-tdm",
|
.name = "bfin-tdm",
|
||||||
|
.id = CONFIG_SND_BF5XX_SPORT_NUM,
|
||||||
|
/* TODO: add platform data here */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE)
|
||||||
|
static struct platform_device bfin_ac97 = {
|
||||||
|
.name = "bfin-ac97",
|
||||||
|
.id = CONFIG_SND_BF5XX_SPORT_NUM,
|
||||||
/* TODO: add platform data here */
|
/* TODO: add platform data here */
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -1965,9 +1982,17 @@ static struct platform_device *stamp_devices[] __initdata = {
|
|||||||
&stamp_flash_device,
|
&stamp_flash_device,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE)
|
||||||
|
&bfin_i2s,
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
|
#if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
|
||||||
&bfin_tdm,
|
&bfin_tdm,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE)
|
||||||
|
&bfin_ac97,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init stamp_init(void)
|
static int __init stamp_init(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user