To be able to get persistent names for the sd/mmc devices. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- arch/arm/mach-omap/include/mach/omap_hsmmc.h | 1 + drivers/mci/omap_hsmmc.c | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap/include/mach/omap_hsmmc.h b/arch/arm/mach-omap/include/mach/omap_hsmmc.h index 2055ccc..19942df 100644 --- a/arch/arm/mach-omap/include/mach/omap_hsmmc.h +++ b/arch/arm/mach-omap/include/mach/omap_hsmmc.h @@ -21,5 +21,6 @@ /** omapmmc platform data structure */ struct omap_hsmmc_platform_data { unsigned f_max; /* host interface upper limit */ + char *devname; /* The mci device name, optional */ }; #endif /* __ASM_OMAP_HSMMC_H */ diff --git a/drivers/mci/omap_hsmmc.c b/drivers/mci/omap_hsmmc.c index bb976e1..a2cd3fe 100644 --- a/drivers/mci/omap_hsmmc.c +++ b/drivers/mci/omap_hsmmc.c @@ -611,10 +611,16 @@ static int omap_mmc_probe(struct device_d *dev) hsmmc->mci.f_min = 400000; pdata = (struct omap_hsmmc_platform_data *)dev->platform_data; - if (pdata && pdata->f_max) - hsmmc->mci.f_max = pdata->f_max; - else - hsmmc->mci.f_max = 52000000; + if (pdata) { + if (pdata->f_max) + hsmmc->mci.f_max = pdata->f_max; + else + hsmmc->mci.f_max = 52000000; + + if (pdata->devname) + hsmmc->mci.devname = pdata->devname; + } + dev->priv = hsmmc; dev->detect = omap_mmc_detect, -- 1.8.4.rc3 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox