From ead154e242e95c736eb1262aada7cf3220de103c Mon Sep 17 00:00:00 2001 From: chenxing Date: Thu, 9 May 2013 14:37:27 +0800 Subject: [PATCH] rk30xx/rk3168/rk3188: dvfs: nandc delayline break lock status to make sure every time relock --- arch/arm/mach-rk30/dvfs-rk3066b.c | 2 ++ arch/arm/mach-rk30/dvfs.c | 2 ++ arch/arm/mach-rk3188/dvfs.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/arch/arm/mach-rk30/dvfs-rk3066b.c b/arch/arm/mach-rk30/dvfs-rk3066b.c index b188f2330437..796745370425 100755 --- a/arch/arm/mach-rk30/dvfs-rk3066b.c +++ b/arch/arm/mach-rk30/dvfs-rk3066b.c @@ -1150,6 +1150,8 @@ static u8 rk30_get_avs_val(void) nandc_writel(nanc_save_reg[0] | 0x1 << 14, 0); nandc_writel(0x5, 0x130); + /* Just break lock status */ + nandc_writel(0x1, 0x158); nandc_writel(3, 0x158); nandc_writel(1, 0x134); diff --git a/arch/arm/mach-rk30/dvfs.c b/arch/arm/mach-rk30/dvfs.c index e524ac3e2f07..2398ba5fa040 100755 --- a/arch/arm/mach-rk30/dvfs.c +++ b/arch/arm/mach-rk30/dvfs.c @@ -637,6 +637,8 @@ static u8 rk30_get_avs_val(void) nandc_writel(nanc_save_reg[0] | 0x1 << 14, 0); nandc_writel(0x5, 0x130); + /* Just break lock status */ + nandc_writel(0x1, 0x158); #ifdef CONFIG_ARCH_RK3066B nandc_writel(3, 0x158); #else diff --git a/arch/arm/mach-rk3188/dvfs.c b/arch/arm/mach-rk3188/dvfs.c index d88b47a68410..6f409c752497 100755 --- a/arch/arm/mach-rk3188/dvfs.c +++ b/arch/arm/mach-rk3188/dvfs.c @@ -754,6 +754,8 @@ static u8 rk30_get_avs_val(void) nandc_writel(nanc_save_reg[0] | 0x1 << 14, 0); nandc_writel(0x5, 0x130); + /* Just break lock status */ + nandc_writel(0x1, 0x158); nandc_writel(0x3, 0x158); nandc_writel(0x21, 0x134); -- 2.34.1