···2020 bool2121 default y22222323+config GENERIC_GPIO2424+ bool2525+ help2626+ Generic GPIO API support2727+2328config ARCH_NO_VIRT_TO_BUS2429 def_bool y2530···7469 select HAVE_OPROFILE7570 select HAVE_ARCH_KGDB if !SMP7671 select HAVE_ARCH_TRACEHOOK7272+ select ARCH_WANT_OPTIONAL_GPIOLIB77737874# Identify this as a Sparc32 build7975config SPARC32
+36
arch/sparc/include/asm/gpio.h
···11+#ifndef __ASM_SPARC_GPIO_H22+#define __ASM_SPARC_GPIO_H33+44+#include <linux/errno.h>55+#include <asm-generic/gpio.h>66+77+#ifdef CONFIG_GPIOLIB88+99+static inline int gpio_get_value(unsigned int gpio)1010+{1111+ return __gpio_get_value(gpio);1212+}1313+1414+static inline void gpio_set_value(unsigned int gpio, int value)1515+{1616+ __gpio_set_value(gpio, value);1717+}1818+1919+static inline int gpio_cansleep(unsigned int gpio)2020+{2121+ return __gpio_cansleep(gpio);2222+}2323+2424+static inline int gpio_to_irq(unsigned int gpio)2525+{2626+ return -ENOSYS;2727+}2828+2929+static inline int irq_to_gpio(unsigned int irq)3030+{3131+ return -EINVAL;3232+}3333+3434+#endif /* CONFIG_GPIOLIB */3535+3636+#endif /* __ASM_SPARC_GPIO_H */
+6
arch/sparc64/Kconfig
···1818 select HAVE_ARCH_KGDB1919 select USE_GENERIC_SMP_HELPERS if SMP2020 select HAVE_ARCH_TRACEHOOK2121+ select ARCH_WANT_OPTIONAL_GPIOLIB21222223config GENERIC_TIME2324 bool···3130config GENERIC_CLOCKEVENTS3231 bool3332 default y3333+3434+config GENERIC_GPIO3535+ bool3636+ help3737+ Generic GPIO API support34383539config 64BIT3640 def_bool y