]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm/mxs: Add support for SSP/MMC ports 2 & 3
authorLothar Waßmann <LW@KARO-electronics.de>
Tue, 6 Dec 2011 13:41:28 +0000 (14:41 +0100)
committerShawn Guo <shawn.guo@linaro.org>
Thu, 26 Jan 2012 11:13:25 +0000 (19:13 +0800)
i.MX28 has four SSP/MMC units, only two of which are currently
usable.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-mxs/clock-mx28.c
arch/arm/mach-mxs/devices/platform-mxs-mmc.c

index 5d68e415222026c327dd1cd47d285d74c673fcc9..f71d01282dcd6d0e7f18f179e38cf6841f19270b 100644 (file)
@@ -654,6 +654,8 @@ static struct clk_lookup lookups[] = {
        _REGISTER_CLOCK("mxs-dma-apbx", NULL, xbus_clk)
        _REGISTER_CLOCK("mxs-mmc.0", NULL, ssp0_clk)
        _REGISTER_CLOCK("mxs-mmc.1", NULL, ssp1_clk)
+       _REGISTER_CLOCK("mxs-mmc.2", NULL, ssp2_clk)
+       _REGISTER_CLOCK("mxs-mmc.3", NULL, ssp3_clk)
        _REGISTER_CLOCK("flexcan.0", NULL, can0_clk)
        _REGISTER_CLOCK("flexcan.1", NULL, can1_clk)
        _REGISTER_CLOCK(NULL, "usb0", usb0_clk)
@@ -803,6 +805,8 @@ int __init mx28_clocks_init(void)
         */
        clk_set_parent(&ssp0_clk, &ref_io0_clk);
        clk_set_parent(&ssp1_clk, &ref_io0_clk);
+       clk_set_parent(&ssp2_clk, &ref_io1_clk);
+       clk_set_parent(&ssp3_clk, &ref_io1_clk);
 
        clk_prepare_enable(&cpu_clk);
        clk_prepare_enable(&hbus_clk);
index 382dacbeca2107f5ef5d553b39566f1493dc0477..bef9d923f54e89e9288366ee2f54fa85c688d7d3 100644 (file)
@@ -41,6 +41,8 @@ const struct mxs_mxs_mmc_data mx23_mxs_mmc_data[] __initconst = {
 const struct mxs_mxs_mmc_data mx28_mxs_mmc_data[] __initconst = {
        mxs_mxs_mmc_data_entry(MX28, 0, 0),
        mxs_mxs_mmc_data_entry(MX28, 1, 1),
+       mxs_mxs_mmc_data_entry(MX28, 2, 2),
+       mxs_mxs_mmc_data_entry(MX28, 3, 3),
 };
 #endif