Home
last modified time | relevance | path

Searched refs:cs_gpios (Results 1 – 3 of 3) sorted by relevance

/third_party/uboot/u-boot-2020.01/drivers/spi/
Datmel_spi.c232 struct gpio_desc cs_gpios[MAX_CS_COUNT]; member
294 if (!dm_gpio_is_valid(&priv->cs_gpios[cs])) in atmel_spi_cs_activate()
297 dm_gpio_set_value(&priv->cs_gpios[cs], 0); in atmel_spi_cs_activate()
309 if (!dm_gpio_is_valid(&priv->cs_gpios[cs])) in atmel_spi_cs_deactivate()
312 dm_gpio_set_value(&priv->cs_gpios[cs], 1); in atmel_spi_cs_deactivate()
475 ret = gpio_request_list_by_name(bus, "cs-gpios", priv->cs_gpios, in atmel_spi_probe()
476 ARRAY_SIZE(priv->cs_gpios), 0); in atmel_spi_probe()
482 for(i = 0; i < ARRAY_SIZE(priv->cs_gpios); i++) { in atmel_spi_probe()
483 if (!dm_gpio_is_valid(&priv->cs_gpios[i])) in atmel_spi_probe()
486 dm_gpio_set_dir_flags(&priv->cs_gpios[i], in atmel_spi_probe()
Dmxc_spi.c55 struct gpio_desc cs_gpios[MAX_CS_COUNT]; member
72 if (!dm_gpio_is_valid(&mxcs->cs_gpios[cs])) in mxc_spi_cs_activate()
75 dm_gpio_set_value(&mxcs->cs_gpios[cs], 1); in mxc_spi_cs_activate()
90 if (!dm_gpio_is_valid(&mxcs->cs_gpios[cs])) in mxc_spi_cs_deactivate()
93 dm_gpio_set_value(&mxcs->cs_gpios[cs], 0); in mxc_spi_cs_deactivate()
517 ret = gpio_request_list_by_name(bus, "cs-gpios", mxcs->cs_gpios, in mxc_spi_probe()
518 ARRAY_SIZE(mxcs->cs_gpios), 0); in mxc_spi_probe()
524 for (i = 0; i < ARRAY_SIZE(mxcs->cs_gpios); i++) { in mxc_spi_probe()
525 if (!dm_gpio_is_valid(&mxcs->cs_gpios[i])) in mxc_spi_probe()
528 ret = dm_gpio_set_dir_flags(&mxcs->cs_gpios[i], in mxc_spi_probe()
Dstm32_spi.c96 struct gpio_desc cs_gpios[MAX_CS_COUNT]; member
258 if (!dm_gpio_is_valid(&priv->cs_gpios[cs])) in stm32_spi_set_cs()
264 return dm_gpio_set_value(&priv->cs_gpios[cs], enable ? 1 : 0); in stm32_spi_set_cs()
517 ret = gpio_request_list_by_name(dev, "cs-gpios", priv->cs_gpios, in stm32_spi_probe()
518 ARRAY_SIZE(priv->cs_gpios), 0); in stm32_spi_probe()
532 for (i = 0; i < ARRAY_SIZE(priv->cs_gpios); i++) { in stm32_spi_probe()
533 if (!dm_gpio_is_valid(&priv->cs_gpios[i])) in stm32_spi_probe()
536 dm_gpio_set_dir_flags(&priv->cs_gpios[i], in stm32_spi_probe()