diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-09-10 05:01:19 +0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-09-23 08:18:07 +0200 |
commit | 081b355dd5a17788880a0241ed988c7483c1e40f (patch) | |
tree | f33f0fdcc6882ce59078ec3c88333f9d54d40cb3 | |
parent | 8bae3e2335132aadd29662694866a55d52bff850 (diff) | |
download | lwn-081b355dd5a17788880a0241ed988c7483c1e40f.tar.gz lwn-081b355dd5a17788880a0241ed988c7483c1e40f.zip |
sound: ASoC: Support runtime selection of CPU in pxa2xx-i2s
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | sound/soc/pxa/pxa2xx-i2s.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c index c796b1882776..21ca3fe22306 100644 --- a/sound/soc/pxa/pxa2xx-i2s.c +++ b/sound/soc/pxa/pxa2xx-i2s.c @@ -65,11 +65,6 @@ static struct pxa2xx_gpio gpio_bus[] = { .frm = GPIO31_SYNC_I2S_MD, }, { /* I2S SoC Master */ -#ifdef CONFIG_PXA27x - .sys = GPIO113_I2S_SYSCLK_MD, -#else - .sys = GPIO32_SYSCLK_I2S_MD, -#endif .rx = GPIO29_SDATA_IN_I2S_MD, .tx = GPIO30_SDATA_OUT_I2S_MD, .clk = GPIO28_BITCLK_OUT_I2S_MD, @@ -343,6 +338,11 @@ static struct platform_driver pxa2xx_i2s_driver = { static int __init pxa2xx_i2s_init(void) { + if (cpu_is_pxa27x()) + gpio_bus[1].sys = GPIO113_I2S_SYSCLK_MD; + else + gpio_bus[1].sys = GPIO32_SYSCLK_I2S_MD; + clk_i2s = ERR_PTR(-ENOENT); return platform_driver_register(&pxa2xx_i2s_driver); } |