aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio/tegra186_gpio.c
diff options
context:
space:
mode:
authorEugeniy Paltsev2018-06-08 17:58:23 +0300
committerAlexey Brodkin2018-07-31 07:49:47 +0300
commitfe3eb7a88720fc33d92ed712c56c62cfcdffc0ca (patch)
treeeef4673ed546cf04f1546c8517c6b035b060d0ef /drivers/gpio/tegra186_gpio.c
parent5a0007d481c0fcd2d422dd48b2a129dd8e8a272a (diff)
GPIO: CREG: improve flexibility of hsdk-creg-gpio driver
CREG GPIO is a driver for weird soc-specific output ports, which are controlled by some fields in memory mapped register. Example: 31 9 7 5 0 < bit number | | | | | [ not used | gpio-1 | gpio-0 | <-shift-> ] < 32 bit register ^ ^ | | write 0x2 == set output to "1" (activate) write 0x3 == set output to "0" (deactivate) As of tooday we only support fixed (hardcoded) bit per gpio line, activate / deactivatei and shift values. Fix that by read them from device tree to be able to use this driver for other boards. Remove "hsdk" prefix from compatible string as this driver can be used with different boards like HSDK, AXS101, AXS103, etc. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Diffstat (limited to 'drivers/gpio/tegra186_gpio.c')
0 files changed, 0 insertions, 0 deletions