MT6517强制改小内存

来自个人维基
跳转至: 导航搜索

mediatek/platform/mt6577/preloader/src/drivers/mt6577_emi.c

int get_dram_rank_nr (void)
{
    int index;
    int emi_cona;
    
    index = mt6577_get_mdl_number ();

    if (index < 0 || index >=  num_of_emi_records)
    {
        return -1;
    }

    emi_cona = emi_settings[index].EMI_CONA_VAL;

    return 1;//(emi_cona & 0x20000) ? 2 : 1; //如此则可强制1G内存仅使用512M
}