Searched refs:cs_gpios (Results 1 – 5 of 5) sorted by relevance
/u-boot/drivers/spi/ |
A D | mvebu_a3700_spi.c | 45 struct gpio_desc cs_gpios[MAX_CS_COUNT]; member 50 if (CONFIG_IS_ENABLED(DM_GPIO) && dm_gpio_is_valid(&plat->cs_gpios[cs])) in spi_cs_activate() 51 dm_gpio_set_value(&plat->cs_gpios[cs], 1); in spi_cs_activate() 58 if (CONFIG_IS_ENABLED(DM_GPIO) && dm_gpio_is_valid(&plat->cs_gpios[cs])) in spi_cs_deactivate() 59 dm_gpio_set_value(&plat->cs_gpios[cs], 0); in spi_cs_deactivate() 264 for (i = 0; i < ARRAY_SIZE(plat->cs_gpios); i++) { in mvebu_spi_probe() 265 ret = gpio_request_by_name(bus, "cs-gpios", i, &plat->cs_gpios[i], 0); in mvebu_spi_probe() 266 if (ret < 0 || !dm_gpio_is_valid(&plat->cs_gpios[i])) { in mvebu_spi_probe() 271 ret = dm_gpio_set_dir_flags(&plat->cs_gpios[i], in mvebu_spi_probe()
|
A D | atmel_spi.c | 117 struct gpio_desc cs_gpios[MAX_CS_COUNT]; member 179 if (!dm_gpio_is_valid(&priv->cs_gpios[cs])) in atmel_spi_cs_activate() 182 dm_gpio_set_value(&priv->cs_gpios[cs], 0); in atmel_spi_cs_activate() 194 if (!dm_gpio_is_valid(&priv->cs_gpios[cs])) in atmel_spi_cs_deactivate() 197 dm_gpio_set_value(&priv->cs_gpios[cs], 1); in atmel_spi_cs_deactivate() 360 ret = gpio_request_list_by_name(bus, "cs-gpios", priv->cs_gpios, in atmel_spi_probe() 361 ARRAY_SIZE(priv->cs_gpios), 0); in atmel_spi_probe() 367 for(i = 0; i < ARRAY_SIZE(priv->cs_gpios); i++) { in atmel_spi_probe() 368 if (!dm_gpio_is_valid(&priv->cs_gpios[i])) in atmel_spi_probe() 371 dm_gpio_set_dir_flags(&priv->cs_gpios[i], in atmel_spi_probe()
|
A D | mxc_spi.c | 137 struct gpio_desc cs_gpios[MAX_CS_COUNT]; member 154 if (!dm_gpio_is_valid(&mxcs->cs_gpios[cs])) in mxc_spi_cs_activate() 157 dm_gpio_set_value(&mxcs->cs_gpios[cs], 1); in mxc_spi_cs_activate() 172 if (!dm_gpio_is_valid(&mxcs->cs_gpios[cs])) in mxc_spi_cs_deactivate() 175 dm_gpio_set_value(&mxcs->cs_gpios[cs], 0); in mxc_spi_cs_deactivate() 599 ret = gpio_request_list_by_name(bus, "cs-gpios", mxcs->cs_gpios, in mxc_spi_probe() 600 ARRAY_SIZE(mxcs->cs_gpios), 0); in mxc_spi_probe() 606 for (i = 0; i < ARRAY_SIZE(mxcs->cs_gpios); i++) { in mxc_spi_probe() 607 if (!dm_gpio_is_valid(&mxcs->cs_gpios[i])) in mxc_spi_probe() 610 ret = dm_gpio_set_dir_flags(&mxcs->cs_gpios[i], in mxc_spi_probe()
|
A D | stm32_spi.c | 104 struct gpio_desc cs_gpios[MAX_CS_COUNT]; member 266 if (!dm_gpio_is_valid(&priv->cs_gpios[cs])) in stm32_spi_set_cs() 272 return dm_gpio_set_value(&priv->cs_gpios[cs], enable ? 1 : 0); in stm32_spi_set_cs() 525 ret = gpio_request_list_by_name(dev, "cs-gpios", priv->cs_gpios, in stm32_spi_probe() 526 ARRAY_SIZE(priv->cs_gpios), 0); in stm32_spi_probe() 540 for (i = 0; i < ARRAY_SIZE(priv->cs_gpios); i++) { in stm32_spi_probe() 541 if (!dm_gpio_is_valid(&priv->cs_gpios[i])) in stm32_spi_probe() 544 dm_gpio_set_dir_flags(&priv->cs_gpios[i], in stm32_spi_probe()
|
A D | spi-qup.c | 180 struct gpio_desc cs_gpios[SPI_NUM_CHIPSELECTS]; member 194 if (!dm_gpio_is_valid(&priv->cs_gpios[cs])) in qup_spi_set_cs() 200 return dm_gpio_set_value(&priv->cs_gpios[cs], enable ? 1 : 0); in qup_spi_set_cs() 767 ret = gpio_request_list_by_name(dev, "cs-gpios", priv->cs_gpios, in qup_spi_probe()
|
Completed in 36 milliseconds