Skip to contentSkip to conversation

Exynos: clock: add CLK_DIV_FSYS3 at set_mmc_clk

PATCH New Jaehoon Chung 2 participants 2 messages Dec 28, 2012 – Jan 11, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Exynos: clock: add CLK_DIV_FSYS3 at set_mmc_clk

Mobile storage is used the CLK_DIV_FSYS3 value.

---
 arch/arm/cpu/armv7/exynos/clock.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
arch/arm/cpu/armv7/exynos/clock.c +5 -0
index 973b84e..d2edb8c 100644
@@ -591,9 +591,14 @@ static void exynos4_set_mmc_clk(int dev_index, unsigned int div)
 	 * MMC0_PRE_RATIO [15:8], MMC1_PRE_RATIO [31:24]
 	 * CLK_DIV_FSYS2
 	 * MMC2_PRE_RATIO [15:8], MMC3_PRE_RATIO [31:24]
+	 * CLK_DIV_FSYS3
+	 * MMC4_PRE_RATIO [15:8]
 	 */
 	if (dev_index < 2) {
 		addr = (unsigned int)&clk->div_fsys1;
+	}  else if (dev_index == 4) {
+		addr = (unsigned int)&clk->div_fsys3;
+		dev_index -= 4;
 	} else {
 		addr = (unsigned int)&clk->div_fsys2;
 		dev_index -= 2;
Signature · 1 line
1.7.5.4