Home
last modified time | relevance | path

Searched refs:spi (Results 1 – 25 of 122) sorted by relevance

12345

/arch/arm/mach-u300/
Ddummyspichip.c39 struct spi_device *spi = to_spi_device(dev); in dummy_looptest() local
40 struct dummy *p_dummy = dev_get_drvdata(&spi->dev); in dummy_looptest()
74 spi->bits_per_word = 8; in dummy_looptest()
76 spi->master->setup(spi); in dummy_looptest()
81 status = spi_w8r8(spi, 0xAA); in dummy_looptest()
90 status = spi_write_then_read(spi, &txbuf[0], 8, &rxbuf[0], 8); in dummy_looptest()
99 status = spi_write_then_read(spi, &txbuf[0], 14, &rxbuf[0], 14); in dummy_looptest()
108 status = spi_write(spi, &txbuf[0], 8); in dummy_looptest()
114 status = spi_read(spi, &rxbuf[0], 8); in dummy_looptest()
123 status = spi_write(spi, &txbuf[0], 14); in dummy_looptest()
[all …]
DMakefile11 obj-$(CONFIG_SPI_PL022) += spi.o
/arch/arm/mach-ep93xx/include/mach/
Dep93xx_spi.h24 int (*setup)(struct spi_device *spi);
25 void (*cleanup)(struct spi_device *spi);
26 void (*cs_control)(struct spi_device *spi, int value);
/arch/mips/txx9/generic/
Dspi_eeprom.c54 static int __init early_seeprom_probe(struct spi_device *spi) in early_seeprom_probe() argument
62 dev_info(&spi->dev, "spiclk %u KHz.\n", in early_seeprom_probe()
63 (spi->max_speed_hz + 500) / 1000); in early_seeprom_probe()
64 if (read_param->busid != spi->master->bus_num || in early_seeprom_probe()
65 read_param->chipid != spi->chip_select) in early_seeprom_probe()
72 stat = spi_write_then_read(spi, cmd, sizeof(cmd), buf, c); in early_seeprom_probe()
/arch/arm/mach-ep93xx/
Dvision_ep9307.c199 static int vision_spi_flash_hw_setup(struct spi_device *spi) in vision_spi_flash_hw_setup() argument
202 spi->modalias); in vision_spi_flash_hw_setup()
205 static void vision_spi_flash_hw_cleanup(struct spi_device *spi) in vision_spi_flash_hw_cleanup() argument
210 static void vision_spi_flash_hw_cs_control(struct spi_device *spi, int value) in vision_spi_flash_hw_cs_control() argument
286 static int vision_spi_mmc_hw_setup(struct spi_device *spi) in vision_spi_mmc_hw_setup() argument
289 spi->modalias); in vision_spi_mmc_hw_setup()
292 static void vision_spi_mmc_hw_cleanup(struct spi_device *spi) in vision_spi_mmc_hw_cleanup() argument
297 static void vision_spi_mmc_hw_cs_control(struct spi_device *spi, int value) in vision_spi_mmc_hw_cs_control() argument
Dedb93xx.c110 static int edb93xx_cs4271_hw_setup(struct spi_device *spi) in edb93xx_cs4271_hw_setup() argument
113 GPIOF_OUT_INIT_HIGH, spi->modalias); in edb93xx_cs4271_hw_setup()
116 static void edb93xx_cs4271_hw_cleanup(struct spi_device *spi) in edb93xx_cs4271_hw_cleanup() argument
121 static void edb93xx_cs4271_hw_cs_control(struct spi_device *spi, int value) in edb93xx_cs4271_hw_cs_control() argument
/arch/mips/include/asm/mach-au1x00/
Dau1550_spi.h11 void (*activate_cs)(struct au1550_spi_info *spi, int cs, int polarity);
12 void (*deactivate_cs)(struct au1550_spi_info *spi, int cs, int polarity);
/arch/mips/cavium-octeon/executive/
DMakefile13 obj-y += cvmx-pko.o cvmx-spi.o cvmx-cmd-queue.o \
16 cvmx-helper-loop.o cvmx-helper-spi.o cvmx-helper-util.o \
/arch/powerpc/boot/dts/
Dlite5200b.dts65 // PSC6 in spi mode example
66 //spi@2c00 { // PSC6
67 // compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi";
Dp1022ds.dtsi150 spi@7000 {
156 spi-max-frequency = <40000000>; /* input clock */
159 label = "u-boot-spi";
164 label = "kernel-spi";
169 label = "dtb-spi";
174 label = "file system-spi";
Dmotionpro.dts43 // PSC2 in spi master mode
45 compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi";
Dmpc8536ds.dtsi137 spi@7000 {
143 spi-max-frequency = <40000000>;
167 spi-max-frequency = <40000000>;
172 spi-max-frequency = <40000000>;
177 spi-max-frequency = <40000000>;
Dp3060qds.dts55 spi@110000 {
61 spi-max-frequency = <40000000>; /* input clock */
87 spi-max-frequency = <40000000>; /* input clock */
98 spi-max-frequency = <40000000>; /* input clock */
109 spi-max-frequency = <40000000>; /* input clock */
Dlite5200.dts149 spi@f00 {
150 compatible = "fsl,mpc5200-spi";
214 // PSC6 in spi mode example
215 //spi@2c00 { // PSC6
216 // compatible = "fsl,mpc5200-psc-spi";
Dmpc832x_rdb.dts248 spi@4c0 {
252 compatible = "fsl,spi";
261 "mmc-spi-slot";
266 spi-max-frequency = <50000000>;
270 spi@500 {
272 compatible = "fsl,spi";
Dp1021mds.dts121 spi@7000 {
128 spi-max-frequency = <40000000>; /* input clock */
131 label = "u-boot-spi";
136 label = "kernel-spi";
141 label = "dtb-spi";
146 label = "file system-spi";
/arch/sh/include/asm/
Dspi.h10 void (*chip_select)(struct sh_spi_info *spi, int cs, int state);
/arch/arm/mach-pxa/
Dcm-x270.c327 static int cm_x270_libertas_setup(struct spi_device *spi) in cm_x270_libertas_setup() argument
352 spi->bits_per_word = 16; in cm_x270_libertas_setup()
353 spi_setup(spi); in cm_x270_libertas_setup()
363 static int cm_x270_libertas_teardown(struct spi_device *spi) in cm_x270_libertas_teardown() argument
Dz2.c510 static int z2_lbs_spi_setup(struct spi_device *spi) in z2_lbs_spi_setup() argument
525 spi->bits_per_word = 16; in z2_lbs_spi_setup()
526 spi->mode = SPI_MODE_2, in z2_lbs_spi_setup()
528 spi_setup(spi); in z2_lbs_spi_setup()
538 static int z2_lbs_spi_teardown(struct spi_device *spi) in z2_lbs_spi_teardown() argument
/arch/arm/mach-s3c64xx/
DMakefile35 obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o
45 obj-$(CONFIG_S3C64XX_SETUP_SPI) += setup-spi.o
/arch/powerpc/platforms/83xx/
Dmpc832x_rdb.c126 void (*cs_control)(struct spi_device *spi, in fsl_spi_init() argument
149 static void mpc83xx_spi_cs_control(struct spi_device *spi, bool on) in mpc83xx_spi_cs_control() argument
151 pr_debug("%s %d %d\n", __func__, spi->chip_select, on); in mpc83xx_spi_cs_control()
/arch/arm/boot/dts/
Dimx53-smd.dts48 fsl,spi-num-chipselects = <2>;
54 spi-max-frequency = <8000000>;
62 spi-max-frequency = <20000000>;
Dimx53-evk.dts38 fsl,spi-num-chipselects = <2>;
46 spi-max-frequency = <25000000>;
/arch/m32r/include/asm/
Dassembler.h85 push sp ; spi (r15)
180 pop sp ; spi (r15)
201 ; switch to kernel stack (spi)
213 ;; called from kernel context: previous stack = spi
/arch/arm/mach-s5pc100/
DMakefile32 obj-$(CONFIG_S5PC100_SETUP_SPI) += setup-spi.o

12345