Patchwork [meta-handheld] linux-yocto: collie: add fix for locomo driver

login
register
mail settings
Submitter Andrea Adami
Date Nov. 12, 2013, 9:41 p.m.
Message ID <1384292479-15815-2-git-send-email-andrea.adami@gmail.com>
Download mbox | patch
Permalink /patch/61513/
State Accepted, archived
Headers show

Comments

Andrea Adami - Nov. 12, 2013, 9:41 p.m.
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
 .../linux/linux-yocto-3.10/collie/collie.scc       |  1 +
 .../patches-locomo/locomo-fix-SCL-SDA.patch        | 28 ++++++++++++++++++++++
 2 files changed, 29 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto-3.10/patches/patches-locomo/locomo-fix-SCL-SDA.patch

Patch

diff --git a/recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc b/recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc
index 45d296f..f15c53e 100644
--- a/recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc
+++ b/recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc
@@ -20,3 +20,4 @@  patch ../patches/patches-sa1100/fbdev-sa1100fb-make-use-of-device-clock.patch
 patch ../patches/patches-sa1100/pcmcia-sa1100-device-clock.patch
 patch ../patches/patches-sa1100/pcmcia-clock-alias-sa1111.patch
 patch ../patches/patches-sa1100/pcmcia-sa1111-device-clock.patch
+patch ../patches/patches-locomo/locomo-fix-SCL-SDA.patch
diff --git a/recipes-kernel/linux/linux-yocto-3.10/patches/patches-locomo/locomo-fix-SCL-SDA.patch b/recipes-kernel/linux/linux-yocto-3.10/patches/patches-locomo/locomo-fix-SCL-SDA.patch
new file mode 100644
index 0000000..3336e2b
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto-3.10/patches/patches-locomo/locomo-fix-SCL-SDA.patch
@@ -0,0 +1,28 @@ 
+From acc2f94781ab11bead994bb3faaad149f9187bd4 Mon Sep 17 00:00:00 2001
+From: Andrea Adami <andrea.adami@gmail.com>
+Date: Tue, 12 Nov 2013 22:21:20 +0100
+Subject: [PATCH] linux-yocto: collie: locomo.c: fix SCL line instead
+ of SDA
+
+Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
+Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
+---
+ arch/arm/common/locomo.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c
+index b55c362..d827bcb 100644
+--- a/arch/arm/common/locomo.c
++++ b/arch/arm/common/locomo.c
+@@ -629,7 +629,7 @@ static void locomo_m62332_sendbit(void *mapbase, int bit)
+ 	unsigned int r;
+ 
+ 	r = locomo_readl(mapbase + LOCOMO_DAC);
+-	r &=  ~(LOCOMO_DAC_SCLOEB);
++	r &=  ~(LOCOMO_DAC_SDAOEB);
+ 	locomo_writel(r, mapbase + LOCOMO_DAC);
+ 	udelay(DAC_LOW_SETUP_TIME);	/* 300 nsec */
+ 	udelay(DAC_DATA_HOLD_TIME);	/* 300 nsec */
+-- 
+1.8.1.5
+