Esempio n. 1
0
int main(int argc, char **argv)
{
    cm2_init();
    ti_twl6030_init();
    ctrlmod_init();
    cm2_enable_hsmmc1();
    sdmmc1_enable_power();

    mmchs_init();

    init_service();

    return 0;
}
Esempio n. 2
0
/*
 * \brief Prepare configuration of MMC host controller
 *
 */
static void mmchs_pre_configure(void) 
{
    printf("mmchs: pre_configure()\n");

    // need connection to TWL6030 for sdmmc1_enable_power()
    ti_twl6030_init();
    // for testing
    ti_twl6030_vmmc_pr();

    // TRM chapter 18: Control module? Is that CM2?
    sdmmc1_enable_power();

    // ==================================================
    // STEP 2: Software reset
    mmchs_do_sw_reset();
    mmchs_do_state_machine_reset();
    
    // ==================================================
    // Step 1b: Disable idle and stanbdy states
    mmchs_disable_standby();
    mmchs_enable_wakeup();
}