diff options
author | Barry Song <barry.song@analog.com> | 2009-10-13 05:19:18 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-09 00:30:49 -0500 |
commit | 336746ed8ee8ef503ba79bc4b6f0b5a40e8ab3ce (patch) | |
tree | b917590d61960385c7e3d8ae2e218e299bc4ae26 /arch/blackfin/mach-bf537 | |
parent | 439b486746df9f57524e002dfd6117bbc040e925 (diff) |
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>
Diffstat (limited to 'arch/blackfin/mach-bf537')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index f78861a617d9..80b3b577f74e 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -1849,9 +1849,26 @@ static struct platform_device bfin_dpmc = { | |||
1849 | }, | 1849 | }, |
1850 | }; | 1850 | }; |
1851 | 1851 | ||
1852 | #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) | ||
1853 | static struct platform_device bfin_i2s = { | ||
1854 | .name = "bfin-i2s", | ||
1855 | .id = CONFIG_SND_BF5XX_SPORT_NUM, | ||
1856 | /* TODO: add platform data here */ | ||
1857 | }; | ||
1858 | #endif | ||
1859 | |||
1852 | #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE) | 1860 | #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE) |
1853 | static struct platform_device bfin_tdm = { | 1861 | static struct platform_device bfin_tdm = { |
1854 | .name = "bfin-tdm", | 1862 | .name = "bfin-tdm", |
1863 | .id = CONFIG_SND_BF5XX_SPORT_NUM, | ||
1864 | /* TODO: add platform data here */ | ||
1865 | }; | ||
1866 | #endif | ||
1867 | |||
1868 | #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) | ||
1869 | static struct platform_device bfin_ac97 = { | ||
1870 | .name = "bfin-ac97", | ||
1871 | .id = CONFIG_SND_BF5XX_SPORT_NUM, | ||
1855 | /* TODO: add platform data here */ | 1872 | /* TODO: add platform data here */ |
1856 | }; | 1873 | }; |
1857 | #endif | 1874 | #endif |
@@ -1965,9 +1982,17 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
1965 | &stamp_flash_device, | 1982 | &stamp_flash_device, |
1966 | #endif | 1983 | #endif |
1967 | 1984 | ||
1985 | #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) | ||
1986 | &bfin_i2s, | ||
1987 | #endif | ||
1988 | |||
1968 | #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE) | 1989 | #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE) |
1969 | &bfin_tdm, | 1990 | &bfin_tdm, |
1970 | #endif | 1991 | #endif |
1992 | |||
1993 | #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) | ||
1994 | &bfin_ac97, | ||
1995 | #endif | ||
1971 | }; | 1996 | }; |
1972 | 1997 | ||
1973 | static int __init stamp_init(void) | 1998 | static int __init stamp_init(void) |