]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
gpio: s3c: Fix the GPIO driver
authorMarek Vasut <marex@denx.de>
Sat, 11 Oct 2014 16:42:57 +0000 (18:42 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:37:16 +0000 (22:37 +0200)
commit895e36f0c03d2b6bd2d6ea12d7df18af1f19f4da
treeb1bdb7be5e0d9e3f0a34374dc02bb3c88d2a7b9d
parent205f5ff8245fe786f1d5ba07f02782ae1c190cc1
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