summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-rp-2.6.26/zaurus-i2c-init.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/linux/linux-rp-2.6.26/zaurus-i2c-init.patch')
-rw-r--r--meta/recipes-kernel/linux/linux-rp-2.6.26/zaurus-i2c-init.patch99
1 files changed, 99 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-rp-2.6.26/zaurus-i2c-init.patch b/meta/recipes-kernel/linux/linux-rp-2.6.26/zaurus-i2c-init.patch
new file mode 100644
index 0000000000..e0db0746cd
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-rp-2.6.26/zaurus-i2c-init.patch
@@ -0,0 +1,99 @@
1Typo in poodle chunk fixed: set_pxa_i2c_info->pxa_set_i2c_info.
2
3From: Mark Brown <broonie@opensource.wolfsonmicro.com>
4To: Richard Purdie <rpurdie@rpsys.net>
5Date: Wed, 16 Jul 2008 23:19:36 +0100
6Message-Id: <1216246776-4500-1-git-send-email-broonie@opensource.wolfsonmicro.com>
7List-Id: ARM Linux kernel discussions
8 <linux-arm-kernel.lists.arm.linux.org.uk>
9
10Both spitz and poodle have audio codecs on their primary I2C bus so need
11to call pxa_set_i2c_info() to set it up during init. Tested on spitz by
12Stanislav.
13
14Reported-by: Stanislav Brabec <utx@penguin.cz>
15Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
16---
17 arch/arm/mach-pxa/corgi.c | 2 ++
18 arch/arm/mach-pxa/poodle.c | 2 ++
19 arch/arm/mach-pxa/spitz.c | 2 ++
20 3 files changed, 6 insertions(+)
21
22--- linux-2.6.26.orig/arch/arm/mach-pxa/corgi.c
23+++ linux-2.6.26/arch/arm/mach-pxa/corgi.c
24@@ -38,10 +38,11 @@
25 #include <asm/arch/pxa-regs.h>
26 #include <asm/arch/pxa2xx-gpio.h>
27 #include <asm/arch/irda.h>
28 #include <asm/arch/mmc.h>
29 #include <asm/arch/udc.h>
30+#include <asm/arch/i2c.h>
31 #include <asm/arch/corgi.h>
32 #include <asm/arch/sharpsl.h>
33
34 #include <asm/mach/sharpsl_param.h>
35 #include <asm/hardware/scoop.h>
36@@ -529,10 +530,11 @@ static void __init corgi_init(void)
37 pxa_gpio_mode(CORGI_GPIO_HSYNC | GPIO_IN);
38
39 pxa_set_udc_info(&udc_info);
40 pxa_set_mci_info(&corgi_mci_platform_data);
41 pxa_set_ficp_info(&corgi_ficp_platform_data);
42+ pxa_set_i2c_info(NULL);
43
44 platform_scoop_config = &corgi_pcmcia_config;
45
46 platform_add_devices(devices, ARRAY_SIZE(devices));
47 }
48--- linux-2.6.26.orig/arch/arm/mach-pxa/poodle.c
49+++ linux-2.6.26/arch/arm/mach-pxa/poodle.c
50@@ -33,10 +33,11 @@
51
52 #include <asm/arch/pxa-regs.h>
53 #include <asm/arch/pxa2xx-gpio.h>
54 #include <asm/arch/mmc.h>
55 #include <asm/arch/udc.h>
56+#include <asm/arch/i2c.h>
57 #include <asm/arch/irda.h>
58 #include <asm/arch/poodle.h>
59 #include <asm/arch/pxafb.h>
60 #include <asm/arch/sharpsl.h>
61 #include <asm/arch/ssp.h>
62@@ -386,10 +387,11 @@ static void __init poodle_init(void)
63 pxa_gpio_mode(POODLE_GPIO_USB_PULLUP | GPIO_OUT);
64 pxa_gpio_mode(POODLE_GPIO_IR_ON | GPIO_OUT);
65 pxa_set_udc_info(&udc_info);
66 pxa_set_mci_info(&poodle_mci_platform_data);
67 pxa_set_ficp_info(&poodle_ficp_platform_data);
68+ pxa_set_i2c_info(NULL);
69
70 platform_scoop_config = &poodle_pcmcia_config;
71
72 ret = platform_add_devices(devices, ARRAY_SIZE(devices));
73 if (ret) {
74--- linux-2.6.26.orig/arch/arm/mach-pxa/spitz.c
75+++ linux-2.6.26/arch/arm/mach-pxa/spitz.c
76@@ -36,10 +36,11 @@
77 #include <asm/mach/irq.h>
78
79 #include <asm/arch/pxa-regs.h>
80 #include <asm/arch/pxa2xx-regs.h>
81 #include <asm/arch/pxa2xx-gpio.h>
82+#include <asm/arch/i2c.h>
83 #include <asm/arch/irda.h>
84 #include <asm/arch/mmc.h>
85 #include <asm/arch/ohci.h>
86 #include <asm/arch/udc.h>
87 #include <asm/arch/pxafb.h>
88@@ -579,10 +580,11 @@ static void __init common_init(void)
89 pxa_set_mci_info(&spitz_mci_platform_data);
90 pxa_set_ohci_info(&spitz_ohci_platform_data);
91 pxa_set_ficp_info(&spitz_ficp_platform_data);
92 set_pxa_fb_parent(&spitzssp_device.dev);
93 set_pxa_fb_info(&spitz_pxafb_info);
94+ pxa_set_i2c_info(NULL);
95 }
96
97 #if defined(CONFIG_MACH_SPITZ) || defined(CONFIG_MACH_BORZOI)
98 static void spitz_bl_set_intensity(int intensity)
99 {