Commit c4241a58 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Kukjin Kim

ARM: EXYNOS: use PS_HOLD based poweroff for all supported SoCs

PS_HOLD based power off procedure is common for all Exynos SoCs,
so use it for every Exynos SoCs.
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Tested-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tested-by: default avatarTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene@kernel.org>
parent e6350c57
...@@ -681,7 +681,7 @@ static unsigned int const exynos5420_list_disable_pmu_reg[] = { ...@@ -681,7 +681,7 @@ static unsigned int const exynos5420_list_disable_pmu_reg[] = {
EXYNOS5420_CMU_RESET_FSYS_SYS_PWR_REG, EXYNOS5420_CMU_RESET_FSYS_SYS_PWR_REG,
}; };
static void exynos5_power_off(void) static void exynos_power_off(void)
{ {
unsigned int tmp; unsigned int tmp;
...@@ -872,8 +872,6 @@ static void exynos5420_pmu_init(void) ...@@ -872,8 +872,6 @@ static void exynos5420_pmu_init(void)
EXYNOS5420_ARM_INTR_SPREAD_USE_STANDBYWFI); EXYNOS5420_ARM_INTR_SPREAD_USE_STANDBYWFI);
pmu_raw_writel(0x1, EXYNOS5420_UP_SCHEDULER); pmu_raw_writel(0x1, EXYNOS5420_UP_SCHEDULER);
pm_power_off = exynos5_power_off;
pr_info("EXYNOS5420 PMU initialized\n"); pr_info("EXYNOS5420 PMU initialized\n");
} }
...@@ -984,6 +982,8 @@ static int exynos_pmu_probe(struct platform_device *pdev) ...@@ -984,6 +982,8 @@ static int exynos_pmu_probe(struct platform_device *pdev)
if (ret) if (ret)
dev_warn(dev, "can't register restart handler err=%d\n", ret); dev_warn(dev, "can't register restart handler err=%d\n", ret);
pm_power_off = exynos_power_off;
dev_dbg(dev, "Exynos PMU Driver probe done\n"); dev_dbg(dev, "Exynos PMU Driver probe done\n");
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment