Lines Matching full:sd
9 #include <zephyr/sd/sd.h>
10 #include <zephyr/sd/sdmmc.h>
11 #include <zephyr/sd/sd_spec.h>
19 LOG_MODULE_REGISTER(sd, CONFIG_SD_LOG_LEVEL);
36 * Perform init required for both SD and SDIO cards.
37 * This function performs the following portions of SD initialization
38 * - CMD0 (SD reset)
39 * - CMD8 (SD voltage check)
62 LOG_DBG("SD CMD8 failed with error %d", ret); in sd_send_interface_condition()
85 /* Sends CMD59 to enable CRC checking for SD card in SPI mode */
100 /* Retries SD and SDIO initialisation until card has valid response to SD CMD8 */
105 /* Perform voltage check using SD CMD8 */ in sd_common_init()
128 /* SD clock should start gated */ in sd_init_io()
183 * Performs init flow described in section 3.6 of SD specification.
190 * We must wait 74 clock cycles, per SD spec, to use card after power in sd_command_init()
198 * flow described in section 3.6 of SD specification in sd_command_init()
233 /* Initializes SD/SDIO card */
244 LOG_ERR("SD host controller returned invalid properties"); in sd_init()
268 * SD protocol is stateful, so we must account for the possibility in sd_init()
273 * - re init host I/O (will also toggle power to the SD card) in sd_init()
280 /* Reset I/O, and retry sd initialization once more */ in sd_init()
291 LOG_ERR("Failed to init SD card after I/O reset"); in sd_init()