AnsweredAssumed Answered

Wireless Hub on SD2 pin connector

Question asked by Giuseppe Ventura on Sep 25, 2012

Hi,

I have connected a SD slot for to insert a wireless module on pins SD2:

I set mx53_loco.c as follows:

-------------------------------------------------------------------------------

/* SD2 */

+    MX53_PAD_SD2_CLK__ESDHC2_CLK,

+    MX53_PAD_SD2_CMD__ESDHC2_CMD,

+    MX53_PAD_SD2_DATA0__ESDHC2_DAT0,

+    MX53_PAD_SD2_DATA1__ESDHC2_DAT1,

+    MX53_PAD_SD2_DATA2__ESDHC2_DAT2,

+    MX53_PAD_SD2_DATA3__ESDHC2_DAT3,

 

 

 

-static struct mxc_mmc_platform_data mmc3_data = {

+static struct mxc_mmc_platform_data mmc2_data = {

    .ocr_mask = MMC_VDD_27_28 | MMC_VDD_28_29 | MMC_VDD_29_30

        | MMC_VDD_31_32,

-    .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA

-        | MMC_CAP_DATA_DDR,

+    .caps = MMC_CAP_4_BIT_DATA,

    .min_clk = 400000,

-    .max_clk = 50000000,

-    .card_inserted_state = 0,

+    .max_clk = 1000000,

+    .card_inserted_state = 1,

    .status = sdhc_get_card_det_status,

    .wp_status = sdhc_write_protect,

    .clock_mmc = "esdhc_clk",

 

 

 

mxcsdhc1_device.resource[2].start = gpio_to_irq(SD1_CD);

    mxcsdhc1_device.resource[2].end = gpio_to_irq(SD1_CD);

 

-    mxcsdhc3_device.resource[2].start = gpio_to_irq(SD3_CD);

-    mxcsdhc3_device.resource[2].end = gpio_to_irq(SD3_CD);

+    mxcsdhc2_device.resource[2].start = 0;    // no SD irq

+    mxcsdhc2_device.resource[2].end = 0;

 

    mxc_cpu_common_init();

    mx53_loco_io_init();

 

 

 

 

mxc_register_device(&mxc_pwm2_device, NULL);

    mxc_register_device(&mxc_pwm1_backlight_device, &mxc_pwm_backlight_data);

    mxc_register_device(&mxcsdhc1_device, &mmc1_data);

-    mxc_register_device(&mxcsdhc3_device, &mmc3_data);

+    mxc_register_device(&mxcsdhc2_device, &mmc2_data);

    mxc_register_device(&mxc_ssi1_device, NULL);

    mxc_register_device(&mxc_ssi2_device, NULL);

    mxc_register_device(&mxc_alsa_spdif_device, &mxc_spdif_data);

 

-------------------------------------------------------------------------------------

With this changes i not view eth1 when i inserted for example an SD on my slot connected on SD2 pin.

Do you have any advice?


thanks for answers

 

Outcomes