This patch clears RAMDUMP SCRATCH register in case of device power off.
As soon as the devcie power is down and then the device power is up with pin reset,
the device can enter fastboot mode when power up.
To avoid this situation we should clear RAMDUMP SCRATCH register.
Change-Id: I01c05fa6c67bc8ea1c7dcd11a4e2777f279c87af
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
#include <linux/reboot.h>
#include <linux/soc/samsung/exynos-soc.h>
#include <linux/debug-snapshot.h>
+#include "../../../lib/debug-snapshot-local.h"
#ifdef CONFIG_EXYNOS_ACPM
#include <soc/samsung/acpm_ipc_ctrl.h>
#ifdef CONFIG_EXYNOS_ACPM
exynos_acpm_reboot();
#endif
+ dbg_snapshot_scratch_reg(DSS_SIGN_RESET);
pr_emerg("%s: Set PS_HOLD Low.\n", __func__);
writel(readl(exynos_pmu_base + PS_HOLD_CONTROL) & 0xFFFFFEFF,
exynos_pmu_base + PS_HOLD_CONTROL);
#include <linux/clk-provider.h>
#endif
-extern void (*arm_pm_restart)(char str, const char *cmd);
-
extern void dbg_snapshot_init_log_idx(void);
extern void dbg_snapshot_init_utils(void);
extern void dbg_snapshot_init_helper(void);