Revert "(CR):soc:exynos-reboot:Add the last powerup reason back"
authorluodw1 <luodw1@motorola.com>
Fri, 12 Apr 2019 12:14:59 +0000 (20:14 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Mon, 10 Jun 2019 03:25:02 +0000 (11:25 +0800)
This reverts commit 0f151cacb31d8913e85a7a9a977893c5b96bb16a.

Change-Id: I5c6e689da8a51c94e71a591d263fc13295388129
Reviewed-on: https://gerrit.mot.com/1336273
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/soc/samsung/exynos-reboot.c

index 1e8fa93f2544fca1bbebfa3b45c924b6732db751..63052c559087c79e78f0ba0c87129683e86be199 100644 (file)
@@ -116,10 +116,7 @@ int soc_has_big(void)
                                        | RESET_DISABLE_WDT_PRESET_DBG  \
                                        | RESET_DISABLE_PRESET_DBG      \
                                        | RESET_DISABLE_L2RESET)
-#define LAST_POWERUP_REASON_REG                        (0x0854)  /*EXYNOS9610_POWER_INFORM9*/
-#define RESET_EXTRA_POST_PANIC_REASON  (BIT(4) | BIT(5))
-#define RESET_EXTRA_POST_PMICWDT_REASON        BIT(5)
-#define RESET_EXTRA_POST_WDT_REASON    BIT(4)
+
 static int in_panic = 0;
 static int panic_prep_restart(struct notifier_block *this,
                              unsigned long event, void *ptr)
@@ -292,8 +289,6 @@ static void exynos_reboot(enum reboot_mode mode, const char *cmd)
        u32 soc_id, revision;
        void __iomem *addr;
        void __iomem *restart_reason;
-       void __iomem *addr_extra;
-
        if (!exynos_pmu_base)
                return;
 #ifdef CONFIG_EXYNOS_ACPM
@@ -303,9 +298,6 @@ static void exynos_reboot(enum reboot_mode mode, const char *cmd)
 
        addr = exynos_pmu_base + EXYNOS_PMU_SYSIP_DAT0;
        restart_reason = exynos_pmu_base + EXYNOS_PMU_SYSIP_DAT3;
-       addr_extra = exynos_pmu_base + LAST_POWERUP_REASON_REG;
-       /*Clear the last power up reason first*/
-       __raw_writel(0, addr_extra);
 
        if (cmd) {
                if (!strcmp((char *)cmd, "charge")) {
@@ -352,13 +344,10 @@ static void exynos_reboot(enum reboot_mode mode, const char *cmd)
                        }
                } else if (!strncmp(cmd, "post-wdt", 8)) {
                        __raw_writel(0x77665508, restart_reason);
-                       __raw_writel(RESET_EXTRA_POST_WDT_REASON, addr_extra);
                } else if (!strncmp(cmd, "post-pmicwdt", 12)) {
                        __raw_writel(0x77665507, restart_reason);
-                       __raw_writel(RESET_EXTRA_POST_PMICWDT_REASON, addr_extra);
                } else if (!strncmp(cmd, "post-panic", 10)) {
                        __raw_writel(0x77665506, restart_reason);
-                       __raw_writel(RESET_EXTRA_POST_PANIC_REASON, addr_extra);
                } else if (!strncmp(cmd, "panic", 5)) {
                        __raw_writel(0x77665505, restart_reason);
                } else {