[Armadeus-commitlog] SF.net SVN: armadeus:[1105] trunk/buildroot/target/device/armadeus/linux/ ker
Brought to you by:
sszy
|
From: <th...@us...> - 2009-03-02 16:14:56
|
Revision: 1105
http://armadeus.svn.sourceforge.net/armadeus/?rev=1105&view=rev
Author: thom25
Date: 2009-03-02 16:14:50 +0000 (Mon, 02 Mar 2009)
Log Message:
-----------
[LINUX] fix error in gpio.c (ticket #9)
Added Paths:
-----------
trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.27.13/313-apf27-armadeus-pengu_gpio.patch
Added: trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.27.13/313-apf27-armadeus-pengu_gpio.patch
===================================================================
--- trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.27.13/313-apf27-armadeus-pengu_gpio.patch (rev 0)
+++ trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.27.13/313-apf27-armadeus-pengu_gpio.patch 2009-03-02 16:14:50 UTC (rev 1105)
@@ -0,0 +1,18 @@
+This patch fixes an error in gpio.c (gpio_get)
+
+Signed-off-by: Nicolas Colombain <nic...@ar...>
+
+Index: linux-2.6.27.13/arch/arm/plat-mxc/include/mach/ulpi.h
+===================================================================
+--- linux-2.6.27.13.orig/arch/arm/plat-mxc/gpio.c 2008-10-10 00:13:53.000000000 +0200
++++ linux-2.6.27.13/arch/arm/plat-mxc/gpio.c 2009-03-01 08:29:01.000000000 +0100
+@@ -187,8 +187,7 @@ static int mxc_gpio_get(struct gpio_chip
+ {
+ struct mxc_gpio_port *port =
+ container_of(chip, struct mxc_gpio_port, chip);
+-
+- return (__raw_readl(port->base + GPIO_DR) >> offset) & 1;
++ return (__raw_readl(port->base + GPIO_PSR) >> offset) & 1;
+ }
+
+ static int mxc_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|