Hello, Rory,
I tested a wifi module based on BCM4330, configuration and log for you as a reference:
(1)Configurations in BSP
...
#define QCOREIN_WIFI_DET IMX_GPIO_NR(1, 4)
...
/*SD2 is for WIFI & BT and working at 4 bit mode*/
static const struct esdhc_platform_data mx6q_qcorein_sd2_data __initconst = {
.cd_gpio = QCOREIN_WIFI_DET,
.keep_power_at_suspend = 1,
.support_8bit = 0,
.delay_line = 0,
.cd_type = ESDHC_CD_CONTROLLER,
.runtime_pm = 1,
};
/* in board init function */
...
imx6q_add_sdhci_usdhc_imx(1, &mx6q_qcorein_sd2_data);
...
(2)linux booting logs
...
mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
mmc2: queuing unknown CIS tuple 0x80 (6 bytes)
mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
...
mmc2: new high speed SDIO card at address 0001
...
Regards,
Weidong