From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Te9NX-0008PK-LD for barebox@lists.infradead.org; Thu, 29 Nov 2012 19:02:38 +0000 From: Sascha Hauer Date: Thu, 29 Nov 2012 20:02:27 +0100 Message-Id: <1354215748-25394-4-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1354215748-25394-1-git-send-email-s.hauer@pengutronix.de> References: <1354215748-25394-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 4/5] mci i.MX esdhc: Allow to specify devicename from platformdata To: barebox@lists.infradead.org For boards which need to have persistent names for the device file. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/include/mach/esdhc.h | 1 + drivers/mci/imx-esdhc.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/include/mach/esdhc.h b/arch/arm/mach-imx/include/mach/esdhc.h index b4c1aa9..06863c8 100644 --- a/arch/arm/mach-imx/include/mach/esdhc.h +++ b/arch/arm/mach-imx/include/mach/esdhc.h @@ -41,5 +41,6 @@ struct esdhc_platform_data { enum wp_types wp_type; enum cd_types cd_type; unsigned caps; + char *devname; }; #endif /* __ASM_ARCH_IMX_ESDHC_H */ diff --git a/drivers/mci/imx-esdhc.c b/drivers/mci/imx-esdhc.c index dccffc6..eced162 100644 --- a/drivers/mci/imx-esdhc.c +++ b/drivers/mci/imx-esdhc.c @@ -552,6 +552,9 @@ static int fsl_esdhc_probe(struct device_d *dev) else mci->host_caps = MMC_MODE_4BIT; + if (pdata && pdata->devname) + mci->devname = pdata->devname; + if (caps & ESDHC_HOSTCAPBLT_HSS) mci->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS; -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox