I have a problem configuring SDHC controller #3,
I want just a standard 4 bit 1.8 volt SDIO interface. I would like to use gpio 12,13, 17,18,19, and 20 pins which according to the TRM can be used for CLK,CMD, DO,D1,D2 and D3 for MMC #3 if programmed to mode 2. My pad set up looks like this:
OUTREG16(&pConfig->CONTROL_PADCONF_ETK_CLK, (INPUT_DISABLE | PULL_INACTIVE | MUX_MODE_2));
/*MMC3_CLK*/
OUTREG16(&pConfig->CONTROL_PADCONF_ETK_CTL, (INPUT_ENABLE | PULL_UP | MUX_MODE_2));
/*MMC3_CMD*/
OUTREG16(&pConfig->CONTROL_PADCONF_ETK_D3, (INPUT_ENABLE | PULL_UP | MUX_MODE_2));
/*MMC3_DAT3*/
OUTREG16(&pConfig->CONTROL_PADCONF_ETK_D4, (INPUT_ENABLE | PULL_UP | MUX_MODE_2));
/*MMC3_DAT0*/
OUTREG16(&pConfig->CONTROL_PADCONF_ETK_D5, (INPUT_ENABLE | PULL_UP | MUX_MODE_2));
/*MMC3_DAT1*/
OUTREG16(&pConfig->CONTROL_PADCONF_ETK_D6, (INPUT_ENABLE | PULL_UP | MUX_MODE_2));
/*MMC3_DAT2*/
My F and I clocks are enabled and I can address the controllers registers ok. The problem is when I probe with scope I can only get the MMC clocks. The data and cmd lines are solid 1.8v. What is very strange is if I reprogram the CMD pad to be INPUT_DISABLE (i.e. output) I can then see CMD activity synced with clock. but programming D0-3 to outputs does nothing. No matter what I try data lines are never driven.
I know this is not the correct configuration as my SDCH #1 works just fine in 4 bit mode and its pad configuration is as described above (with the exception of being in mode 0).
What is going on?