Lines Matching +full:ls1x +full:- +full:gpio
2 * GPIO Driver for Loongson 1 SoC
4 * Copyright (C) 2015-2016 Zhang, Keguang <keguang.zhang@gmail.com>
12 #include <linux/gpio/driver.h>
16 /* Loongson 1 GPIO Register Definitions */
28 spin_lock_irqsave(&gc->bgpio_lock, flags); in ls1x_gpio_request()
31 spin_unlock_irqrestore(&gc->bgpio_lock, flags); in ls1x_gpio_request()
40 spin_lock_irqsave(&gc->bgpio_lock, flags); in ls1x_gpio_free()
43 spin_unlock_irqrestore(&gc->bgpio_lock, flags); in ls1x_gpio_free()
48 struct device *dev = &pdev->dev; in ls1x_gpio_probe()
54 return -ENOMEM; in ls1x_gpio_probe()
66 gc->owner = THIS_MODULE; in ls1x_gpio_probe()
67 gc->request = ls1x_gpio_request; in ls1x_gpio_probe()
68 gc->free = ls1x_gpio_free; in ls1x_gpio_probe()
69 gc->base = pdev->id * 32; in ls1x_gpio_probe()
76 dev_info(dev, "Loongson1 GPIO driver registered\n"); in ls1x_gpio_probe()
80 dev_err(dev, "failed to register GPIO device\n"); in ls1x_gpio_probe()
87 .name = "ls1x-gpio",
94 MODULE_DESCRIPTION("Loongson1 GPIO driver");