From 7679b4f520e0dc5570d461cddc87583df8ee8696 Mon Sep 17 00:00:00 2001 From: chenxing Date: Wed, 19 Jun 2013 10:07:15 +0800 Subject: [PATCH] rk3188: efuse: use byte[22] bit[2] to ctrl leakage's effective --- arch/arm/plat-rk/efuse.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/plat-rk/efuse.c b/arch/arm/plat-rk/efuse.c index dcb829515d5e..b29a9a68443e 100644 --- a/arch/arm/plat-rk/efuse.c +++ b/arch/arm/plat-rk/efuse.c @@ -69,5 +69,14 @@ int rk_pll_flag(void) int rk_leakage_val(void) { - return (efuse_buf[22] >> 4) & 0x0f; + /* + * efuse_buf[22] + * bit[3]: + * 0:enable leakage level auto voltage scale + * 1:disalbe leakage level avs + */ + if ((efuse_buf[22] >> 2) & 0x1) + return 0; + else + return (efuse_buf[22] >> 4) & 0x0f; } -- 2.34.1