Lines Matching +full:mmc +full:- +full:spi +full:- +full:slot
1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #include <linux/spi/spi.h>
16 #include <linux/spi/mmc_spi.h>
17 #include <linux/mmc/host.h>
69 prop = of_get_property(np, "cell-index", NULL); in of_fsl_spi_probe()
74 if (prop && !strcmp(prop, "cpu-qe")) in of_fsl_spi_probe()
124 void (*cs_control)(struct spi_device *spi, in fsl_spi_init() argument
127 u32 sysclk = -1; in fsl_spi_init()
130 /* SPI controller is either clocked from QE or SoC clock */ in fsl_spi_init()
132 if (sysclk == -1) { in fsl_spi_init()
134 if (sysclk == -1) in fsl_spi_init()
135 return -ENODEV; in fsl_spi_init()
138 ret = of_fsl_spi_probe(NULL, "fsl,spi", sysclk, board_infos, in fsl_spi_init()
141 of_fsl_spi_probe("spi", "fsl_spi", sysclk, board_infos, in fsl_spi_init()
147 static void mpc83xx_spi_cs_control(struct spi_device *spi, bool on) in mpc83xx_spi_cs_control() argument
149 pr_debug("%s %d %d\n", __func__, spi_get_chipselect(spi, 0), on); in mpc83xx_spi_cs_control()
180 * mmc-spi-slot node. in mpc832x_spi_init()
182 np = of_find_compatible_node(NULL, NULL, "mmc-spi-slot"); in mpc832x_spi_init()