Searched refs:chipselect (Results 1 - 71 of 71) sorted by relevance

/linux-4.4.14/include/linux/platform_data/
H A Dspi-imx.h7 * @chipselect: Array of chipselects for this master. Numbers >= 0 mean gpio
11 * when to assert the chipselect: The CSPI module deasserts the
12 * chipselect once it runs out of input data. The other problem
18 * @num_chipselect: ARRAY_SIZE(chipselect)
21 int *chipselect; member in struct:spi_imx_master
H A Dspi-clps711x.h17 int *chipselect; /* Array of GPIO-numbers */ member in struct:spi_clps711x_pdata
H A Datmel.h20 u8 chipselect; /* EBI Chip Select number */ member in struct:at91_cf_data
/linux-4.4.14/include/linux/spi/
H A Dspi_oc_tiny.h8 * @gpio_cs_count: number of gpio pins used for chipselect.
9 * @gpio_cs: array of gpio pins used for chipselect.
H A Dspi_gpio.h16 * chipselect:
20 * // this slave uses GPIO 42 for its chipselect
23 * // this one uses GPIO 86 for its chipselect
28 * If chipselect is not used (there's only one device on the bus), assign
H A Dmcp23s08.h11 * chipselect, each providing 1 gpio_chip instance with 8 gpios.
13 * chipselect, each providing 1 gpio_chip (port A + port B) with
H A Dspi_bitbang.h20 void (*chipselect)(struct spi_device *spi, int is_on); member in struct:spi_bitbang
H A Dspi.h102 * The "active low" default for chipselect mode can be overridden
119 * @cs_gpio: gpio number of the chipselect line (optional, -ENOENT when
146 #define SPI_CS_HIGH 0x04 /* chipselect active high? */
150 #define SPI_NO_CS 0x40 /* 1 dev/bus, no chipselect */
170 * - drop chipselect after each word
171 * - chipselect delays
294 * each slave has a chipselect signal, but it's common that not
295 * every chipselect is connected to a slave.
613 * @cs_change: affects chipselect after this transfer completes
615 * (optionally) changing the chipselect status, then starting
644 * All SPI transfers start with the relevant chipselect active. Normally
646 * can affect the chipselect signal using cs_change.
649 * used to make the chipselect briefly go inactive in the middle of the
650 * message. Toggling chipselect in this way may be needed to terminate
662 * ends when the chipselect goes intactive.
1034 * possibly presence of an inverter in the chipselect path.
/linux-4.4.14/drivers/spi/
H A Dspi-xcomm.c37 uint16_t chipselect; member in struct:spi_xcomm
54 put_unaligned_be16(spi_xcomm->chipselect, &buf[3]); spi_xcomm_sync_config()
63 uint16_t chipselect = spi_xcomm->chipselect; spi_xcomm_chipselect() local
66 chipselect |= BIT(cs); spi_xcomm_chipselect()
68 chipselect &= ~BIT(cs); spi_xcomm_chipselect()
70 spi_xcomm->chipselect = chipselect; spi_xcomm_chipselect()
H A Dspi-bitbang-txrx.h5 * - GPIO/parport bitbangers. Provide chipselect() and txrx_word[](),
9 * chipselect() and txrx_word[](), with custom setup()/cleanup() methods
10 * that use your controller's clock and chipselect registers.
15 * duplex (MicroWire) controllers. Provide chipselect() and txrx_bufs(),
H A Dspi-bitbang.c40 * chipselect() and friends may use spi_device->controller_data and
208 /* NOTE we _need_ to call chipselect() early, ideally with adapter spi_bitbang_setup()
216 bitbang->chipselect(spi, BITBANG_CS_INACTIVE); spi_bitbang_setup()
320 bitbang->chipselect(spi, enable ? BITBANG_CS_ACTIVE : spi_bitbang_set_cs()
360 if (!master || !bitbang->chipselect) spi_bitbang_start()
H A Dspi-imx.c114 int chipselect[0]; member in struct:spi_imx_data
459 int cs = spi_imx->chipselect[config->cs]; mx31_config()
537 int cs = spi_imx->chipselect[config->cs]; mx21_config()
723 int gpio = spi_imx->chipselect[spi->chip_select]; spi_imx_chipselect()
1035 int gpio = spi_imx->chipselect[spi->chip_select]; spi_imx_setup()
1123 cs_gpio = mxc_platform_info->chipselect[i]; spi_imx_probe()
1125 spi_imx->chipselect[i] = cs_gpio; spi_imx_probe()
1129 ret = devm_gpio_request(&pdev->dev, spi_imx->chipselect[i], spi_imx_probe()
1137 spi_imx->bitbang.chipselect = spi_imx_chipselect; spi_imx_probe()
H A Dspi-xtensa-xtfpga.c101 xspi->bitbang.chipselect = xtfpga_spi_chipselect; xtfpga_spi_probe()
H A Dspi-omap-uwire.c190 /* activate specfied chipselect */ uwire_chipselect()
498 uwire->bitbang.chipselect = uwire_chipselect; uwire_probe()
536 * H3 support; it uses tsc2101 like H2 (on a different chipselect). omap_uwire_init()
H A Dspi-ppc4xx.c140 /* need this so we can set the clock in the chipselect routine */
215 hw->bitbang.chipselect(spi, BITBANG_CS_INACTIVE); spi_ppc4xx_setupxfer()
452 bbp->chipselect = spi_ppc4xx_chipsel; spi_ppc4xx_of_probe()
H A Dspi-clps711x.c148 master->cs_gpios[i] = pdata->chipselect[i]; spi_clps711x_probe()
H A Dspi-s3c24xx.c103 /* change the chipselect state and the state of the spi engine clock */ s3c24xx_spi_chipsel()
203 hw->bitbang.chipselect(spi, BITBANG_CS_INACTIVE); s3c24xx_spi_setup()
535 hw->bitbang.chipselect = s3c24xx_spi_chipsel; s3c24xx_spi_probe()
575 dev_err(&pdev->dev, "No chipselect pin\n"); s3c24xx_spi_probe()
H A Dspi-sh-sci.c142 sp->bitbang.chipselect = sh_sci_spi_chipselect; sh_sci_spi_probe()
H A Dspi-txx9.c125 dev_err(&spi->dev, "Cannot setup GPIO for chipselect.\n"); txx9spi_setup()
270 /* normally deactivate chipselect ... unless no error and txx9spi_work_one()
H A Dspidev.c44 * handle chipselect management and other protocol options.
159 /* chipselect only toggles at start or end of operation */ spidev_read()
190 /* chipselect only toggles at start or end of operation */ spidev_write()
H A Dspi-gpio.c38 * spi->controller_data ... holds chipselect GPIO
482 spi_gpio->bitbang.chipselect = spi_gpio_chipselect; spi_gpio_probe()
H A Dspi-altera.c223 hw->bitbang.chipselect = altera_spi_chipsel; altera_spi_probe()
H A Dspi-ath79.c237 sp->bitbang.chipselect = ath79_spi_chipselect; ath79_spi_probe()
H A Dspi-butterfly.c225 pp->bitbang.chipselect = butterfly_chipselect; butterfly_attach()
H A Dspi-oc-tiny.c266 hw->bitbang.chipselect = tiny_spi_chipselect; tiny_spi_probe()
H A Dspi-fsl-spi.c485 * indicates to use native chipselect if present, or allow for fsl_spi_setup()
490 /* Initialize chipselect - might be active for SPI_CS_HIGH mode */ fsl_spi_setup()
H A Dspi-img-spfi.c463 dev_err(&spi->dev, "can't request chipselect gpio %d\n", img_spfi_setup()
474 dev_err(&spi->dev, "chipselect gpio %d setup failed (%d)\n", img_spfi_setup()
H A Dspi-efm32.c353 ddata->bitbang.chipselect = efm32_spi_chipselect; efm32_spi_probe()
H A Dspi-lm70llp.c222 pp->bitbang.chipselect = lm70_chipselect; spi_lm70llp_attach()
H A Dspi-nuc900.c362 hw->bitbang.chipselect = nuc900_spi_chipsel; nuc900_spi_probe()
H A Dspi-davinci.c320 /* Set up SPIFMTn register, unique to this chipselect. */ davinci_spi_setup_transfer()
347 * - Standard SPI mode uses 4 pins, with chipselect davinci_spi_setup_transfer()
1016 dspi->bitbang.chipselect = davinci_spi_chipselect; davinci_spi_probe()
H A Dspi-omap2-mcspi.c916 /* set chipselect polarity; manage with FORCE */ omap2_mcspi_setup_transfer()
1097 * chipselect with the FORCE bit ... CS != channel enable. omap2_mcspi_work_one()
1390 u32 num_cs = 1; /* default number of chipselect */ omap2_mcspi_probe()
H A Dspi-atmel.c1211 /* see notes above re chipselect */ atmel_spi_setup()
1227 /* DLYBS is mostly irrelevant since we manage chipselect using GPIOs. atmel_spi_setup()
1236 /* chipselect must have been muxed as GPIO (e.g. in board setup) */ atmel_spi_setup()
H A Dspi-dw.c327 * chipselect mechanism. dw_spi_transfer_one()
H A Dspi-xilinx.c419 xspi->bitbang.chipselect = xilinx_spi_chipselect; xilinx_spi_probe()
H A Dspi-ep93xx.c653 * chipselect briefly, we let the scheduler to handle ep93xx_spi_process_transfer()
713 * Assert the chipselect. ep93xx_spi_process_message()
H A Dspi.c516 * chipselect **BEFORE** we call setup(), else we'll trash spi_add_device()
523 dev_err(dev, "chipselect %d already in use\n", spi_add_device()
1794 * be at least one chipselect spi_register_master()
H A Dspi-au1550.c813 hw->bitbang.chipselect = au1550_spi_chipsel; au1550_spi_probe()
H A Dspi-sh-msiof.c843 /* setup clocks (clock already enabled in chipselect()) */ sh_msiof_transfer_one()
H A Dspi-sirf.c1118 sspi->bitbang.chipselect = spi_sirfsoc_chipselect; spi_sirfsoc_probe()
/linux-4.4.14/arch/mips/bcm63xx/
H A Dcs.c31 * Configure chipselect base address and size (bytes).
63 * configure chipselect timing (ns)
91 * configure other chipselect parameter (data bus size, ...)
/linux-4.4.14/sound/pci/ice1712/
H A Drevo.h47 #define VT1724_REVO_CS0 0x10 /* AK5365 chipselect for (revo51) */
48 #define VT1724_REVO_CS1 0x20 /* front AKM4381 chipselect */
/linux-4.4.14/drivers/gpio/
H A Dgpio-spear-spics.c2 * SPEAr platform SPI chipselect abstraction over gpiolib
28 * It provides control for spi chip select lines so that any chipselect
38 * @cs_value_bit: bit to program high or low chipselect
39 * @cs_enable_mask: mask to select bits required to select chipselect
H A Dgpio-mcp23s08.c87 * sharing the same chipselect but using different addresses
/linux-4.4.14/drivers/mtd/nand/
H A Dhisi504_nand.c144 int chipselect; member in struct:hinfc_host
226 | ((host->chipselect & HINFC504_DMA_CTRL_CS_MASK) hisi_nfc_dma_transfer()
300 | ((host->chipselect & HINFC504_OP_NF_CS_MASK) hisi_nfc_send_cmd_erase()
319 | ((host->chipselect & HINFC504_OP_NF_CS_MASK) hisi_nfc_send_cmd_readid()
334 | ((host->chipselect & HINFC504_OP_NF_CS_MASK) hisi_nfc_send_cmd_status()
343 static int hisi_nfc_send_cmd_reset(struct hinfc_host *host, int chipselect) hisi_nfc_send_cmd_reset() argument
348 | ((chipselect & HINFC504_OP_NF_CS_MASK) hisi_nfc_send_cmd_reset()
358 static void hisi_nfc_select_chip(struct mtd_info *mtd, int chipselect) hisi_nfc_select_chip() argument
363 if (chipselect < 0) hisi_nfc_select_chip()
366 host->chipselect = chipselect; hisi_nfc_select_chip()
508 hisi_nfc_send_cmd_reset(host, host->chipselect); hisi_nfc_cmdfunc()
614 host->chipselect = 0; hisi_nfc_host_init()
H A Ddavinci_nand.c45 * and some flavors of secondary chipselect (e.g. based on A12) as used
101 * Access to hardware control lines: ALE, CLE, secondary chipselect.
130 /* maybe kick in a second chipselect */ nand_davinci_select_chip()
142 * 1-bit hardware ECC ... context maintained for each core chipselect
572 "ti,davinci-chipselect", &prop)) nand_davinci_get_pdata()
648 /* which external chipselect will we be managing? */ nand_davinci_probe()
H A Dau1550nd.c447 dev_err(&pdev->dev, "cannot detect NAND chipselect\n"); au1550nd_probe()
/linux-4.4.14/arch/arm/mach-imx/
H A Dmach-pcm037_eet.c22 /* Reserve and hardwire GPIO 57 high - S6E63D6 chipselect */
62 .chipselect = pcm037_spi1_cs,
H A Dmx31lite-db.c158 .chipselect = spi_internal_chipselect,
H A Dmach-mx27_3ds.c362 .chipselect = spi1_chipselect,
369 .chipselect = spi2_chipselect,
H A Dmach-mx31lilly.c216 .chipselect = spi_internal_chipselect,
221 .chipselect = spi_internal_chipselect,
H A Dmach-mx31lite.c111 .chipselect = spi_internal_chipselect,
H A Dmach-mx31moboard.c161 .chipselect = moboard_spi1_cs,
310 .chipselect = moboard_spi2_cs,
H A Dmach-mx31_3ds.c515 .chipselect = spi0_internal_chipselect,
525 .chipselect = spi1_internal_chipselect,
H A Dmach-pca100.c208 .chipselect = pca100_spi_cs,
/linux-4.4.14/arch/arm/mach-omap1/include/mach/
H A Dtc.h50 /* external EMIFS chipselect regions */
H A Dhardware.h58 * from NOR flash (using external chipselect 3) rather than mask ROM,
/linux-4.4.14/arch/arm/mach-spear/
H A Dspear3xx.c37 * gpio's. We can't use chipselect provided from spi master (because as
/linux-4.4.14/drivers/mmc/host/
H A Dmmc_spi.c58 * - MMC depends on a different chipselect management policy than the
60 * to issue multiple spi_message requests with the chipselect active,
66 * - We tell the controller to keep the chipselect active from the
70 * However, many cards seem OK with chipselect flapping up/down
166 /* chipselect will always be inactive after setup() */ mmc_cs_off()
428 /* disable chipselect on errors and some success cases */ mmc_spi_response_get()
526 /* send command, leaving chipselect active */ mmc_spi_command_send()
555 /* after no-data commands and STOP_TRANSMISSION, chipselect off */ mmc_spi_command_send()
772 * before dropping chipselect.
1140 * Do a burst with chipselect active-high. We need to do this to mmc_spi_initsequence()
1141 * meet the requirement of 74 clock cycles with both chipselect mmc_spi_initsequence()
1149 * SPI protocol. Another is that when chipselect is released while mmc_spi_initsequence()
1151 * with chipselect high before the card will stop driving its output. mmc_spi_initsequence()
1239 * chipselect should be low (it is active low) mmc_spi_set_ios()
1242 * FIXME no, chipselect can be high since the mmc_spi_set_ios()
/linux-4.4.14/drivers/pcmcia/
H A Domap_cf.c47 /* which chipselect (CS0..CS3) is used for CF (active low) */
201 * "what chipselect is used". Boards could want more.
H A Dat91_cf.c176 regmap_update_bits(mc, AT91_MC_SMC_CSR(cf->board->chipselect), at91_cf_set_io_map()
H A Dsoc_common.c395 * the value of the voltage detect chipselect register.
/linux-4.4.14/include/linux/amba/
H A Dpl022.h237 * each slave has a chipselect signal, but it's common that not
238 * every chipselect is connected to a slave.
/linux-4.4.14/arch/arm/plat-samsung/include/plat/
H A Dcpu-freq.h105 * @need_io: Set if the board has external IO on any of the chipselect
/linux-4.4.14/arch/powerpc/platforms/512x/
H A Dmpc512x_lpbfifo.c390 * - the first address cell which is the chipselect number; get_cs_ranges()
391 * - the second address cell which is the offset in the chipselect, get_cs_ranges()
/linux-4.4.14/arch/arm/mach-pxa/
H A Dz2.c76 GPIO88_GPIO, /* LCD chipselect */
/linux-4.4.14/drivers/memory/
H A Dti-aemif.c271 if (of_property_read_u32(np, "ti,cs-chipselect", &cs)) { of_aemif_parse_abus_config()
/linux-4.4.14/drivers/ata/
H A Dpata_at91.c425 info->cs = board->chipselect; pata_at91_probe()
/linux-4.4.14/drivers/mmc/core/
H A Dmmc_ops.c153 * Non-SPI hosts need to prevent chipselect going active during mmc_go_idle()
/linux-4.4.14/arch/powerpc/boot/
H A D4xx.c167 * for Sequoia/Rainier boards while they only have one chipselect
/linux-4.4.14/drivers/net/ethernet/micrel/
H A Dks8851.c533 * chipselect low during the entie transaction to avoid any ks8851_rx_pkts()

Completed in 4702 milliseconds