Exemplo n.º 1
0
/*
 * initial mmc card
 */
static __init void mmc_card_init(void)
{
	/*
	 * probe all mmc card
	 */
	mmc_card_probe();
}
Exemplo n.º 2
0
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;
}