u-boot-brain/drivers
Simon Glass 651827c0fc tegra: gpio: Show the GPIO value for outputs
The tegra GPIO controller has two ways of reading the value of a GPIO. It
can supply the 'input' value (which is the value read from the pin) and the
'output' value (which is the value being driven from the pin. With a GPIO
set to output mode, the 'input' value is always low which is not very
useful.

This has the unfortunate result that setting a GPIO high still leaves it
showing as low in the 'gpio status' command.

Adjust the driver to check which direction the GPIO is set to, then read
the value from the appropriate register: 'input' for input GPIOs, 'output'
for output GPIOs.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
2016-02-16 09:17:50 -07:00
..
adc sandbox: add ADC driver 2015-11-02 10:38:00 +09:00
bios_emulator dm: pci: Convert bios_emu to use the driver model PCI API 2016-01-24 12:07:19 +08:00
block Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
bootcount bootcount: Correct #endif comment to match, other aesthetics 2016-01-08 10:15:43 -05:00
clk clk: uniphier: add Media I/O clock driver for UniPhier SoCs 2016-02-14 16:36:13 +09:00
core dm: Remove device_probe_child() 2016-01-28 21:01:23 -07:00
cpu x86: Move MP initialization codes into a common place 2015-07-14 18:03:16 -06:00
crypto drivers/crypto/fsl: fix endianness issue in RNG 2015-12-15 08:57:35 +08:00
ddr Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
demo drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
dfu mmc: store hwpart in the block device 2016-01-13 21:05:19 -05:00
dma imx: apbh_dma: Update APBH-DMA for MX7D 2016-01-24 12:09:16 +01:00
fpga Revert "arm: socfpga: set the fpga global bit to disable HPS to FPGA signals" 2016-02-04 12:43:21 +01:00
gpio tegra: gpio: Show the GPIO value for outputs 2016-02-16 09:17:50 -07:00
hwmon mailaddr: Update mail address 2016-01-27 15:32:05 +01:00
i2c mvtwsi: Fix breakage introduced by "Fix mvtwsi not working on sun6i and newer sunxi SoCs" 2016-01-26 17:58:02 +01:00
input tegra: keyboard: Fix the init order 2016-02-16 09:17:49 -07:00
led dm: led: Tidy up SPL options for the led and led-gpio 2015-09-02 21:28:22 -06:00
memory Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
misc misc: Add simple driver to enable the legacy UART on Winbond Super IO chips 2016-01-28 13:53:30 +08:00
mmc tegra: mmc: Fix comments in the MMC driver init 2016-02-16 09:17:50 -07:00
mtd arasan: nfc: Add initial nand driver support for arasan 2016-02-12 17:27:41 -06:00
net drivers: net: keystone_net: convert driver to adopt device driver model 2016-02-08 10:10:46 -05:00
pch x86: pch9: Implement get_io_base op 2016-02-05 12:47:21 +08:00
pci Merge git://git.denx.de/u-boot-dm 2016-01-29 13:47:38 -05:00
pcmcia powerpc: mpc824x: remove MPC824X cpu support 2015-01-05 12:08:55 -05:00
pinctrl drivers: pinctrl: Add pinctrl driver for Microchip PIC32. 2016-02-01 22:14:00 +01:00
power sunxi: power: axp818: Enable support for ALDOs 2016-01-26 16:20:05 +01:00
pwm pwm: rockchip: Add a PWM driver for Rockchip SoCs 2016-01-21 20:42:36 -07:00
qe driver/qe: use strncpy instead of strcpy 2015-08-03 12:06:36 -07:00
ram ram: rename CONFIG_SPL_RAM_SUPPORT to CONFIG_SPL_RAM 2015-08-18 13:46:02 -04:00
remoteproc drivers: remoteproc: rproc-uclass: Fix check for NULL pointers 2015-12-05 18:22:32 -05:00
rtc rtc: Add MCP79411 support to DS1307 rtc driver 2015-11-04 15:19:12 -08:00
serial s3c24xx: serial: Remove dead code 2016-02-08 10:24:18 -05:00
soc Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
sound of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
spi dm: pch: Rename get_sbase op to get_spi_base 2016-02-05 12:47:21 +08:00
thermal imx: mx7: fix the temperature checking for Rev1.1 2016-01-07 17:53:11 +01:00
timer timer: sandbox: work without device tree 2016-01-20 19:06:23 -07:00
tpm tpm: st33zp24: Add tpm st33zp24 spi support 2016-01-28 21:01:22 -07:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb usb: remove UniPhier EHCI driver 2016-02-14 17:03:42 +09:00
video dm: video: Flush the cache after a puts() 2016-02-16 09:17:50 -07:00
watchdog imx_watchdog: always set minimal timeout in reset_cpu 2016-01-07 17:54:53 +01:00
Kconfig dm: pwm: Add a PWM uclass 2016-01-21 20:42:36 -07:00
Makefile drivers: ddr: Add DDR2 SDRAM controller driver for Microchip PIC32. 2016-02-01 22:14:01 +01:00