/linux-4.4.14/include/linux/platform_data/ |
H A D | spi-imx.h | 7 * @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 D | spi-clps711x.h | 17 int *chipselect; /* Array of GPIO-numbers */ member in struct:spi_clps711x_pdata
|
H A D | atmel.h | 20 u8 chipselect; /* EBI Chip Select number */ member in struct:at91_cf_data
|
/linux-4.4.14/include/linux/spi/ |
H A D | spi_oc_tiny.h | 8 * @gpio_cs_count: number of gpio pins used for chipselect. 9 * @gpio_cs: array of gpio pins used for chipselect.
|
H A D | spi_gpio.h | 16 * 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 D | mcp23s08.h | 11 * chipselect, each providing 1 gpio_chip instance with 8 gpios. 13 * chipselect, each providing 1 gpio_chip (port A + port B) with
|
H A D | spi_bitbang.h | 20 void (*chipselect)(struct spi_device *spi, int is_on); member in struct:spi_bitbang
|
H A D | spi.h | 102 * 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 D | spi-xcomm.c | 37 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 D | spi-bitbang-txrx.h | 5 * - 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 D | spi-bitbang.c | 40 * 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 D | spi-imx.c | 114 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 D | spi-xtensa-xtfpga.c | 101 xspi->bitbang.chipselect = xtfpga_spi_chipselect; xtfpga_spi_probe()
|
H A D | spi-omap-uwire.c | 190 /* 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 D | spi-ppc4xx.c | 140 /* 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 D | spi-clps711x.c | 148 master->cs_gpios[i] = pdata->chipselect[i]; spi_clps711x_probe()
|
H A D | spi-s3c24xx.c | 103 /* 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 D | spi-sh-sci.c | 142 sp->bitbang.chipselect = sh_sci_spi_chipselect; sh_sci_spi_probe()
|
H A D | spi-txx9.c | 125 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 D | spidev.c | 44 * 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 D | spi-gpio.c | 38 * spi->controller_data ... holds chipselect GPIO 482 spi_gpio->bitbang.chipselect = spi_gpio_chipselect; spi_gpio_probe()
|
H A D | spi-altera.c | 223 hw->bitbang.chipselect = altera_spi_chipsel; altera_spi_probe()
|
H A D | spi-ath79.c | 237 sp->bitbang.chipselect = ath79_spi_chipselect; ath79_spi_probe()
|
H A D | spi-butterfly.c | 225 pp->bitbang.chipselect = butterfly_chipselect; butterfly_attach()
|
H A D | spi-oc-tiny.c | 266 hw->bitbang.chipselect = tiny_spi_chipselect; tiny_spi_probe()
|
H A D | spi-fsl-spi.c | 485 * 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 D | spi-img-spfi.c | 463 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 D | spi-efm32.c | 353 ddata->bitbang.chipselect = efm32_spi_chipselect; efm32_spi_probe()
|
H A D | spi-lm70llp.c | 222 pp->bitbang.chipselect = lm70_chipselect; spi_lm70llp_attach()
|
H A D | spi-nuc900.c | 362 hw->bitbang.chipselect = nuc900_spi_chipsel; nuc900_spi_probe()
|
H A D | spi-davinci.c | 320 /* 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 D | spi-omap2-mcspi.c | 916 /* 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 D | spi-atmel.c | 1211 /* 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 D | spi-dw.c | 327 * chipselect mechanism. dw_spi_transfer_one()
|
H A D | spi-xilinx.c | 419 xspi->bitbang.chipselect = xilinx_spi_chipselect; xilinx_spi_probe()
|
H A D | spi-ep93xx.c | 653 * chipselect briefly, we let the scheduler to handle ep93xx_spi_process_transfer() 713 * Assert the chipselect. ep93xx_spi_process_message()
|
H A D | spi.c | 516 * 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 D | spi-au1550.c | 813 hw->bitbang.chipselect = au1550_spi_chipsel; au1550_spi_probe()
|
H A D | spi-sh-msiof.c | 843 /* setup clocks (clock already enabled in chipselect()) */ sh_msiof_transfer_one()
|
H A D | spi-sirf.c | 1118 sspi->bitbang.chipselect = spi_sirfsoc_chipselect; spi_sirfsoc_probe()
|
/linux-4.4.14/arch/mips/bcm63xx/ |
H A D | cs.c | 31 * 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 D | revo.h | 47 #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 D | gpio-spear-spics.c | 2 * 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 D | gpio-mcp23s08.c | 87 * sharing the same chipselect but using different addresses
|
/linux-4.4.14/drivers/mtd/nand/ |
H A D | hisi504_nand.c | 144 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 D | davinci_nand.c | 45 * 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 D | au1550nd.c | 447 dev_err(&pdev->dev, "cannot detect NAND chipselect\n"); au1550nd_probe()
|
/linux-4.4.14/arch/arm/mach-imx/ |
H A D | mach-pcm037_eet.c | 22 /* Reserve and hardwire GPIO 57 high - S6E63D6 chipselect */ 62 .chipselect = pcm037_spi1_cs,
|
H A D | mx31lite-db.c | 158 .chipselect = spi_internal_chipselect,
|
H A D | mach-mx27_3ds.c | 362 .chipselect = spi1_chipselect, 369 .chipselect = spi2_chipselect,
|
H A D | mach-mx31lilly.c | 216 .chipselect = spi_internal_chipselect, 221 .chipselect = spi_internal_chipselect,
|
H A D | mach-mx31lite.c | 111 .chipselect = spi_internal_chipselect,
|
H A D | mach-mx31moboard.c | 161 .chipselect = moboard_spi1_cs, 310 .chipselect = moboard_spi2_cs,
|
H A D | mach-mx31_3ds.c | 515 .chipselect = spi0_internal_chipselect, 525 .chipselect = spi1_internal_chipselect,
|
H A D | mach-pca100.c | 208 .chipselect = pca100_spi_cs,
|
/linux-4.4.14/arch/arm/mach-omap1/include/mach/ |
H A D | tc.h | 50 /* external EMIFS chipselect regions */
|
H A D | hardware.h | 58 * from NOR flash (using external chipselect 3) rather than mask ROM,
|
/linux-4.4.14/arch/arm/mach-spear/ |
H A D | spear3xx.c | 37 * gpio's. We can't use chipselect provided from spi master (because as
|
/linux-4.4.14/drivers/mmc/host/ |
H A D | mmc_spi.c | 58 * - 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 D | omap_cf.c | 47 /* which chipselect (CS0..CS3) is used for CF (active low) */ 201 * "what chipselect is used". Boards could want more.
|
H A D | at91_cf.c | 176 regmap_update_bits(mc, AT91_MC_SMC_CSR(cf->board->chipselect), at91_cf_set_io_map()
|
H A D | soc_common.c | 395 * the value of the voltage detect chipselect register.
|
/linux-4.4.14/include/linux/amba/ |
H A D | pl022.h | 237 * 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 D | cpu-freq.h | 105 * @need_io: Set if the board has external IO on any of the chipselect
|
/linux-4.4.14/arch/powerpc/platforms/512x/ |
H A D | mpc512x_lpbfifo.c | 390 * - 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 D | z2.c | 76 GPIO88_GPIO, /* LCD chipselect */
|
/linux-4.4.14/drivers/memory/ |
H A D | ti-aemif.c | 271 if (of_property_read_u32(np, "ti,cs-chipselect", &cs)) { of_aemif_parse_abus_config()
|
/linux-4.4.14/drivers/ata/ |
H A D | pata_at91.c | 425 info->cs = board->chipselect; pata_at91_probe()
|
/linux-4.4.14/drivers/mmc/core/ |
H A D | mmc_ops.c | 153 * Non-SPI hosts need to prevent chipselect going active during mmc_go_idle()
|
/linux-4.4.14/arch/powerpc/boot/ |
H A D | 4xx.c | 167 * for Sequoia/Rainier boards while they only have one chipselect
|
/linux-4.4.14/drivers/net/ethernet/micrel/ |
H A D | ks8851.c | 533 * chipselect low during the entie transaction to avoid any ks8851_rx_pkts()
|