Lines Matching +full:cs +full:- +full:3
5 * Licensed under the GPL-2 or later.
23 * rising edge ... meaning SPI modes 0 or 3. So either SPI mode
26 * specify mode 3 (if hardware is not compatible to mode 0).
35 uint cs = CONFIG_MMC_SPI_CS; in do_mmc_spi() local
44 cs = simple_strtoul(argv[1], &endp, 0); in do_mmc_spi()
50 bus = cs; in do_mmc_spi()
51 cs = simple_strtoul(endp + 1, &endp, 0); in do_mmc_spi()
55 if (argc >= 3) { in do_mmc_spi()
61 mode = simple_strtoul(argv[3], &endp, 16); in do_mmc_spi()
62 if (*argv[3] == 0 || *endp != 0) in do_mmc_spi()
65 if (!spi_cs_is_valid(bus, cs)) { in do_mmc_spi()
66 printf("Invalid SPI bus %u cs %u\n", bus, cs); in do_mmc_spi()
70 mmc = mmc_spi_init(bus, cs, speed, mode); in do_mmc_spi()
75 printf("%s: %d at %u:%u hz %u mode %u\n", mmc->cfg->name, in do_mmc_spi()
76 mmc->block_dev.devnum, bus, cs, speed, mode); in do_mmc_spi()
87 "[bus:]cs [hz] [mode] - setup mmc_spi device"