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 1Tisd1-00054v-Lu for barebox@lists.infradead.org; Wed, 12 Dec 2012 20:10:05 +0000 From: Sascha Hauer Date: Wed, 12 Dec 2012 21:09:50 +0100 Message-Id: <1355342991-549-10-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1355342991-549-1-git-send-email-s.hauer@pengutronix.de> References: <1355342991-549-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 09/10] ARM i.MX31: Add mmc register convenience functions To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/include/mach/devices-imx31.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-imx/include/mach/devices-imx31.h b/arch/arm/mach-imx/include/mach/devices-imx31.h index fe71930..5a24100 100644 --- a/arch/arm/mach-imx/include/mach/devices-imx31.h +++ b/arch/arm/mach-imx/include/mach/devices-imx31.h @@ -51,3 +51,13 @@ static inline struct device_d *imx31_add_fb(struct imx_ipu_fb_platform_data *pda { return imx_add_ipufb((void *)MX31_IPU_CTRL_BASE_ADDR, pdata); } + +static inline struct device_d *imx31_add_mmc0(void *pdata) +{ + return imx_add_mmc((void *)MX31_SDHC1_BASE_ADDR, 0, pdata); +} + +static inline struct device_d *imx31_add_mmc1(void *pdata) +{ + return imx_add_mmc((void *)MX31_SDHC2_BASE_ADDR, 1, pdata); +} -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox