Home
last modified time | relevance | path

Searched refs:gpio_bank (Results 1 – 23 of 23) sorted by relevance

/rk3399_rockchip-uboot/drivers/gpio/
H A Domap_gpio.c38 struct gpio_bank { struct
55 static void _set_gpio_direction(const struct gpio_bank *bank, int gpio, in _set_gpio_direction() argument
75 static int _get_gpio_direction(const struct gpio_bank *bank, int gpio) in _get_gpio_direction()
90 static void _set_gpio_dataout(const struct gpio_bank *bank, int gpio, in _set_gpio_dataout()
105 static int _get_gpio_value(const struct gpio_bank *bank, int gpio) in _get_gpio_value()
127 static inline const struct gpio_bank *get_gpio_bank(int gpio) in get_gpio_bank()
146 const struct gpio_bank *bank; in gpio_set_value()
161 const struct gpio_bank *bank; in gpio_get_value()
175 const struct gpio_bank *bank; in gpio_direction_input()
191 const struct gpio_bank *bank; in gpio_direction_output()
[all …]
H A Dtca642x.c95 int tca642x_set_val(uchar chip, uint8_t gpio_bank, in tca642x_set_val() argument
98 uint8_t out_reg = tca642x_regs[gpio_bank].output_reg; in tca642x_set_val()
107 int tca642x_set_pol(uchar chip, uint8_t gpio_bank, in tca642x_set_pol() argument
110 uint8_t pol_reg = tca642x_regs[gpio_bank].polarity_reg; in tca642x_set_pol()
119 int tca642x_set_dir(uchar chip, uint8_t gpio_bank, in tca642x_set_dir() argument
122 uint8_t config_reg = tca642x_regs[gpio_bank].configuration_reg; in tca642x_set_dir()
130 int tca642x_get_val(uchar chip, uint8_t gpio_bank) in tca642x_get_val() argument
133 uint8_t in_reg = tca642x_regs[gpio_bank].input_reg; in tca642x_get_val()
227 uint8_t gpio_bank = 0; in do_tca642x() local
251 gpio_bank = 0; in do_tca642x()
[all …]
H A Dadi_gpio2.c50 #define map_entry(m, i) reserved_##m##_map[gpio_bank(i)]
57 static DECLARE_RESERVED_MAP(peri, gpio_bank(MAX_RESOURCES));
76 gpio_array[gpio_bank(gpio)]->port_fer &= ~gpio_bit(gpio); in port_setup()
78 gpio_array[gpio_bank(gpio)]->port_fer |= gpio_bit(gpio); in port_setup()
81 gpio_array[gpio_bank(gpio)]->port_fer_clear = gpio_bit(gpio); in port_setup()
83 gpio_array[gpio_bank(gpio)]->port_fer_set = gpio_bit(gpio); in port_setup()
93 pmux = gpio_array[gpio_bank(ident)]->port_mux; in portmux_setup()
98 gpio_array[gpio_bank(ident)]->port_mux = pmux; in portmux_setup()
106 pmux = gpio_array[gpio_bank(ident)]->port_mux; in get_portmux()
114 (gpio_array[gpio_bank(gpio)]->dir_clear >> gpio_sub_n(gpio)); in get_gpio_dir()
[all …]
H A Dhi6220_gpio.c16 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_input()
29 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_set_value()
38 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_output()
52 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_get_value()
68 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_probe()
92 .priv_auto_alloc_size = sizeof(struct gpio_bank),
H A Dtegra_gpio.c49 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_config()
66 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_config()
84 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_direction()
101 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_direction()
119 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_level()
360 plat->bank = &ctlr->gpio_bank[bank]; in gpio_tegra_bind()
H A Dsunxi_gpio.c307 plat->regs = &ctlr->gpio_bank[bank]; in gpio_sunxi_bind()
/rk3399_rockchip-uboot/include/
H A Dtca642x.h60 int tca642x_set_val(uchar chip, uint8_t gpio_bank,
62 int tca642x_set_pol(uchar chip, uint8_t gpio_bank,
64 int tca642x_set_dir(uchar chip, uint8_t gpio_bank,
66 int tca642x_get_val(uchar chip, uint8_t gpio_bank);
/rk3399_rockchip-uboot/arch/arm/include/asm/
H A Domap_gpio.h37 struct gpio_bank { struct
41 extern const struct gpio_bank *const omap_gpio_bank; argument
/rk3399_rockchip-uboot/drivers/irq/
H A Dirq-internal.h58 struct gpio_bank { struct
85 struct gpio_bank *gpio_id_to_bank(unsigned int id); argument
86 struct gpio_bank *gpio_to_bank(unsigned gpio);
H A Dirq-gpio.c86 struct gpio_bank *bank = gpio_id_to_bank(irq - IRQ_GPIO0); in generic_gpio_handle_irq()
177 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_set_type()
215 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_revert_type()
252 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_get_gpio_level()
267 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_enable()
288 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_disable()
311 struct gpio_bank *bank = NULL; in gpio_irq_init()
H A Dirq-gpio-v2.c91 struct gpio_bank *bank = gpio_id_to_bank(irq - IRQ_GPIO0); in generic_gpio_handle_irq()
189 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_set_type()
227 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_revert_type()
264 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_get_gpio_level()
280 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_enable()
301 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_disable()
324 struct gpio_bank *bank = NULL; in gpio_irq_init()
H A Dirq-gpio-switch.c12 static struct gpio_bank gpio_banks[GPIO_BANK_NUM] = {
281 struct gpio_bank *gpio_id_to_bank(u32 id) in gpio_id_to_bank()
293 struct gpio_bank *gpio_to_bank(u32 gpio) in gpio_to_bank()
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/
H A Drk_hwid.c34 static int gpio_read(fdt_addr_t gpio_addr, int gpio_bank, int gpio_pin) in gpio_read() argument
38 bit = gpio_bank * 8 + gpio_pin; in gpio_read()
49 static int gpio_read(fdt_addr_t gpio_addr, int gpio_bank, int gpio_pin) in gpio_read() argument
54 val &= ~(1 << (gpio_bank * 8 + gpio_pin)); in gpio_read()
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-sunxi/
H A Dgpio.h72 struct sunxi_gpio gpio_bank[SUNXI_GPIO_BANKS]; member
78 &((struct sunxi_gpio_reg *)SUNXI_PIO_BASE)->gpio_bank[bank] : \
79 &((struct sunxi_gpio_reg *)SUNXI_R_PIO_BASE)->gpio_bank[(bank) - SUNXI_GPIO_L])
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-hi6220/
H A Dgpio.h17 struct gpio_bank { struct
/rk3399_rockchip-uboot/arch/arm/mach-omap2/omap4/
H A Dhwinit.c28 static const struct gpio_bank gpio_bank_44xx[6] = {
37 const struct gpio_bank *const omap_gpio_bank = gpio_bank_44xx;
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-tegra20/
H A Dgpio.h33 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-tegra30/
H A Dgpio.h40 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-tegra124/
H A Dgpio.h41 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-tegra210/
H A Dgpio.h41 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
/rk3399_rockchip-uboot/arch/arm/mach-omap2/am33xx/
H A Dboard.c123 static const struct gpio_bank gpio_bank_am33xx[] = {
134 const struct gpio_bank *const omap_gpio_bank = gpio_bank_am33xx;
/rk3399_rockchip-uboot/arch/arm/mach-omap2/omap3/
H A Dboard.c60 static const struct gpio_bank gpio_bank_34xx[6] = {
69 const struct gpio_bank *const omap_gpio_bank = gpio_bank_34xx;
/rk3399_rockchip-uboot/arch/arm/mach-omap2/omap5/
H A Dhwinit.c32 static struct gpio_bank gpio_bank_54xx[8] = {
43 const struct gpio_bank *const omap_gpio_bank = gpio_bank_54xx;