SD card detection with multiplexed CD/DAT3

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SD card detection with multiplexed CD/DAT3

跳至解决方案
7,579 次查看
andreygelman
Contributor III

Is it possible to detect an SD card insertion / removal with a micro-SD socket with multiplexed CD / DAT3 line, in Linux on i.MX6 ?

Thanks !

标签 (3)
1 解答
3,122 次查看
max_tsai
NXP Employee
NXP Employee

hi,

CD/DAT3 card detection mechanism is workable on i.MX6, but there is no well-implementation of SDHC bus driver.

You can set uSDHCx_INT_STATUS_EN:CINSSEN, uSDHCx_INT_SIGNAL_EN:CINSIEN, and uSDHCx_PROT_CTRL:D3CD to enable CD/DAT3 card detection mechanism. Before that, you need to configure SD_DAT3 pad with pull-down.

But it's preferred to use mechanism switch(GPIO) for card detection, DAT3 is CS pin for SPI mode. A pull-down on this pin and CMD0 may set this card into the SPI mode.

Regards,

Max

在原帖中查看解决方案

1 回复
3,123 次查看
max_tsai
NXP Employee
NXP Employee

hi,

CD/DAT3 card detection mechanism is workable on i.MX6, but there is no well-implementation of SDHC bus driver.

You can set uSDHCx_INT_STATUS_EN:CINSSEN, uSDHCx_INT_SIGNAL_EN:CINSIEN, and uSDHCx_PROT_CTRL:D3CD to enable CD/DAT3 card detection mechanism. Before that, you need to configure SD_DAT3 pad with pull-down.

But it's preferred to use mechanism switch(GPIO) for card detection, DAT3 is CS pin for SPI mode. A pull-down on this pin and CMD0 may set this card into the SPI mode.

Regards,

Max