diff options
author | John Crispin <john@phrozen.org> | 2017-02-16 09:53:03 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-02-16 09:53:30 +0100 |
commit | 53f5d59fa17049d94a3992d1067ded1fa90f61f8 (patch) | |
tree | 5596104b74bfe2a96f1abdb2303314a40c74322b /target/linux/mediatek/patches-4.4/0029-soc-mediatek-PMIC-wrap-clear-the-STAUPD_TRIG-bit-of-.patch | |
parent | f885edef5a3bfcddcfe85732ee65c1d475c4a8f6 (diff) | |
download | upstream-53f5d59fa17049d94a3992d1067ded1fa90f61f8.tar.gz upstream-53f5d59fa17049d94a3992d1067ded1fa90f61f8.tar.bz2 upstream-53f5d59fa17049d94a3992d1067ded1fa90f61f8.zip |
mediatek: bump to v4.9
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/patches-4.4/0029-soc-mediatek-PMIC-wrap-clear-the-STAUPD_TRIG-bit-of-.patch')
-rw-r--r-- | target/linux/mediatek/patches-4.4/0029-soc-mediatek-PMIC-wrap-clear-the-STAUPD_TRIG-bit-of-.patch | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/target/linux/mediatek/patches-4.4/0029-soc-mediatek-PMIC-wrap-clear-the-STAUPD_TRIG-bit-of-.patch b/target/linux/mediatek/patches-4.4/0029-soc-mediatek-PMIC-wrap-clear-the-STAUPD_TRIG-bit-of-.patch deleted file mode 100644 index eb936a789b..0000000000 --- a/target/linux/mediatek/patches-4.4/0029-soc-mediatek-PMIC-wrap-clear-the-STAUPD_TRIG-bit-of-.patch +++ /dev/null @@ -1,58 +0,0 @@ -From b92861fbc79b3a7a9bc1c51e2dbfa2c191cc27ea Mon Sep 17 00:00:00 2001 -From: Henry Chen <henryc.chen@mediatek.com> -Date: Thu, 21 Jan 2016 19:04:00 +0800 -Subject: [PATCH 029/102] soc: mediatek: PMIC wrap: clear the STAUPD_TRIG bit - of WDT_SRC_EN - -Since STAUPD interrupts aren't handled on mt8173, disable watchdog timeout -monitor of STAUPD to avoid WDT_INT triggered by STAUPD. - -Signed-off-by: Henry Chen <henryc.chen@mediatek.com> -Reviewed-by: Daniel Kurtz <djkurtz@chromium.org> -Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> ---- - drivers/soc/mediatek/mtk-pmic-wrap.c | 19 +++++++++++++++++-- - 1 file changed, 17 insertions(+), 2 deletions(-) - ---- a/drivers/soc/mediatek/mtk-pmic-wrap.c -+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c -@@ -60,6 +60,15 @@ - #define PWRAP_MAN_CMD_OP_OUTD (0x9 << 8) - #define PWRAP_MAN_CMD_OP_OUTQ (0xa << 8) - -+/* macro for Watch Dog Timer Source */ -+#define PWRAP_WDT_SRC_EN_STAUPD_TRIG (1 << 25) -+#define PWRAP_WDT_SRC_EN_HARB_STAUPD_DLE (1 << 20) -+#define PWRAP_WDT_SRC_EN_HARB_STAUPD_ALE (1 << 6) -+#define PWRAP_WDT_SRC_MASK_ALL 0xffffffff -+#define PWRAP_WDT_SRC_MASK_NO_STAUPD ~(PWRAP_WDT_SRC_EN_STAUPD_TRIG | \ -+ PWRAP_WDT_SRC_EN_HARB_STAUPD_DLE | \ -+ PWRAP_WDT_SRC_EN_HARB_STAUPD_ALE) -+ - /* macro for slave device wrapper registers */ - #define PWRAP_DEW_BASE 0xbc00 - #define PWRAP_DEW_EVENT_OUT_EN (PWRAP_DEW_BASE + 0x0) -@@ -822,7 +831,7 @@ MODULE_DEVICE_TABLE(of, of_pwrap_match_t - - static int pwrap_probe(struct platform_device *pdev) - { -- int ret, irq; -+ int ret, irq, wdt_src; - struct pmic_wrapper *wrp; - struct device_node *np = pdev->dev.of_node; - const struct of_device_id *of_id = -@@ -912,7 +921,13 @@ static int pwrap_probe(struct platform_d - - /* Initialize watchdog, may not be done by the bootloader */ - pwrap_writel(wrp, 0xf, PWRAP_WDT_UNIT); -- pwrap_writel(wrp, 0xffffffff, PWRAP_WDT_SRC_EN); -+ /* -+ * Since STAUPD was not used on mt8173 platform, -+ * so STAUPD of WDT_SRC which should be turned off -+ */ -+ wdt_src = pwrap_is_mt8173(wrp) ? -+ PWRAP_WDT_SRC_MASK_NO_STAUPD : PWRAP_WDT_SRC_MASK_ALL; -+ pwrap_writel(wrp, wdt_src, PWRAP_WDT_SRC_EN); - pwrap_writel(wrp, 0x1, PWRAP_TIMER_EN); - pwrap_writel(wrp, ~((1 << 31) | (1 << 1)), PWRAP_INT_EN); - |