From 64caddc88d6901fea54b2265a1d44e26d061574a Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Thu, 17 Jul 2008 08:09:17 +0000 Subject: linux-rp-2.6.26: Added zaurus-i2c-init.patch: * initialize I2C on Poodle and Spitz * sound works again * suspend does not hang if sound modules are loaded --- .../linux/linux-rp-2.6.26/zaurus-i2c-init.patch | 66 ++++++++++++++++++++++ packages/linux/linux-rp_2.6.26.bb | 3 +- 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 packages/linux/linux-rp-2.6.26/zaurus-i2c-init.patch (limited to 'packages') diff --git a/packages/linux/linux-rp-2.6.26/zaurus-i2c-init.patch b/packages/linux/linux-rp-2.6.26/zaurus-i2c-init.patch new file mode 100644 index 0000000000..b264a121b7 --- /dev/null +++ b/packages/linux/linux-rp-2.6.26/zaurus-i2c-init.patch @@ -0,0 +1,66 @@ +From: Mark Brown +To: Richard Purdie +Date: Wed, 16 Jul 2008 23:19:36 +0100 +Message-Id: <1216246776-4500-1-git-send-email-broonie@opensource.wolfsonmicro.com> +List-Id: ARM Linux kernel discussions + + +Both spitz and poodle have audio codecs on their primary I2C bus so need +to call pxa_set_i2c_info() to set it up during init. Tested on spitz by +Stanislav. + +Reported-by: Stanislav Brabec +Signed-off-by: Mark Brown +--- + arch/arm/mach-pxa/poodle.c | 2 ++ + arch/arm/mach-pxa/spitz.c | 2 ++ + 2 files changed, 4 insertions(+), 0 deletions(-) + +diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c +index 39612cf..510018b 100644 +--- a/arch/arm/mach-pxa/poodle.c ++++ b/arch/arm/mach-pxa/poodle.c +@@ -36,6 +36,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -387,6 +388,7 @@ static void __init poodle_init(void) + pxa_set_udc_info(&udc_info); + pxa_set_mci_info(&poodle_mci_platform_data); + pxa_set_ficp_info(&poodle_ficp_platform_data); ++ set_pxa_i2c_info(NULL); + + platform_scoop_config = &poodle_pcmcia_config; + +diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c +index 35616a5..e2bde09 100644 +--- a/arch/arm/mach-pxa/spitz.c ++++ b/arch/arm/mach-pxa/spitz.c +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -572,6 +573,7 @@ static void __init common_init(void) + pxa_set_ficp_info(&spitz_ficp_platform_data); + set_pxa_fb_parent(&spitzssp_device.dev); + set_pxa_fb_info(&spitz_pxafb_info); ++ pxa_set_i2c_info(NULL); + } + + #if defined(CONFIG_MACH_SPITZ) || defined(CONFIG_MACH_BORZOI) +-- +1.5.6.2 + + +------------------------------------------------------------------- +List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel +FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php +Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php diff --git a/packages/linux/linux-rp_2.6.26.bb b/packages/linux/linux-rp_2.6.26.bb index b2d378dd8e..74ed5920e8 100644 --- a/packages/linux/linux-rp_2.6.26.bb +++ b/packages/linux/linux-rp_2.6.26.bb @@ -1,6 +1,6 @@ require linux-rp.inc -PR = "r0" +PR = "r1" DEFAULT_PREFERENCE = "-1" DEFAULT_PREFERENCE_qemuarm = "-1" @@ -35,6 +35,7 @@ SRC_URI = "${KERNELORG_MIRROR}pub/linux/kernel/v2.6/linux-2.6.26.tar.bz2 \ ${RPSRC}/poodle_pm-r6.patch;patch=1 \ ${RPSRC}/poodle_lcd_hack-r0.patch;patch=1 \ ${RPSRC}/poodle_asoc_fix-r1.patch;patch=1 \ + file://zaurus-i2c-init.patch;patch=1;status=upstream \ ${RPSRC}/logo_oh-r1.patch.bz2;patch=1;status=unmergable \ ${RPSRC}/pxa-linking-bug.patch;patch=1;status=unmergable \ file://hostap-monitor-mode.patch;patch=1;status=unmergable \ -- cgit v1.2.3