summaryrefslogtreecommitdiff
path: root/components/drivers/sdio/mmc.c
AgeCommit message (Collapse)Author
2020-03-16component: sdio: fix potential ricky clock settingShawn Lin
Currently RTT mmc stack only support Highspeed mode or blow, which means the max speed should be 52MHz according to JEDEC spec. Two problems show here: (1) max_data_rate = (unsigned int)-1. The value of unsigned int depends on compilers/arch. Moreover, it makes no sense to assume cpu addressing width with IP clock rate limit. (1)hs_max_data_rate was set to 200MHz. So what should BSP drivers do if 52MHz < max_data_rate < 200MHz? Either it blindly sets a spec-violated clock rate to drive a Highspeed card, or just adjust the clock rate internally. Both cases are really bad for practice. If the card claims to support Highspeed, we set the clock to not to exceed 52MHz. Otherwise it should be set according to card->max_data_rate parsed by ext_csd. This patch fixes it as-is, and also simplify the code a lot. Signed-off-by: Shawn Lin <[email protected]>
2020-03-12[Components] sdio: try bus width depends on host's capabilityShawn Lin
It makes no sense to try bus width if not supported by drivers or BSP, since we know it must be failed. It saves a lot for booting in time critical environment. Signed-off-by: Shawn Lin <[email protected]>
2019-07-19sdio: mmc.c: 修复缩进/Fix indentation.Zhou Yanjie
修复版权信息中的缩进格式。 Fix indentation in copyright information. Signed-off-by: Zhou Yanjie <[email protected]>
2019-07-19sdio: mmc.c: 防止容量计算过程溢出/Prevent capacity calculation ↵Zhou Yanjie
overflow. 修改“mmc_parse_ext_csd”函数,防止容量计算过程溢出。 Modify the "mmc_parse_ext_csd" function to prevent the capacity calculation process from overflowing. Signed-off-by: Zhou Yanjie <[email protected]>
2019-04-12Update all of debug log definition to DBG_TAG and DBG_LVL.armink
2019-03-06Remove the DBG_COLOR and DBG_ENABLE definition.armink
2018-11-02[components][DeviceDriver] Update log tag from [SDIO] to SDIO.armink
2018-10-14[license] Change license to Apache.Bernard Xiong
2018-09-30[Components][SDIO]fix 'rocr' declared without an initial valueZYH
2018-09-22[Components][SDIO][MMC] fix null point checkZYH
2018-09-05[DeviceDriver][SDIO] Update sdio debug log.EvalZero
2018-06-26[components][drivers]sdio 给局部指针变量赋初值,修复潜在问题tangyuxin
2015-06-221.Fixed sdmmc cmd retries issue;weety
2015-06-20Add mmc and emmc drivers.weety