[PATCH v1 3/5] ARM: imx28evk: add mmc dt support
From: s.hauer@pengutronix.de (Sascha Hauer)
Date: 2012-03-13 16:52:26
Also in:
linux-devicetree, linux-mmc, lkml
On Tue, Mar 13, 2012 at 09:39:30AM -0500, Rob Herring wrote:
On 03/13/2012 03:47 AM, Dong Aisheng wrote:quoted
From: Dong Aisheng <redacted> Signed-off-by: Dong Aisheng <redacted> --- arch/arm/boot/dts/imx28-evk.dts | 14 ++++++++++++++ arch/arm/boot/dts/imx28.dtsi | 33 +++++++++++++++++++++++++++++++++ arch/arm/mach-mxs/imx28-dt.c | 2 ++ 3 files changed, 49 insertions(+), 0 deletions(-)snipquoted
diff --git a/arch/arm/mach-mxs/imx28-dt.c b/arch/arm/mach-mxs/imx28-dt.c index 78d1129..429b88e 100644 --- a/arch/arm/mach-mxs/imx28-dt.c +++ b/arch/arm/mach-mxs/imx28-dt.c@@ -23,6 +23,8 @@ static const struct of_dev_auxdata imx28_auxdata_lookup[] __initconst = { OF_DEV_AUXDATA("arm,pl011", MX28_DUART_BASE_ADDR, "duart", NULL), OF_DEV_AUXDATA("fsl,imx28-fec", MX28_ENET_MAC0_BASE_ADDR, "imx28-fec.0", NULL), OF_DEV_AUXDATA("fsl,imx28-fec", MX28_ENET_MAC1_BASE_ADDR, "imx28-fec.1", NULL), + OF_DEV_AUXDATA("fsl,imx28-mmc", MX28_SSP0_BASE_ADDR, "mxs-mmc.0", NULL), + OF_DEV_AUXDATA("fsl,imx28-mmc", MX28_SSP1_BASE_ADDR, "mxs-mmc.1", NULL),Why is this needed?
These are needed for the drivers which have still the mxs-mmc.* names to find their clocks. Alternatively we could also add the appropriate clocks to the clock file. Don't know if that's better though. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |