]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
[ARM] 4552/1: i.MX/MX1 GPIO output setup fix
authorPavel Pisa <ppisa@pikron.com>
Mon, 20 Aug 2007 20:39:41 +0000 (21:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 23 Aug 2007 11:35:11 +0000 (12:35 +0100)
commita228d6e7ed8e3624b6c1497a550d8d0e2cac889f
tree3b3e0a650c701fd17df0b89cbe3c3b95b77bca3b
parent7b1bc03e803f772bf71245eaba461651f32481b4
[ARM] 4552/1: i.MX/MX1 GPIO output setup fix

The pins for GPIO should be provided as plain number
build as (GPIO_PORTx + pin_number). But to setup
the output GPIO_GIUS and GPIO_DR have to be specified
in mode to route right value to the pin.

This is a fix, it should go to 2.6.23

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-imx/generic.c