public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] exynos: clock: fixed that cfg is set to wrong value.
@ 2014-02-06  5:20 Jaehoon Chung
  2014-02-10  7:16 ` Minkyu Kang
  0 siblings, 1 reply; 2+ messages in thread
From: Jaehoon Chung @ 2014-02-06  5:20 UTC (permalink / raw)
  To: u-boot

From: Inha Song <ideal.song@samsung.com>

This patch fixed that cfg value is set to wrong value.
Because it didn't read the related register.
(Based on Inha's patch : "arm:exynos:add missing readl")

Signed-off-by: Inha Song <ideal.song@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 arch/arm/cpu/armv7/exynos/clock.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/cpu/armv7/exynos/clock.c b/arch/arm/cpu/armv7/exynos/clock.c
index 6807ff3..61cd8cf 100644
--- a/arch/arm/cpu/armv7/exynos/clock.c
+++ b/arch/arm/cpu/armv7/exynos/clock.c
@@ -1114,6 +1114,7 @@ void exynos4_set_lcd_clk(void)
 	 * MIPI0_PRE_RATIO	[23:20]
 	 * set fimd ratio
 	 */
+	cfg = readl(&clk->div_lcd0);
 	cfg &= ~(0xf);
 	cfg |= 0x1;
 	writel(cfg, &clk->div_lcd0);
@@ -1176,6 +1177,7 @@ void exynos5_set_lcd_clk(void)
 	 * MIPI0_PRE_RATIO	[23:20]
 	 * set fimd ratio
 	 */
+	cfg = readl(&clk->div_disp1_0);
 	cfg &= ~(0xf);
 	cfg |= 0x0;
 	writel(cfg, &clk->div_disp1_0);
@@ -1236,6 +1238,7 @@ void exynos4_set_mipi_clk(void)
 	 * MIPI0_PRE_RATIO	[23:20]
 	 * set mipi ratio
 	 */
+	cfg = readl(&clk->div_lcd0);
 	cfg &= ~(0xf << 16);
 	cfg |= (0x1 << 16);
 	writel(cfg, &clk->div_lcd0);
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH 1/2] exynos: clock: fixed that cfg is set to wrong value.
  2014-02-06  5:20 [U-Boot] [PATCH 1/2] exynos: clock: fixed that cfg is set to wrong value Jaehoon Chung
@ 2014-02-10  7:16 ` Minkyu Kang
  0 siblings, 0 replies; 2+ messages in thread
From: Minkyu Kang @ 2014-02-10  7:16 UTC (permalink / raw)
  To: u-boot

On 06/02/14 14:20, Jaehoon Chung wrote:
> From: Inha Song <ideal.song@samsung.com>
> 
> This patch fixed that cfg value is set to wrong value.
> Because it didn't read the related register.
> (Based on Inha's patch : "arm:exynos:add missing readl")
> 
> Signed-off-by: Inha Song <ideal.song@samsung.com>
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> ---
>  arch/arm/cpu/armv7/exynos/clock.c |    3 +++
>  1 file changed, 3 insertions(+)
> 

applied to u-boot-samsung.

Thanks,
Minkyu Kang.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-10  7:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-06  5:20 [U-Boot] [PATCH 1/2] exynos: clock: fixed that cfg is set to wrong value Jaehoon Chung
2014-02-10  7:16 ` Minkyu Kang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox