• Liu Gang's avatar
    drivers/gpio: Switch gpio-mpc8xxx to use gpio-generic · 42178e2a
    Liu Gang authored
    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: default avatarLiu Gang <Gang.Liu@nxp.com>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    42178e2a
gpio-mpc8xxx.c 11 KB