projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e64a318
)
rk3188: efuse: use byte[22] bit[2] to ctrl leakage's effective
author
chenxing
<chenxing@rock-chips.com>
Wed, 19 Jun 2013 02:07:15 +0000
(10:07 +0800)
committer
chenxing
<chenxing@rock-chips.com>
Wed, 19 Jun 2013 02:07:15 +0000
(10:07 +0800)
arch/arm/plat-rk/efuse.c
patch
|
blob
|
history
diff --git
a/arch/arm/plat-rk/efuse.c
b/arch/arm/plat-rk/efuse.c
index dcb829515d5ef6fa0346c5c97b62a33854521e51..b29a9a68443e8bb5740cc4cd8e9fc2a3d09c3adb 100644
(file)
--- 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;
}