aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2010-10-07 15:35:49 +0000
committerMichael Büsch <mb@bu3sch.de>2010-10-07 15:35:49 +0000
commit226abf88f5e130adc8409bb8253d25ccefc499a8 (patch)
tree8056c5b4022082d0b2db6fb404793c5a38a7b8a7 /target/linux
parent613a513fe4619dc9c74b6817be7b71e855055e4e (diff)
downloadupstream-226abf88f5e130adc8409bb8253d25ccefc499a8.tar.gz
upstream-226abf88f5e130adc8409bb8253d25ccefc499a8.tar.bz2
upstream-226abf88f5e130adc8409bb8253d25ccefc499a8.zip
Add support for nokia n810 sound
SVN-Revision: 23303
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/omap24xx/patches-2.6.36/750-n810-sound-fixes.patch61
-rw-r--r--target/linux/omap24xx/patches-2.6.36/900-n810-battery-management.patch6
2 files changed, 64 insertions, 3 deletions
diff --git a/target/linux/omap24xx/patches-2.6.36/750-n810-sound-fixes.patch b/target/linux/omap24xx/patches-2.6.36/750-n810-sound-fixes.patch
new file mode 100644
index 0000000000..039c59f762
--- /dev/null
+++ b/target/linux/omap24xx/patches-2.6.36/750-n810-sound-fixes.patch
@@ -0,0 +1,61 @@
+---
+ arch/arm/mach-omap2/board-n8x0.c | 14 ++++++++++++++
+ sound/soc/omap/n810.c | 10 ----------
+ 2 files changed, 14 insertions(+), 10 deletions(-)
+
+--- linux-2.6.36-rc7.orig/arch/arm/mach-omap2/board-n8x0.c
++++ linux-2.6.36-rc7/arch/arm/mach-omap2/board-n8x0.c
+@@ -906,6 +906,20 @@ static void __init n8x0_gpio_switches_in
+ ARRAY_SIZE(n8x0_gpio_switches));
+ }
+
++static struct i2c_board_info n810_tlc320aic3x_i2c_dev[] = {
++ { I2C_BOARD_INFO("tlv320aic3x", 0x1b), }
++};
++
++static int __init n810_tlv320aic3x_register(void)
++{
++ if (machine_is_nokia_n810() || machine_is_nokia_n810_wimax()) {
++ i2c_register_board_info(1, n810_tlc320aic3x_i2c_dev,
++ ARRAY_SIZE(n810_tlc320aic3x_i2c_dev));
++ }
++ return 0;
++}
++arch_initcall(n810_tlv320aic3x_register);
++
+ static void __init n8x0_init_machine(void)
+ {
+ omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAC);
+--- linux-2.6.36-rc7.orig/sound/soc/omap/n810.c
++++ linux-2.6.36-rc7/sound/soc/omap/n810.c
+@@ -22,7 +22,6 @@
+ */
+
+ #include <linux/clk.h>
+-#include <linux/i2c.h>
+ #include <linux/platform_device.h>
+ #include <sound/core.h>
+ #include <sound/pcm.h>
+@@ -336,13 +335,6 @@ static struct snd_soc_device n810_snd_de
+
+ static struct platform_device *n810_snd_device;
+
+-/* temporary i2c device creation until this can be moved into the machine
+- * support file.
+-*/
+-static struct i2c_board_info i2c_device[] = {
+- { I2C_BOARD_INFO("tlv320aic3x", 0x1b), }
+-};
+-
+ static int __init n810_soc_init(void)
+ {
+ int err;
+@@ -351,8 +343,6 @@ static int __init n810_soc_init(void)
+ if (!(machine_is_nokia_n810() || machine_is_nokia_n810_wimax()))
+ return -ENODEV;
+
+- i2c_register_board_info(1, i2c_device, ARRAY_SIZE(i2c_device));
+-
+ n810_snd_device = platform_device_alloc("soc-audio", -1);
+ if (!n810_snd_device)
+ return -ENOMEM;
diff --git a/target/linux/omap24xx/patches-2.6.36/900-n810-battery-management.patch b/target/linux/omap24xx/patches-2.6.36/900-n810-battery-management.patch
index 5e4c8208d0..6dd3682b1a 100644
--- a/target/linux/omap24xx/patches-2.6.36/900-n810-battery-management.patch
+++ b/target/linux/omap24xx/patches-2.6.36/900-n810-battery-management.patch
@@ -474,9 +474,9 @@
int retu_request_irq(int id, void *irq_handler, unsigned long arg, char *name);
--- linux-2.6.36-rc7.orig/arch/arm/mach-omap2/board-n8x0.c
+++ linux-2.6.36-rc7/arch/arm/mach-omap2/board-n8x0.c
-@@ -906,6 +906,17 @@ static void __init n8x0_gpio_switches_in
- ARRAY_SIZE(n8x0_gpio_switches));
+@@ -920,6 +920,17 @@ static int __init n810_tlv320aic3x_regis
}
+ arch_initcall(n810_tlv320aic3x_register);
+static struct platform_device n810_bm_device = {
+ .name = "n810bm",
@@ -492,7 +492,7 @@
static void __init n8x0_init_machine(void)
{
omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAC);
-@@ -933,6 +944,8 @@ static void __init n8x0_init_machine(voi
+@@ -947,6 +958,8 @@ static void __init n8x0_init_machine(voi
n8x0_onenand_init();
n8x0_mmc_init();
n8x0_usb_init();