diff options
author | Liu Gang <Gang.Liu@nxp.com> | 2016-02-03 19:27:34 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-02-08 18:32:58 +0100 |
commit | 42178e2a1e42b480ada954750f248b53d3fb5940 (patch) | |
tree | 3a19411d6c0c695ba4470752f48ca24e32b12f24 /Documentation/ABI/testing/sysfs-gpio | |
parent | daec0beda6fd7a741e4381741b3f7ff15970fdf6 (diff) | |
download | op-kernel-dev-42178e2a1e42b480ada954750f248b53d3fb5940.zip op-kernel-dev-42178e2a1e42b480ada954750f248b53d3fb5940.tar.gz |
drivers/gpio: Switch gpio-mpc8xxx to use gpio-generic
The new Layerscape platforms has the same ip block/controller
as GPIO on PowerPC platforms(MPC8XXX), but the GPIO registers
may be big or little endian. So the code needs to get the
endian property from DTB, then make additional functions to
fit all the PowerPC/Layerscape GPIO register read/write
operations.
gpio-generic.c provides an universal infrastructure for both
big and little endian register operations. So switch the
gpio-mpc8xxx to use gpio-generic can simplify the driver and
reduce a lot of code.
The IRQ and some workaround parts in gpio-mpc8xxx.c will be
updated with the new API interfaces but following the
original functionalities.
Signed-off-by: Liu Gang <Gang.Liu@nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-gpio')
0 files changed, 0 insertions, 0 deletions