]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: s3c: Fix the GPIO driver
authorMarek Vasut <marex@denx.de>
Sat, 11 Oct 2014 16:42:57 +0000 (18:42 +0200)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 6 May 2015 08:00:58 +0000 (17:00 +0900)
commit13cfd101dda099db55593fd42ddb6e387f2f3065
treed7079418f3a1c661955641c52e89343bd7ae7243
parent7b0c0f69a465661f7273c9343d017481dcdf2e39
gpio: s3c: Fix the GPIO driver

The GPIO driver didn't correctly compute the bank offset
from the GPIO number and caused random writes into the
GPIO block address space. Fix the driver so it actually
does the writes correctly. While at it, make use of the
clrsetbits_le32() mechanisms.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/gpio/s3c2440_gpio.c