14 #include <linux/kernel.h>
19 #define NR_FPGA_GPIOS 8
22 "in0",
"in1",
"in2",
"in3",
"in4",
"in5",
"in6",
"in7",
25 static int usrgpir_gpio_direction_input(
struct gpio_chip *
chip,
unsigned gpio)
31 static int usrgpir_gpio_get(
struct gpio_chip *
chip,
unsigned gpio)
36 static struct gpio_chip usrgpir_gpio_chip = {
37 .label =
"sdk7786-fpga",
38 .names = usrgpir_gpio_names,
39 .direction_input = usrgpir_gpio_direction_input,
40 .get = usrgpir_gpio_get,
45 static int __init usrgpir_gpio_setup(
void)