ret =mmc_send_io_op_cond(host,0, &rocr);if(!(host->resp[0] & (7<<28)))return-1; ret =mmc_send_io_op_cond(host, rocr, &rocr);if(host->resp[0] &0x80000000)break; } ret = mmc_set_relative_addr(host); DPRINT("rca = %d\n", host->card.rca); ret = mmc_select_card...
intmmc_attach_sdio(structmmc_host *host){interr, i, funcs; u32 ocr, rocr;structmmc_card*card;WARN_ON(!host->claimed);//发送CMD5,获取ocr寄存器err = mmc_send_io_op_cond(host,0, &ocr); mmc_attach_bus(host, &mmc_sdio_ops);//设置mmc_bus_opsif(host->ocr_avail_sdio) host->ocr_...
mmc_send_op_cond 发送CMD1指令,SEND_OP_COND 这里会设置card的工作电压寄存器OCR,并且通过busy位(bit31)来判断card的上电复位过程是否完成,如果没有完成的话需要重复发送。 完成之后,mmc card进入ready state。 mmc_all_send_cid 这里会发送CMD2指令,ALL_SEND_CID 广播指令,使card回复对应的CID寄存器的值。在...
mmc_go_idle(host); mmc_send_if_cond(host, host->ocr_avail); mmc_attach_sdio(host) mmc_send_io_op_cond(host, 0, &ocr);//使用CMD5命令,获取OCR值(slave支持的电压范围) mmc_attach_bus(host, &mmc_sdio_ops);//设置host的bus操作函数是mmc_sdio_ops mmc_select_voltage(host, ocr);//设...
*/err = mmc_send_io_op_cond(host,0, &ocr);if(!err) {if(mmc_attach_sdio(host, ocr)) mmc_power_off(host);gotoout; }/* * ...then normal SD... */err = mmc_send_app_op_cond(host,0, &ocr);if(!err) {if(mmc_attach_sd(host, ocr)) ...
[1.266014] mmc0:MMC_ATE_SDIO:MMC_SEND_IO_OP_COND 失败。 [1.272548] mmc0:MMC_attach_SD:MMC_SEND_APP_OP_COND 成功 [1.278059] mmc0:MMC_ATE_SD:MMC_SELECT_VOLTAGE 成功 [1.283462] OMAP_hsmmc 4781000.MMC:OMAP-hsmmc_probe Done。 [1.289285] sddhci-pltfm:SDHCI 平台和驱动程序助手 ...
D (831) sdmmc_io: sdmmc_init_io: io_send_op_cond (1) returned 0x107; not IO card I (921) RIL: [../main/cloud_data_sync/ril_task.c:74] RIL_PIN_RESET:0 D (10831) sdmmc_common: send_op_cond timeout, trying MMC D (10831) sdmmc_req: process_command_response: error 0x107...
示例1: mmc_send_op_cond ▲点赞 7▼ intmmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr){structmmc_commandcmd;inti, err =0; BUG_ON(!host);memset(&cmd,0,sizeof(struct mmc_command)); cmd.opcode = MMC_SEND_OP_COND; ...
mmc_send_io_op_cond(host, 0, &ocr);//使用CMD5命令,获取OCR值(slave支持的电压范围) mmc_attach_bus(host, &mmc_sdio_ops);//设置host的bus操作函数是mmc_sdio_ops mmc_select_voltage(host, ocr);//设置电压为选取电压(slave本身支持的电压范围&平台环境选取的电压ocr_avail==ocr_mask)的最小值 ...
err = mmc_send_io_op_cond(host, 0, &ocr); if (!err) { if (mmc_attach_sdio(host, ocr)) mmc_power_off(host); goto out; } /* * ...then normal SD... */ err = mmc_send_app_op_cond(host, 0, &ocr); if (!err) { ...