Home
last modified time | relevance | path

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

/openbmc/linux/drivers/spi/
H A Dspi-gpio.c37 struct gpio_desc **cs_gpios; member
231 if (spi_gpio->cs_gpios) { in spi_gpio_chipselect()
232 struct gpio_desc *cs = spi_gpio->cs_gpios[spi_get_chipselect(spi, 0)]; in spi_gpio_chipselect()
249 if (spi_gpio->cs_gpios) { in spi_gpio_setup()
250 cs = spi_gpio->cs_gpios[spi_get_chipselect(spi, 0)]; in spi_gpio_setup()
370 spi_gpio->cs_gpios = devm_kcalloc(dev, host->num_chipselect, in spi_gpio_probe_pdata()
371 sizeof(*spi_gpio->cs_gpios), in spi_gpio_probe_pdata()
373 if (!spi_gpio->cs_gpios) in spi_gpio_probe_pdata()
377 spi_gpio->cs_gpios[i] = devm_gpiod_get_index(dev, "cs", i, in spi_gpio_probe_pdata()
379 if (IS_ERR(spi_gpio->cs_gpios[i])) in spi_gpio_probe_pdata()
[all …]
H A Dspi-at91-usart.c484 struct gpio_descs *cs_gpios; in at91_usart_gpio_setup() local
486 cs_gpios = devm_gpiod_get_array_optional(&pdev->dev, "cs", GPIOD_OUT_LOW); in at91_usart_gpio_setup()
488 return PTR_ERR_OR_ZERO(cs_gpios); in at91_usart_gpio_setup()
/openbmc/u-boot/drivers/spi/
H A 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()
/openbmc/linux/drivers/usb/dwc3/
H A Ddwc3-pci.c91 static const struct acpi_gpio_params cs_gpios = { 1, 0, false }; variable
95 { "cs-gpios", &cs_gpios, 1 },