I.MX6 sdio 设备注册及识别
--
/************************************************************************* * I.MX6 sdio 设备注册及识别 * 说明: * 大多数时候如果驱动都识别不到硬件设备,这就很艰难了,能识别到设备, * 后续才有得发挥。 * * 2016-6-12 深圳 南山平山村 曾剑锋 ************************************************************************/ 一、设备注册: static void __init mx6_sabresd_board_init(void) { ...... imx6q_add_sdhci_usdhc_imx(1, &mx6q_sabresd_sd2_data); ...... } static const struct esdhc_platform_data mx6q_sabresd_sd2_data __initconst = { //.cd_gpio = SABRESD_WL_HOST_WAKE, .always_present = 1, .keep_power_at_suspend = 1, .support_8bit = 0, .delay_line = 0, .cd_type = ESDHC_CD_CONTROLLER, .runtime_pm = 1, }; 二、dmesg 信息查看 root@android:/ # dmesg | grep SDIO <6>mmc2: new high speed SDIO card at address 0001 root@android:/ #
https://blog.csdn.net/flyxiao28/article/details/80369235
https://www.cnblogs.com/cslunatic/p/3678045.html
https://www.cnblogs.com/zengjfgit/p/5576763.html
--
作者:柒月
Q群 :2122210(嵌入式/机器学习)