iMX6 WiFi on SDIO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX6 WiFi on SDIO

Jump to solution
5,763 Views
qlx-mcleod
Contributor II

We have an iMX6 based development kit (iWave Q7), and LTIB bsp. Our SDIO WiFi is from CSR.

The problem we are having is that the OS does not seem to detect when a SDIO card is inserted. I would expect at least a line or two in dmesg, but there is nothing.

Labels (2)
Tags (3)
0 Kudos
1 Solution
1,507 Views
qlx-mcleod
Contributor II

Thank you Weidong,

The problem turned out to be a default setting in u-boot for the device. The specific device is an iWave Q7 development board. To fix the issue, the following setting had to be added to the bootargs to disable the internal wifi card:

setenv bootargs_base console=ttymxc1,115200n8 wifi_active=off

-Rory

View solution in original post

0 Kudos
2 Replies
1,507 Views
weidong_sun
NXP TechSupport
NXP TechSupport

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

0 Kudos
1,508 Views
qlx-mcleod
Contributor II

Thank you Weidong,

The problem turned out to be a default setting in u-boot for the device. The specific device is an iWave Q7 development board. To fix the issue, the following setting had to be added to the bootargs to disable the internal wifi card:

setenv bootargs_base console=ttymxc1,115200n8 wifi_active=off

-Rory

0 Kudos