Lines Matching +full:gpio +full:- +full:dir
1 // SPDX-License-Identifier: GPL-2.0-only
3 * A gpio chip driver for TXx9 SoCs
10 #include <linux/gpio/driver.h>
21 return !!(__raw_readl(&txx9_pioptr->din) & (1 << offset)); in txx9_gpio_get()
27 val = __raw_readl(&txx9_pioptr->dout); in txx9_gpio_set_raw()
32 __raw_writel(val, &txx9_pioptr->dout); in txx9_gpio_set_raw()
49 __raw_writel(__raw_readl(&txx9_pioptr->dir) & ~(1 << offset), in txx9_gpio_dir_in()
50 &txx9_pioptr->dir); in txx9_gpio_dir_in()
62 __raw_writel(__raw_readl(&txx9_pioptr->dir) | (1 << offset), in txx9_gpio_dir_out()
63 &txx9_pioptr->dir); in txx9_gpio_dir_out()
82 return -ENODEV; in txx9_gpio_init()