lkml.org 
[lkml]   [2019]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 16/19] GPIO: loongson: Drop Loongson-3A/3B support
    Date
    GPIOs on Loongson-3A/B should never be touched by user,
    it may damage hardware.
    And nobody is using this driver in realworld.

    Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
    ---
    drivers/gpio/Kconfig | 6 +++---
    drivers/gpio/gpio-loongson.c | 9 +--------
    2 files changed, 4 insertions(+), 11 deletions(-)

    diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
    index 6ed3f380a45e..95e75b2a5392 100644
    --- a/drivers/gpio/Kconfig
    +++ b/drivers/gpio/Kconfig
    @@ -297,10 +297,10 @@ config GPIO_IXP4XX
    If unsure, say N.

    config GPIO_LOONGSON
    - bool "Loongson-2/3 GPIO support"
    - depends on CPU_LOONGSON2EF || CPU_LOONGSON64
    + bool "Loongson-2F GPIO support"
    + depends on CPU_LOONGSON2EF
    help
    - driver for GPIO functionality on Loongson-2F/3A/3B processors.
    + driver for GPIO functionality on Loongson-2F processors.

    config GPIO_LPC18XX
    tristate "NXP LPC18XX/43XX GPIO support"
    diff --git a/drivers/gpio/gpio-loongson.c b/drivers/gpio/gpio-loongson.c
    index 7b72846a6dc7..1d65b9a3607a 100644
    --- a/drivers/gpio/gpio-loongson.c
    +++ b/drivers/gpio/gpio-loongson.c
    @@ -19,14 +19,7 @@
    #include <asm/types.h>
    #include <loongson2ef.h>

    -#define STLS2F_N_GPIO 4
    -#define STLS3A_N_GPIO 16
    -
    -#ifdef CONFIG_CPU_LOONGSON64
    -#define LOONGSON_N_GPIO STLS3A_N_GPIO
    -#else
    -#define LOONGSON_N_GPIO STLS2F_N_GPIO
    -#endif
    +#define LOONGSON_N_GPIO 4

    /*
    * Offset into the register where we read lines, we write them from offset 0.
    --
    2.22.0
    \
     
     \ /
      Last update: 2019-09-05 16:48    [W:2.561 / U:0.292 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site