AnsweredAssumed Answered

mmc Timeout waiting for hardware interrupt.

Question asked by tsai derek on Dec 29, 2014
Latest reply on May 18, 2017 by Vatsal Patel

Hi all,

 

I am working on IMX6q custom board.

I am using IMX6 android4.3 BSP from freescale


when setting sd4 for micro sd , i got mmc timeout message

and i can't mount sd crad on my system

 

Board.c

#define SD4_CD             IMX_GPIO_NR(4, 23)

 

/* SD4 */

MX6Q_PAD_SD4_CLK__USDHC4_CLK_50MHZ,

MX6Q_PAD_SD4_CMD__USDHC4_CMD_50MHZ,

MX6Q_PAD_SD4_DAT0__USDHC4_DAT0_50MHZ,

MX6Q_PAD_SD4_DAT1__USDHC4_DAT1_50MHZ,

MX6Q_PAD_SD4_DAT2__USDHC4_DAT2_50MHZ,

MX6Q_PAD_SD4_DAT3__USDHC4_DAT3_50MHZ,

MX6Q_PAD_NANDF_ALE__USDHC4_RST,

MX6Q_PAD_DISP0_DAT2__GPIO_4_23, 

 

static const struct esdhc_platform_data mx6q_sd4_data __initconst = {

        .cd_gpio                = SD4_CD,

        .keep_power_at_suspend = 1,

        .cd_type = ESDHC_CD_CONTROLLER,

        .runtime_pm = 1,

};

 

static struct regulator_consumer_supply mw3200_vmmc_consumers[] = {

        REGULATOR_SUPPLY("vmmc", "sdhci-esdhc-imx.0"),

        REGULATOR_SUPPLY("vmmc", "sdhci-esdhc-imx.1"),

        REGULATOR_SUPPLY("vmmc", "sdhci-esdhc-imx.2"),

        REGULATOR_SUPPLY("vmmc", "sdhci-esdhc-imx.3"),

};

 

( setting sd4 to mmc1 )

imx6q_add_sdhci_usdhc_imx(3, &mx6q_sd4_data);

 

fstab.freescale

/devices/platform/sdhci-esdhc-imx.3/mmc_host/mmc1 /mnt/extsd vfat defaults voldmanaged=sdcard:auto

 

timeout msg

mmc1: Timeout waiting for hardware interrupt.

sdhci: =========== REGISTER DUMP (mmc1)===========

sdhci: Sys addr: 0x00000000 | Version:  0x00000002

sdhci: Blk size: 0x00000000 | Blk cnt:  0x00000001

sdhci: Argument: 0x80000c08 | Trn mode: 0x00000000

sdhci: Present:  0xfffd8009 | Host ctl: 0x00000001

sdhci: Power:    0x0000000d | Blk gap:  0x00000000

sdhci: Wake-up:  0x00000000 | Clock:    0x000040ff

sdhci: Timeout:  0x00000000 | Int stat: 0x00000000

sdhci: Int enab: 0x007f0003 | Sig enab: 0x007f0003

sdhci: AC12 err: 0x00000000 | Slot int: 0x00000003

sdhci: Caps:     0x07eb0000 | Caps_1:   0x00000007

sdhci: Cmd:      0x0000341a | Max curr: 0x00ffffff

sdhci: Host ctl2: 0x00000000

sdhci: ===========================================

 

then i tried to read sd card from uboot

 

Hit any key to stop autoboot:  0

MX6Q U-Boot > mmc dev 3

mmc3 is current device

 

MX6Q U-Boot > mmcinfo

Device: FSL_USDHC

Manufacturer ID: 41

OEM: 3432

Name: SD8GB

Tran Speed: 25000000

Rd Block Len: 512

SD version 2.0

Clock: 50000000

High Capacity: Yes

Capacity: 7902068736 Bytes

Bus Width: 4-bit

Boot Partition for boot: No boot partition available

 

MX6Q U-Boot >

 

i dont know why i can't mount sd card on my system

 

Thanks.

Derek.

Outcomes