summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/spear_gpio.c
Commit message (Collapse)AuthorAgeFilesLines
* gpio: spear_gpio: Fix gpio_set_value() implementationAxel Lin2014-07-041-1/+4
| | | | | | | | | | | | | | | | In current gpio_set_value() implementation, it always sets the gpio control bit no matter the value argument is 0 or 1. Thus the GPIOs never set to low. This patch fixes this bug. The address bus is used as a mask on read/write operations, so that independent software drivers can set their GPIO bits without affecting any other pins in a single write operation. Thus we don't need a read-modify-write to update the register. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Stefan Roese <sr@denx.de> Reviewed-by: Vipin Kumar <vipin.kumar@st.com> Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
* Add GPL-2.0+ SPDX-License-Identifier to source filesWolfgang Denk2013-07-241-17/+1
| | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: Tom Rini <trini@ti.com>
* GPIO: Add SPEAr GPIO driverStefan Roese2012-07-071-0/+102
Tested on x600 (SPEAr600). Signed-off-by: Stefan Roese <sr@denx.de>
OpenPOWER on IntegriCloud