Lines Matching +full:loongson +full:- +full:1 +full:c
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Loongson-2F/3A/3B GPIO Support
5 * Copyright (c) 2008 Richard Liu, STMicroelectronics <richard.liu@st.com>
6 * Copyright (c) 2008-2010 Arnaud Patard <apatard@mandriva.com>
7 * Copyright (c) 2013 Hongbing Hu <huhb@lemote.com>
8 * Copyright (c) 2014 Huacai Chen <chenhc@lemote.com>
20 #include <loongson.h>
97 struct device *dev = &pdev->dev; in loongson_gpio_probe()
101 return -ENOMEM; in loongson_gpio_probe()
103 gc->label = "loongson-gpio-chip"; in loongson_gpio_probe()
104 gc->base = 0; in loongson_gpio_probe()
105 gc->ngpio = LOONGSON_N_GPIO; in loongson_gpio_probe()
106 gc->get = loongson_gpio_get_value; in loongson_gpio_probe()
107 gc->set = loongson_gpio_set_value; in loongson_gpio_probe()
108 gc->direction_input = loongson_gpio_direction_input; in loongson_gpio_probe()
109 gc->direction_output = loongson_gpio_direction_output; in loongson_gpio_probe()
116 .name = "loongson-gpio",
128 pr_err("error registering loongson GPIO driver\n"); in loongson_gpio_setup()
132 pdev = platform_device_register_simple("loongson-gpio", -1, NULL, 0); in loongson_gpio_setup()