Home
last modified time | relevance | path

Searched refs:gpio_count (Results 1 – 25 of 41) sorted by relevance

12

/external/u-boot/drivers/gpio/
Dpca953x_gpio.c68 int gpio_count; member
79 int bank_shift = fls((info->gpio_count - 1) / BANK_SZ); in pca953x_write_single()
96 int bank_shift = fls((info->gpio_count - 1) / BANK_SZ); in pca953x_read_single()
117 if (info->gpio_count <= 8) { in pca953x_read_regs()
119 } else if (info->gpio_count <= 16) { in pca953x_read_regs()
121 } else if (info->gpio_count == 40) { in pca953x_read_regs()
263 info->gpio_count = driver_data & PCA_GPIO_MASK; in pca953x_probe()
264 if (info->gpio_count > MAX_BANK * BANK_SZ) { in pca953x_probe()
275 info->bank_count = DIV_ROUND_UP(info->gpio_count, BANK_SZ); in pca953x_probe()
303 uc_priv->gpio_count = info->gpio_count; in pca953x_probe()
Dhsdk-creg-gpio.c82 uc_priv->gpio_count = dev_read_u32_default(dev, "gpio-count", 1); in hsdk_creg_gpio_probe()
83 if (uc_priv->gpio_count > HSDK_CREG_MAX_GPIO) in hsdk_creg_gpio_probe()
84 uc_priv->gpio_count = HSDK_CREG_MAX_GPIO; in hsdk_creg_gpio_probe()
91 uc_priv->bank_name, hcg->regs, uc_priv->gpio_count); in hsdk_creg_gpio_probe()
Daltera_pio.c24 int gpio_count; member
81 uc_priv->gpio_count = plat->gpio_count; in altera_pio_probe()
94 plat->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in altera_pio_ofdata_to_platdata()
Dsandbox.c30 if (offset >= uc_priv->gpio_count) { in get_gpio_flags()
199 uc_priv->gpio_count = dev_read_u32_default(dev, "sandbox,gpio-count", in sandbox_gpio_ofdata_to_platdata()
212 uc_priv->gpio_count = CONFIG_SANDBOX_GPIO_COUNT; in gpio_sandbox_probe()
214 dev->priv = calloc(sizeof(struct gpio_state), uc_priv->gpio_count); in gpio_sandbox_probe()
Dpcf8575_gpio.c34 int gpio_count; /* No. GPIOs supported by the chip */ member
133 uc_priv->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in pcf8575_ofdata_platdata()
153 uc_priv->bank_name, uc_priv->gpio_count); in pcf8575_gpio_probe()
Dmpc8xxx_gpio.c31 uint gpio_count; member
210 priv->gpio_count = plat->ngpios; in mpc8xxx_gpio_platdata_to_priv()
233 uc_priv->gpio_count = data->gpio_count; in mpc8xxx_gpio_probe()
Dsunxi_gpio.c28 int gpio_count; member
268 uc_priv->gpio_count = plat->gpio_count; in gpio_sunxi_probe()
306 plat->gpio_count = SUNXI_GPIOS_PER_BANK; in gpio_sunxi_bind()
Dgpio-uclass.c40 gpio < uc_priv->gpio_base + uc_priv->gpio_count) { in gpio_to_device()
70 if (offset < uc_priv->gpio_count) in dm_gpio_lookup_name()
484 *bit_count = priv->gpio_count; in gpio_get_bank_info()
505 if (offset < 0 || offset >= uc_priv->gpio_count) in get_function()
813 base += uc_priv->gpio_count; in gpio_renumber()
836 uc_priv->name = calloc(uc_priv->gpio_count, sizeof(char *)); in gpio_post_probe()
848 for (i = 0; i < uc_priv->gpio_count; i++) { in gpio_pre_remove()
Dpm8916_gpio.c193 uc_priv->gpio_count = dev_read_u32_default(dev, "gpio-count", 0); in pm8916_gpio_ofdata_to_platdata()
278 uc_priv->gpio_count = 2; in pm8941_pwrkey_ofdata_to_platdata()
Dhi6220_gpio.c79 uc_priv->gpio_count = HI6220_GPIO_PER_BANK; in hi6220_gpio_probe()
Dbcm6345_gpio.c100 uc_priv->gpio_count = dev_read_u32_default(dev, "ngpios", 32); in bcm6345_gpio_probe()
Daxp_gpio.c152 uc_priv->gpio_count = SUNXI_GPIO_AXP0_GPIO_COUNT; in gpio_axp_probe()
Dmsm_gpio.c108 uc_priv->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in msm_gpio_ofdata_to_platdata()
Dmvebu_gpio.c93 uc_priv->gpio_count = MVEBU_GPIOS_PER_BANK; in mvebu_gpio_probe()
Dvybrid_gpio.c100 uc_priv->gpio_count = VYBRID_GPIO_COUNT; in vybrid_gpio_probe()
Dstm32f7_gpio.c92 uc_priv->gpio_count = dev_read_u32_default(dev, "ngpios", in gpio_stm32_probe()
Drk_gpio.c106 uc_priv->gpio_count = ROCKCHIP_GPIOS_PER_BANK; in rockchip_gpio_probe()
Dbcm2835_gpio.c109 uc_priv->gpio_count = BCM2835_GPIO_COUNT; in bcm2835_gpio_probe()
D74x164_gpio.c162 uc_priv->gpio_count = priv->nregs * 8; in gen_74x164_probe()
Dpic32_gpio.c142 uc_priv->gpio_count = MICROCHIP_GPIOS_PER_BANK; in pic32_gpio_probe()
Dgpio-uniphier.c153 uc_priv->gpio_count = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev), in uniphier_gpio_probe()
Ddwapb_gpio.c96 priv->gpio_count = plat->pins; in gpio_dwapb_probe()
/external/u-boot/drivers/demo/
Ddemo-shape.c24 int gpio_count; member
102 for (i = 0; i < priv->gpio_count; i++, desc++) { in set_light()
122 for (i = 0; i < priv->gpio_count; i++, desc++) { in get_light()
169 priv->gpio_count = ret; in dm_shape_probe()
170 debug("%s: %d GPIOs\n", __func__, priv->gpio_count); in dm_shape_probe()
179 return gpio_free_list(dev, priv->gpio_desc, priv->gpio_count); in dm_shape_remove()
/external/u-boot/drivers/power/pmic/
Das3722_gpio.c103 uc_priv->gpio_count = NUM_GPIOS; in as3722_gpio_probe()
/external/u-boot/include/asm-generic/
Dgpio.h318 unsigned gpio_count; member

12