Skip to contentSkip to conversation

SDHCI clock source definition cleanup

PATCH In review Marek Szyprowski 2 participants 4 messages Aug 3, 2010 – Aug 5, 2010

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

PATCH 1/1 SDHCI clock source definition cleanup

Hello,

This short patch series performs a little cleanup in clock source definitions for S5PC100 and S5PV210 SoCs.

A complete list of patches:
[PATCH 1/2] ARM: S5PC100: cleanup hsmmc clock definitions [PATCH 2/2] ARM: S5PV210: cleanup hsmmc clock definitions

Best regards

Signature · 2 lines
Marek Szyprowski
Samsung Poland R&D Center
#1 lore raw

PATCH 1/2 ARM: S5PC100: cleanup hsmmc clock definitions

This patch performs minor clocks cleanup for S5PC100 SoC. HSMMC special clocks has been renamed back to sclk_mmc to match the common style of clock names. This clock has been also added to sdhci clock source list. The duplicate HCLK clock entry for sdhci-s3c has been disabled.

---
 arch/arm/mach-s5pc100/clock.c       |    6 +++---
 arch/arm/mach-s5pc100/setup-sdhci.c |    8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)
arch/arm/mach-s5pc100/clock.c +3 -3
index 3ca2c44..ba66f6a 100644
@@ -1072,7 +1072,7 @@ static struct clksrc_clk clksrcs[] = {
 		.reg_div = { .reg = S5P_CLK_DIV3, .shift = 24, .size = 4 },
 	}, {
 		.clk	= {
-			.name		= "mmc_bus",
+			.name		= "sclk_mmc",
 			.id		= 0,
 			.ctrlbit	= (1 << 12),
 			.enable		= s5pc100_sclk1_ctrl,
@@ -1083,7 +1083,7 @@ static struct clksrc_clk clksrcs[] = {
 		.reg_div = { .reg = S5P_CLK_DIV3, .shift = 0, .size = 4 },
 	}, {
 		.clk	= {
-			.name		= "mmc_bus",
+			.name		= "sclk_mmc",
 			.id		= 1,
 			.ctrlbit	= (1 << 13),
 			.enable		= s5pc100_sclk1_ctrl,
@@ -1094,7 +1094,7 @@ static struct clksrc_clk clksrcs[] = {
 		.reg_div = { .reg = S5P_CLK_DIV3, .shift = 4, .size = 4 },
 	}, {
 		.clk	= {
-			.name		= "mmc_bus",
+			.name		= "sclk_mmc",
 			.id		= 2,
 			.ctrlbit	= (1 << 14),
 			.enable		= s5pc100_sclk1_ctrl,
arch/arm/mach-s5pc100/setup-sdhci.c +4 -4
index ea7ff19..f16946e 100644
@@ -26,10 +26,10 @@
 /* clock sources for the mmc bus clock, order as for the ctrl2[5..4] */
 
 char *s5pc100_hsmmc_clksrcs[4] = {
-	[0] = "hsmmc",
-	[1] = "hsmmc",
-	/* [2] = "mmc_bus", not yet successfully used yet */
-	/* [3] = "48m", - note not successfully used yet */
+	[0] = "hsmmc",		/* HCLK */
+	/* [1] = "hsmmc",	- duplicate HCLK entry */
+	[2] = "sclk_mmc",	/* mmc_bus */
+	/* [3] = "48m",		- note not successfully used yet */
 };
 
 
Signature · 1 line
1.7.1.569.g6f426
#2 lore raw

PATCH 2/2 ARM: S5PV210: cleanup hsmmc clock definitions

In reply to Marek Szyprowski

This patch performs minor clocks cleanup for S5PV210 SoC. The duplicate HCLK clock entry for sdhci-s3c has been disabled and the index of a reserved entry has been fixed.

---
 arch/arm/mach-s5pv210/setup-sdhci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-s5pv210/setup-sdhci.c +2 -2
index 51815ec..c32e202 100644
@@ -26,9 +26,9 @@
 
 char *s5pv210_hsmmc_clksrcs[4] = {
 	[0] = "hsmmc",		/* HCLK */
-	[1] = "hsmmc",		/* HCLK */
+	/* [1] = "hsmmc",	- duplicate HCLK entry */
 	[2] = "sclk_mmc",	/* mmc_bus */
-	/*[4] = reserved */
+	/* [3] = NULL,		- reserved */
 };
 
 void s5pv210_setup_sdhci_cfg_card(struct platform_device *dev,
Signature · 1 line
1.7.1.569.g6f426
#3 lore raw
In reply to Marek Szyprowski
Quoted 3 lines · Marek Szyprowski

Hello,

Hi :-)

Quoted 11 lines

This short patch series performs a little cleanup in clock source definitions for S5PC100 and S5PV210 SoCs.

A complete list of patches:
[PATCH 1/2] ARM: S5PC100: cleanup hsmmc clock definitions [PATCH 2/2] ARM: S5PV210: cleanup hsmmc clock definitions

Best regards
--
Marek Szyprowski
Samsung Poland R&D Center

Ok..will apply.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.