/openbmc/u-boot/drivers/gpio/ |
H A D | tca642x.c | 95 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 D | omap_gpio.c | 37 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 …]
|
H A D | adi_gpio2.c | 50 #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 D | hi6220_gpio.c | 15 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),
|
H A D | tegra_gpio.c | 46 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()
|
H A D | sunxi_gpio.c | 304 plat->regs = &ctlr->gpio_bank[bank]; in gpio_sunxi_bind()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-omap.c | 47 struct gpio_bank { struct 78 void (*set_dataout)(struct gpio_bank *bank, unsigned gpio, int enable); argument 89 static inline struct gpio_bank *omap_irq_data_get_bank(struct irq_data *d) in omap_irq_data_get_bank() argument 109 static void omap_set_gpio_direction(struct gpio_bank *bank, int gpio, in omap_set_gpio_direction() 118 static void omap_set_gpio_dataout_reg(struct gpio_bank *bank, unsigned offset, in omap_set_gpio_dataout_reg() 136 static void omap_set_gpio_dataout_mask(struct gpio_bank *bank, unsigned offset, in omap_set_gpio_dataout_mask() 143 static inline void omap_gpio_dbck_enable(struct gpio_bank *bank) in omap_gpio_dbck_enable() 154 static inline void omap_gpio_dbck_disable(struct gpio_bank *bank) in omap_gpio_dbck_disable() 181 static int omap2_set_gpio_debounce(struct gpio_bank *bank, unsigned offset, in omap2_set_gpio_debounce() 233 static void omap_clear_gpio_debounce(struct gpio_bank *bank, unsigned offset) in omap_clear_gpio_debounce() [all …]
|
/openbmc/u-boot/drivers/pinctrl/ |
H A D | pinctrl_stm32.c | 60 struct stm32_gpio_bank *gpio_bank; in stm32_populate_gpio_dev_list() local 75 gpio_bank = malloc(sizeof(*gpio_bank)); in stm32_populate_gpio_dev_list() 76 if (!gpio_bank) { in stm32_populate_gpio_dev_list() 81 gpio_bank->gpio_dev = gpio_dev; in stm32_populate_gpio_dev_list() 82 list_add_tail(&gpio_bank->list, &priv->gpio_dev); in stm32_populate_gpio_dev_list() 92 struct stm32_gpio_bank *gpio_bank; in stm32_pinctrl_get_pins_count() local 107 list_for_each_entry(gpio_bank, &priv->gpio_dev, list) { in stm32_pinctrl_get_pins_count() 108 uc_priv = dev_get_uclass_priv(gpio_bank->gpio_dev); in stm32_pinctrl_get_pins_count() 121 struct stm32_gpio_bank *gpio_bank; in stm32_pinctrl_get_gpio_dev() local 129 list_for_each_entry(gpio_bank, &priv->gpio_dev, list) { in stm32_pinctrl_get_gpio_dev() [all …]
|
/openbmc/u-boot/include/ |
H A D | tca642x.h | 60 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);
|
/openbmc/linux/drivers/pinctrl/nuvoton/ |
H A D | pinctrl-npcm7xx.c | 96 struct npcm7xx_gpio gpio_bank[NPCM7XX_GPIO_BANK_NUM]; member 1512 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_get_drive_strength() 1538 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_set_drive_strength() 1697 &npcm->gpio_bank[offset / NPCM7XX_GPIO_PER_BANK]; in npcm_gpio_set_direction() 1727 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_config_get() 1790 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_config_set_one() 1886 pctrl->gpio_bank[id].base = ioremap(res.start, resource_size(&res)); in npcm7xx_gpio_of() 1887 if (!pctrl->gpio_bank[id].base) in npcm7xx_gpio_of() 1890 ret = bgpio_init(&pctrl->gpio_bank[id].gc, dev, 4, in npcm7xx_gpio_of() 1891 pctrl->gpio_bank[id].base + NPCM7XX_GP_N_DIN, in npcm7xx_gpio_of() [all …]
|
H A D | pinctrl-npcm8xx.c | 110 struct npcm8xx_gpio gpio_bank[NPCM8XX_GPIO_BANK_NUM]; member 1924 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm8xx_get_drive_strength() 1945 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm8xx_set_drive_strength() 2076 &npcm->gpio_bank[offset / NPCM8XX_GPIO_PER_BANK]; in npcm_gpio_set_direction() 2167 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm_set_debounce() 2194 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm8xx_config_get() 2256 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm8xx_config_set_one() 2350 pctrl->gpio_bank[id].base = fwnode_iomap(child, 0); in npcm8xx_gpio_fw() 2351 if (!pctrl->gpio_bank[id].base) in npcm8xx_gpio_fw() 2354 ret = bgpio_init(&pctrl->gpio_bank[id].gc, dev, 4, in npcm8xx_gpio_fw() [all …]
|
H A D | pinctrl-wpcm450.c | 61 struct wpcm450_gpio gpio_bank[WPCM450_NUM_BANKS]; member 1069 gpio = &pctrl->gpio_bank[reg]; in wpcm450_gpio_register()
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | omap_gpio.h | 36 struct gpio_bank { struct 40 extern const struct gpio_bank *const omap_gpio_bank; argument
|
/openbmc/u-boot/arch/arm/include/asm/arch-sunxi/ |
H A D | gpio.h | 71 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])
|
/openbmc/u-boot/arch/arm/mach-omap2/omap4/ |
H A D | hwinit.c | 25 static const struct gpio_bank gpio_bank_44xx[6] = { 34 const struct gpio_bank *const omap_gpio_bank = gpio_bank_44xx;
|
/openbmc/u-boot/arch/arm/include/asm/arch-hi6220/ |
H A D | gpio.h | 16 struct gpio_bank { struct
|
/openbmc/u-boot/arch/arm/include/asm/arch-tegra20/ |
H A D | gpio.h | 32 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
|
/openbmc/u-boot/arch/arm/include/asm/arch-tegra210/ |
H A D | gpio.h | 40 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
|
/openbmc/u-boot/arch/arm/include/asm/arch-tegra30/ |
H A D | gpio.h | 39 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
|
/openbmc/u-boot/arch/arm/include/asm/arch-tegra124/ |
H A D | gpio.h | 40 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
|
/openbmc/u-boot/arch/arm/mach-omap2/omap3/ |
H A D | board.c | 57 static const struct gpio_bank gpio_bank_34xx[6] = { 66 const struct gpio_bank *const omap_gpio_bank = gpio_bank_34xx;
|
/openbmc/u-boot/arch/arm/mach-omap2/am33xx/ |
H A D | board.c | 137 static const struct gpio_bank gpio_bank_am33xx[] = { 148 const struct gpio_bank *const omap_gpio_bank = gpio_bank_am33xx;
|
/openbmc/u-boot/arch/arm/mach-omap2/omap5/ |
H A D | hwinit.c | 29 static struct gpio_bank gpio_bank_54xx[8] = { 40 const struct gpio_bank *const omap_gpio_bank = gpio_bank_54xx;
|