summaryrefslogtreecommitdiff
path: root/drivers/pwm/tegra_pwm.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-30 23:37:45 (GMT)
committerTom Warren <twarren@nvidia.com>2016-02-16 16:17:50 (GMT)
commit651827c0fc3d91e0a6f2170890a11bc77557ee2e (patch)
treeb77e48e7f33309a6eead3ac93c9a99fc5723426b /drivers/pwm/tegra_pwm.c
parent300e2353788d433ec64bd7b529ea9143bb7f4e52 (diff)
downloadu-boot-fsl-qoriq-651827c0fc3d91e0a6f2170890a11bc77557ee2e.tar.xz
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>
Diffstat (limited to 'drivers/pwm/tegra_pwm.c')
0 files changed, 0 insertions, 0 deletions