@@ -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"
@@ -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.
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(-)