/u-boot/drivers/gpio/ |
A D | hsdk-creg-gpio.c | 57 pr_err("%s can't be used as input!\n", uc_priv->bank_name); in hsdk_creg_gpio_direction_input() 94 uc_priv->bank_name = dev_read_string(dev, "gpio-bank-name"); in hsdk_creg_gpio_probe() 95 if (!uc_priv->bank_name) in hsdk_creg_gpio_probe() 96 uc_priv->bank_name = dev_read_name(dev); in hsdk_creg_gpio_probe() 100 uc_priv->bank_name); in hsdk_creg_gpio_probe() 107 uc_priv->bank_name); in hsdk_creg_gpio_probe() 114 uc_priv->bank_name, gpio_count * bit_per_gpio + shift); in hsdk_creg_gpio_probe() 121 uc_priv->bank_name, GENMASK(bit_per_gpio - 1, 0)); in hsdk_creg_gpio_probe() 128 uc_priv->bank_name, GENMASK(bit_per_gpio - 1, 0)); in hsdk_creg_gpio_probe() 135 uc_priv->bank_name); in hsdk_creg_gpio_probe() [all …]
|
A D | mt7621_gpio.c | 42 char bank_name[3]; /* Name of bank, e.g. "PA", "PB" etc */ member 121 uc_priv->bank_name = plat->bank_name; in gpio_mediatek_probe() 154 plat->bank_name[0] = 'P'; in gpio_mediatek_bind() 155 plat->bank_name[1] = 'A' + bank; in gpio_mediatek_bind() 156 plat->bank_name[2] = '\0'; in gpio_mediatek_bind() 160 ret = device_bind(parent, parent->driver, plat->bank_name, plat, in gpio_mediatek_bind()
|
A D | pcf8575_gpio.c | 52 const char *bank_name; /* Name of the expander bank */ member 138 uc_priv->bank_name = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), in pcf8575_ofdata_plat() 140 if (!uc_priv->bank_name) in pcf8575_ofdata_plat() 141 uc_priv->bank_name = fdt_get_name(gd->fdt_blob, in pcf8575_ofdata_plat() 156 uc_priv->bank_name, uc_priv->gpio_count); in pcf8575_gpio_probe()
|
A D | altera_pio.c | 26 const char *bank_name; member 83 uc_priv->bank_name = plat->bank_name; in altera_pio_probe() 97 plat->bank_name = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), in altera_pio_of_to_plat()
|
A D | nx_gpio.c | 43 const char *bank_name; member 49 const char *bank_name = plat->bank_name; in nx_alive_gpio_is_check() local 51 if (!strcmp(bank_name, "gpio_alv")) in nx_alive_gpio_is_check() 211 uc_priv->bank_name = plat->bank_name; in nx_gpio_probe() 225 plat->bank_name = dev_read_string(dev, "gpio-bank-name"); in nx_gpio_of_to_plat()
|
A D | pm8916_gpio.c | 195 uc_priv->bank_name = dev_read_string(dev, "gpio-bank-name"); in pm8916_gpio_of_to_plat() 196 if (uc_priv->bank_name == NULL) in pm8916_gpio_of_to_plat() 197 uc_priv->bank_name = "pm8916"; in pm8916_gpio_of_to_plat() 280 uc_priv->bank_name = dev_read_string(dev, "gpio-bank-name"); in pm8941_pwrkey_of_to_plat() 281 if (uc_priv->bank_name == NULL) in pm8941_pwrkey_of_to_plat() 282 uc_priv->bank_name = "pm8916_key"; in pm8941_pwrkey_of_to_plat()
|
A D | msm_gpio.c | 111 uc_priv->bank_name = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), in msm_gpio_of_to_plat() 113 if (uc_priv->bank_name == NULL) in msm_gpio_of_to_plat() 114 uc_priv->bank_name = "soc"; in msm_gpio_of_to_plat()
|
A D | s5p_gpio.c | 40 const char *bank_name; /* Name of port, e.g. 'gpa0" */ member 300 uc_priv->bank_name = plat->bank_name; in gpio_exynos_probe() 335 plat->bank_name = fdt_get_name(blob, node, NULL); in gpio_exynos_bind() 336 ret = device_bind(parent, parent->driver, plat->bank_name, plat, in gpio_exynos_bind() 347 debug("dev at %p: %s\n", bank, plat->bank_name); in gpio_exynos_bind()
|
A D | sunxi_gpio.c | 27 const char *bank_name; /* Name of bank, e.g. "B" */ member 269 uc_priv->bank_name = plat->bank_name; in gpio_sunxi_probe() 305 plat->bank_name = gpio_bank_name(soc_data->start + bank); in gpio_sunxi_bind() 308 ret = device_bind(parent, parent->driver, plat->bank_name, plat, in gpio_sunxi_bind()
|
A D | intel_broadwell_gpio.c | 132 uc_priv->bank_name = plat->bank_name; in broadwell_gpio_probe() 161 plat->bank_name = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), in broadwell_gpio_of_to_plat()
|
A D | intel_ich6_gpio.c | 115 plat->bank_name = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), in gpio_ich6_of_to_plat() 129 uc_priv->bank_name = plat->bank_name; in ich6_gpio_probe()
|
A D | xilinx_gpio.c | 249 uc_priv->bank_name = strdup(label_ptr); in xilinx_gpio_probe() 250 if (!uc_priv->bank_name) in xilinx_gpio_probe() 253 uc_priv->bank_name = dev->name; in xilinx_gpio_probe()
|
A D | gpio-uclass.c | 136 len = uc_priv->bank_name ? strlen(uc_priv->bank_name) : 0; in dm_gpio_lookup_name() 138 if (!strncasecmp(name, uc_priv->bank_name, len)) { in dm_gpio_lookup_name() 494 uc_priv->bank_name ? uc_priv->bank_name : "", in check_reserved() 635 uc_priv->bank_name ? uc_priv->bank_name : "", in _dm_gpio_set_dir_flags() 773 return priv->bank_name; in gpio_get_bank_info() 841 priv->bank_name ? priv->bank_name : "", in gpio_get_status()
|
A D | zynq_gpio.c | 378 uc_priv->bank_name = strdup(label_ptr); in zynq_gpio_probe() 379 if (!uc_priv->bank_name) in zynq_gpio_probe() 382 uc_priv->bank_name = dev->name; in zynq_gpio_probe()
|
A D | octeon_gpio.c | 203 uc_priv->bank_name = strdup(dev->name); in octeon_gpio_probe() 204 end = strchr(uc_priv->bank_name, '@'); in octeon_gpio_probe()
|
A D | cortina_gpio.c | 94 uc_priv->bank_name = dev->name; in ca_gpio_probe()
|
A D | hi6220_gpio.c | 79 uc_priv->bank_name = str; in hi6220_gpio_probe()
|
/u-boot/cmd/ |
A D | gpio.c | 39 static void gpio_get_description(struct udevice *dev, const char *bank_name, in gpio_get_description() argument 50 if ((*flagsp & FLAG_SHOW_BANK) && bank_name) { in gpio_get_description() 55 printf("Bank %s:\n", bank_name); in gpio_get_description() 82 const char *bank_name; in do_gpio_status() local 88 bank_name = gpio_get_bank_info(dev, &num_bits); in do_gpio_status() 93 banklen = bank_name ? strlen(bank_name) : 0; in do_gpio_status() 95 if (!gpio_name || !bank_name || in do_gpio_status() 96 !strncasecmp(gpio_name, bank_name, banklen)) { in do_gpio_status() 103 gpio_get_description(dev, bank_name, offset, in do_gpio_status() 107 gpio_get_description(dev, bank_name, in do_gpio_status()
|
/u-boot/arch/x86/include/asm/ |
A D | gpio.h | 13 const char *bank_name; member
|
/u-boot/drivers/pinctrl/mvebu/ |
A D | pinctrl-mvebu.h | 27 const char *bank_name; member
|
A D | pinctrl-mvebu.c | 145 priv->bank_name); in mvebu_pinctrl_set_state_all() 207 priv->bank_name = fdt_getprop(blob, node, "bank-name", NULL); in mvebu_pinctl_probe()
|
/u-boot/drivers/ram/ |
A D | stm32_sdram.c | 270 char *bank_name; in stm32_fmc_of_to_plat() local 302 bank_name = (char *)ofnode_get_name(bank_node); in stm32_fmc_of_to_plat() 303 strsep(&bank_name, "@"); in stm32_fmc_of_to_plat() 304 if (!bank_name) { in stm32_fmc_of_to_plat() 310 strict_strtoul(bank_name, 10, in stm32_fmc_of_to_plat() 319 debug("Find bank %s %u\n", bank_name, bank_params->target_bank); in stm32_fmc_of_to_plat()
|
A D | imxrt_sdram.c | 343 char *bank_name; in imxrt_semc_of_to_plat() local 347 bank_name = (char *)ofnode_get_name(bank_node); in imxrt_semc_of_to_plat() 348 strsep(&bank_name, "@"); in imxrt_semc_of_to_plat() 349 if (!bank_name) { in imxrt_semc_of_to_plat() 355 strict_strtoul(bank_name, 10, in imxrt_semc_of_to_plat() 379 debug("Found bank %s %u\n", bank_name, in imxrt_semc_of_to_plat()
|
/u-boot/drivers/pinctrl/ |
A D | pinctrl-sti.c | 220 const char *bank_name; in sti_pinctrl_set_state() local 246 bank_name = fdt_getprop(blob, args.node, "st,bank-name", in sti_pinctrl_set_state() 253 pin_desc.bank = trailing_strtoln(bank_name, NULL); in sti_pinctrl_set_state()
|
/u-boot/arch/x86/include/asm/arch-broadwell/ |
A D | gpio.h | 16 const char *bank_name; member
|