Searched refs:mxcs (Results 1 – 1 of 1) sorted by relevance
64 static void mxc_spi_cs_activate(struct mxc_spi_slave *mxcs) in mxc_spi_cs_activate() argument67 struct udevice *dev = mxcs->dev; in mxc_spi_cs_activate()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()77 if (mxcs->gpio > 0) in mxc_spi_cs_activate()78 gpio_set_value(mxcs->gpio, mxcs->ss_pol); in mxc_spi_cs_activate()82 static void mxc_spi_cs_deactivate(struct mxc_spi_slave *mxcs) in mxc_spi_cs_deactivate() argument85 struct udevice *dev = mxcs->dev; in mxc_spi_cs_deactivate()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()[all …]