* The EXT_CSD sector count is in number or 512 byte * sectors. */ set_capacity(md->disk, card->ext_csd.sectors); } else { /* * The CSD capacity field is in units of read_blkbits. * set_capacity takes units of 512 bytes. */ set_capacity(md->disk, card->csd.capacity << ...
mmc_send_ext_csd(card, ext_csd) mmc_send_cxd_data(card, card->host, MMC_SEND_EXT_CSD,ext_csd, 512) mmc_set_data_timeout(&data, card) mmc_wait_for_req(host, &mrq) mmc_read_ext_csd(card, ext_csd) struct mmc_ext_csd //将ext_csd的内容解析到card结构体中(struct mmc_ext_csd)...
CMD6的参数[31:26]位域填写0,[25:24]位域设置访问模式,[23:16]位域填写EXT_CSD寄存器的索引,[15:8]位域填写Value值,[7:3]位域填写0,[2:0]位域填写要切换的命令集,命令的类型为ac,CMD6的命令缩写为SWITCH,命令响应为R1b,命令功能为切换eMMC设备的操作模式或者修改eMMC设备的EXT_CSD寄存器。 访问模式...
raw_csd:原始的CSD值 raw_scr:原始的raw_scr值 cid:struct mmc_cid类型,卡identification csd:struct mmc_csd类型,保存从卡的CSD寄存器读取的内容 ext_csd:struct mmc_ext_csd类型,卡扩展信息 scr:其它的SD信息 ssr:更多的SD信息 sw_caps:swicth能力 sdio_funcs:SDIO功能的个数 cccr:struct sdio_cccr类型,卡...
structmmc_csdcsd;/* card specific */ structmmc_ext_csdext_csd;/* mmc v4 extended card specific */ structsd_scrscr;//附加SD信息 structsd_ssrssr;/* yet more SD information */ structsd_switch_capssw_caps;/* switch (CMD6) caps */ ...
l).mmc_read_ext_csd:解析ext_csd的内容 m).mmc_set_erase_size:设置擦除单位大小,依赖于ext_csd和csd n).mmc_switch:设置分区相关信息,其中part_config配置访问分区信息,part_time为switch命令执行时间。 mmc_add_card 如果mmc_init_card初始化成功,则将调用mmc_add_card将mmc_card通过device_add加入到设备...
drivers/mmc/core/queue.cmq->tag_set.ops=&mmc_mq_ops;if(mq->use_cqe&&!host->hsq_enabled)mq->tag_set.queue_depth=min_t(int,card->ext_csd.cmdq_depth,host->cqe_qdepth);elsemq->tag_set.queue_depth=MMC_QUEUE_DEPTH;mq->tag_set.numa_node=NUMA_NO_NODE;mq->tag_set.flags=BLK_MQ_...
card->ext_csd.boot_ro_lockable) { umode_t mode; if (card->ext_csd.boot_ro_lock & EXT_CSD_BOOT_WP_B_PWR_WP_DIS) mode = S_IRUGO; else mode = S_IRUGO | S_IWUSR; md->power_ro_lock.show = power_ro_lock_show; md->power_ro_lock.store = power_ro_lock_store; ...
,由 Extended CSD register 的 BOOT_SIZE_MULT Field 决定,大小的计算公式如下: Size = 128Kbytes x BOOT_SIZE_MULT 一般情况下,...在 Boot State 下,如果有配置 BOOT_ACK,eMMC 会先发送 “010” 的 ACK 包,接...
新人求助,关于iMX..主板从TF卡启动时,总是停在这里跑步下去,请求帮助啊,拜谢了。Waiting for root device /dev/mmcblk1p1...mmc0: unrecognised EXT_CSD r