示例#1
0
文件: mmc.c 项目: philippe-nuaa/xboot
/*
 * initial mmc card
 */
static __init void mmc_card_init(void)
{
	/*
	 * probe all mmc card
	 */
	mmc_card_probe();
}
示例#2
0
文件: cmd_probe.c 项目: qioixiy/xboot
static int probe(int argc, char ** argv)
{
    s32_t i;

    if(argc < 2)
    {
        usage();
        return -1;
    }

    for(i=1; i<argc; i++)
    {
        if( !strcmp((const char *)argv[i], "nor"))
        {

        }
        else if( !strcmp((const char *)argv[i], "nand"))
        {
            nand_flash_probe();
            list_nand_flash();
        }
        else if( !strcmp((const char *)argv[i], "mmc"))
        {
            mmc_card_probe();
            list_mmc_card();
        }
        else
        {
            printk("do not probe device with the type of '%s'\r\n", argv[i]);
        }
    }

    return 0;
}