aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/rk808.h
diff options
context:
space:
mode:
authorChris Zhong <zyw@rock-chips.com>2015-02-28 18:09:06 +0800
committerLee Jones <lee.jones@linaro.org>2015-03-12 09:07:10 +0000
commite19f742885e87ab9582fdf5940f214419eb9275b (patch)
tree952baa33b403a944d7602bfdc060c3ef0f8fc190 /include/linux/mfd/rk808.h
parentmfd: ab8500-debugfs: Remove use of seq_printf return value (diff)
downloadlinux-dev-e19f742885e87ab9582fdf5940f214419eb9275b.tar.xz
linux-dev-e19f742885e87ab9582fdf5940f214419eb9275b.zip
mfd: rk808: Disable the under voltage detect
Rk808 has a under voltage detect function, when the voltage of buck is under 85% the target voltage, the buck output will reset. But if the power load is too heavy, this function maybe err, when current over 4.2A, although the voltage is normal, but RK808 mistakenly think it is under 85%, and reset the buck. So let's disable this function. Signed-off-by: Chris Zhong <zyw@rock-chips.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/rk808.h')
-rw-r--r--include/linux/mfd/rk808.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h
index fb09312d854b..441b6ee72691 100644
--- a/include/linux/mfd/rk808.h
+++ b/include/linux/mfd/rk808.h
@@ -156,6 +156,9 @@ enum rk808_reg {
#define BUCK2_RATE_MASK (3 << 3)
#define MASK_ALL 0xff
+#define BUCK_UV_ACT_MASK 0x0f
+#define BUCK_UV_ACT_DISABLE 0
+
#define SWITCH2_EN BIT(6)
#define SWITCH1_EN BIT(5)
#define DEV_OFF_RST BIT(3)