From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay01.ispgateway.de ([80.67.31.24]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1YHh-000450-PT for barebox@lists.infradead.org; Fri, 10 Jan 2014 09:21:46 +0000 From: Markus Niebel Date: Fri, 10 Jan 2014 10:29:50 +0100 Message-Id: <1389346191-15851-3-git-send-email-list-09_barebox@tqsc.de> In-Reply-To: <1389346191-15851-1-git-send-email-list-09_barebox@tqsc.de> References: <1389346191-15851-1-git-send-email-list-09_barebox@tqsc.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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/3] mci: imx-esdhc: add DSR support To: barebox@lists.infradead.org Cc: Markus Niebel From: Markus Niebel having DSR support in mci-core we need a way to forward the DSR value to the driver. Add it to platform data for imx-esdhc TODO: implement the same for other host controller drivers Signed-off-by: Markus Niebel --- arch/arm/mach-imx/include/mach/esdhc.h | 2 ++ drivers/mci/imx-esdhc.c | 2 ++ 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 add1691..fb7380a 100644 --- a/arch/arm/mach-imx/include/mach/esdhc.h +++ b/arch/arm/mach-imx/include/mach/esdhc.h @@ -42,5 +42,7 @@ struct esdhc_platform_data { enum cd_types cd_type; unsigned caps; char *devname; + unsigned dsr_val; + int use_dsr; }; #endif /* __ASM_ARCH_IMX_ESDHC_H */ diff --git a/drivers/mci/imx-esdhc.c b/drivers/mci/imx-esdhc.c index 7664e7b..deb44b0 100644 --- a/drivers/mci/imx-esdhc.c +++ b/drivers/mci/imx-esdhc.c @@ -582,6 +582,8 @@ static int fsl_esdhc_probe(struct device_d *dev) if (host->mci.f_min < 200000) host->mci.f_min = 200000; host->mci.f_max = rate; + host->mci.use_dsr = pdata->use_dsr; + host->mci.dsr_val = pdata->dsr_val; mci_of_parse(&host->mci); -- 1.7.9.5 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox