Home
last modified time | relevance | path

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

/external/u-boot/drivers/gpio/
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 …]
Domap_gpio.c37 struct gpio_bank { struct
54 static void _set_gpio_direction(const struct gpio_bank *bank, int gpio, in _set_gpio_direction() argument
74 static int _get_gpio_direction(const struct gpio_bank *bank, int gpio) in _get_gpio_direction()
89 static void _set_gpio_dataout(const struct gpio_bank *bank, int gpio, in _set_gpio_dataout()
104 static int _get_gpio_value(const struct gpio_bank *bank, int gpio) in _get_gpio_value()
126 static inline const struct gpio_bank *get_gpio_bank(int gpio) in get_gpio_bank()
145 const struct gpio_bank *bank; in gpio_set_value()
160 const struct gpio_bank *bank; in gpio_get_value()
174 const struct gpio_bank *bank; in gpio_direction_input()
190 const struct gpio_bank *bank; in gpio_direction_output()
[all …]
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 …]
Dhi6220_gpio.c15 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_input()
28 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_set_value()
37 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_output()
51 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_get_value()
67 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_probe()
91 .priv_auto_alloc_size = sizeof(struct gpio_bank),
Dtegra_gpio.c46 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_config()
63 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_config()
81 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_direction()
98 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_direction()
116 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_level()
357 plat->bank = &ctlr->gpio_bank[bank]; in gpio_tegra_bind()
Dsunxi_gpio.c304 plat->regs = &ctlr->gpio_bank[bank]; in gpio_sunxi_bind()
/external/u-boot/include/
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);
/external/u-boot/arch/arm/include/asm/
Domap_gpio.h36 struct gpio_bank { struct
40 extern const struct gpio_bank *const omap_gpio_bank; argument
/external/u-boot/arch/arm/include/asm/arch-sunxi/
Dgpio.h71 struct sunxi_gpio gpio_bank[SUNXI_GPIO_BANKS]; member
77 &((struct sunxi_gpio_reg *)SUNXI_PIO_BASE)->gpio_bank[bank] : \
78 &((struct sunxi_gpio_reg *)SUNXI_R_PIO_BASE)->gpio_bank[(bank) - SUNXI_GPIO_L])
/external/u-boot/arch/arm/mach-omap2/omap4/
Dhwinit.c25 static const struct gpio_bank gpio_bank_44xx[6] = {
34 const struct gpio_bank *const omap_gpio_bank = gpio_bank_44xx;
/external/u-boot/arch/arm/include/asm/arch-hi6220/
Dgpio.h16 struct gpio_bank { struct
/external/u-boot/arch/arm/include/asm/arch-tegra20/
Dgpio.h32 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
/external/u-boot/arch/arm/mach-omap2/omap3/
Dboard.c57 static const struct gpio_bank gpio_bank_34xx[6] = {
66 const struct gpio_bank *const omap_gpio_bank = gpio_bank_34xx;
/external/u-boot/arch/arm/include/asm/arch-tegra30/
Dgpio.h39 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
/external/u-boot/arch/arm/include/asm/arch-tegra124/
Dgpio.h40 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
/external/u-boot/arch/arm/include/asm/arch-tegra210/
Dgpio.h40 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
/external/u-boot/arch/arm/mach-omap2/am33xx/
Dboard.c122 static const struct gpio_bank gpio_bank_am33xx[] = {
133 const struct gpio_bank *const omap_gpio_bank = gpio_bank_am33xx;
/external/u-boot/arch/arm/mach-omap2/omap5/
Dhwinit.c29 static struct gpio_bank gpio_bank_54xx[8] = {
40 const struct gpio_bank *const omap_gpio_bank = gpio_bank_54xx;