diff options
author | Lothar Waßmann <LW@KARO-electronics.de> | 2011-12-06 08:41:28 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-01-26 06:13:25 -0500 |
commit | bfc0b9c8a9d546eb53a3491c893fad72d96540cb (patch) | |
tree | a3ab130867970f8e144121b8a2864bf0a8fc0bd5 /arch/arm/mach-mxs | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) |
arm/mxs: Add support for SSP/MMC ports 2 & 3
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>
Diffstat (limited to 'arch/arm/mach-mxs')
-rw-r--r-- | arch/arm/mach-mxs/clock-mx28.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-mxs/devices/platform-mxs-mmc.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/clock-mx28.c b/arch/arm/mach-mxs/clock-mx28.c index 5d68e4152220..f71d01282dcd 100644 --- a/arch/arm/mach-mxs/clock-mx28.c +++ b/arch/arm/mach-mxs/clock-mx28.c | |||
@@ -654,6 +654,8 @@ static struct clk_lookup lookups[] = { | |||
654 | _REGISTER_CLOCK("mxs-dma-apbx", NULL, xbus_clk) | 654 | _REGISTER_CLOCK("mxs-dma-apbx", NULL, xbus_clk) |
655 | _REGISTER_CLOCK("mxs-mmc.0", NULL, ssp0_clk) | 655 | _REGISTER_CLOCK("mxs-mmc.0", NULL, ssp0_clk) |
656 | _REGISTER_CLOCK("mxs-mmc.1", NULL, ssp1_clk) | 656 | _REGISTER_CLOCK("mxs-mmc.1", NULL, ssp1_clk) |
657 | _REGISTER_CLOCK("mxs-mmc.2", NULL, ssp2_clk) | ||
658 | _REGISTER_CLOCK("mxs-mmc.3", NULL, ssp3_clk) | ||
657 | _REGISTER_CLOCK("flexcan.0", NULL, can0_clk) | 659 | _REGISTER_CLOCK("flexcan.0", NULL, can0_clk) |
658 | _REGISTER_CLOCK("flexcan.1", NULL, can1_clk) | 660 | _REGISTER_CLOCK("flexcan.1", NULL, can1_clk) |
659 | _REGISTER_CLOCK(NULL, "usb0", usb0_clk) | 661 | _REGISTER_CLOCK(NULL, "usb0", usb0_clk) |
@@ -803,6 +805,8 @@ int __init mx28_clocks_init(void) | |||
803 | */ | 805 | */ |
804 | clk_set_parent(&ssp0_clk, &ref_io0_clk); | 806 | clk_set_parent(&ssp0_clk, &ref_io0_clk); |
805 | clk_set_parent(&ssp1_clk, &ref_io0_clk); | 807 | clk_set_parent(&ssp1_clk, &ref_io0_clk); |
808 | clk_set_parent(&ssp2_clk, &ref_io1_clk); | ||
809 | clk_set_parent(&ssp3_clk, &ref_io1_clk); | ||
806 | 810 | ||
807 | clk_prepare_enable(&cpu_clk); | 811 | clk_prepare_enable(&cpu_clk); |
808 | clk_prepare_enable(&hbus_clk); | 812 | clk_prepare_enable(&hbus_clk); |
diff --git a/arch/arm/mach-mxs/devices/platform-mxs-mmc.c b/arch/arm/mach-mxs/devices/platform-mxs-mmc.c index 382dacbeca21..bef9d923f54e 100644 --- a/arch/arm/mach-mxs/devices/platform-mxs-mmc.c +++ b/arch/arm/mach-mxs/devices/platform-mxs-mmc.c | |||
@@ -41,6 +41,8 @@ const struct mxs_mxs_mmc_data mx23_mxs_mmc_data[] __initconst = { | |||
41 | const struct mxs_mxs_mmc_data mx28_mxs_mmc_data[] __initconst = { | 41 | const struct mxs_mxs_mmc_data mx28_mxs_mmc_data[] __initconst = { |
42 | mxs_mxs_mmc_data_entry(MX28, 0, 0), | 42 | mxs_mxs_mmc_data_entry(MX28, 0, 0), |
43 | mxs_mxs_mmc_data_entry(MX28, 1, 1), | 43 | mxs_mxs_mmc_data_entry(MX28, 1, 1), |
44 | mxs_mxs_mmc_data_entry(MX28, 2, 2), | ||
45 | mxs_mxs_mmc_data_entry(MX28, 3, 3), | ||
44 | }; | 46 | }; |
45 | #endif | 47 | #endif |
46 | 48 | ||