Home
last modified time | relevance | path

Searched refs:bank_name (Results 1 – 25 of 68) sorted by relevance

123

/u-boot/drivers/gpio/
A Dhsdk-creg-gpio.c57 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 Dmt7621_gpio.c42 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 Dpcf8575_gpio.c52 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 Daltera_pio.c26 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 Dnx_gpio.c43 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 Dpm8916_gpio.c195 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 Dmsm_gpio.c111 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 Ds5p_gpio.c40 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 Dsunxi_gpio.c27 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 Dintel_broadwell_gpio.c132 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 Dintel_ich6_gpio.c115 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 Dxilinx_gpio.c249 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 Dgpio-uclass.c136 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 Dzynq_gpio.c378 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 Docteon_gpio.c203 uc_priv->bank_name = strdup(dev->name); in octeon_gpio_probe()
204 end = strchr(uc_priv->bank_name, '@'); in octeon_gpio_probe()
A Dcortina_gpio.c94 uc_priv->bank_name = dev->name; in ca_gpio_probe()
A Dhi6220_gpio.c79 uc_priv->bank_name = str; in hi6220_gpio_probe()
/u-boot/cmd/
A Dgpio.c39 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 Dgpio.h13 const char *bank_name; member
/u-boot/drivers/pinctrl/mvebu/
A Dpinctrl-mvebu.h27 const char *bank_name; member
A Dpinctrl-mvebu.c145 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 Dstm32_sdram.c270 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 Dimxrt_sdram.c343 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 Dpinctrl-sti.c220 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 Dgpio.h16 const char *bank_name; member

Completed in 29 milliseconds

123