Skip to content

Commit

Permalink
ARM: EXYNOS: use PS_HOLD based poweroff for all supported SoCs
Browse files Browse the repository at this point in the history
PS_HOLD based power off procedure is common for all Exynos SoCs,
so use it for every Exynos SoCs.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Tested-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
  • Loading branch information
Marek Szyprowski authored and Kukjin Kim committed Jun 5, 2015
1 parent e6350c5 commit c4241a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/arm/mach-exynos/pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ static unsigned int const exynos5420_list_disable_pmu_reg[] = {
EXYNOS5420_CMU_RESET_FSYS_SYS_PWR_REG,
};

static void exynos5_power_off(void)
static void exynos_power_off(void)
{
unsigned int tmp;

Expand Down Expand Up @@ -872,8 +872,6 @@ static void exynos5420_pmu_init(void)
EXYNOS5420_ARM_INTR_SPREAD_USE_STANDBYWFI);

pmu_raw_writel(0x1, EXYNOS5420_UP_SCHEDULER);

pm_power_off = exynos5_power_off;
pr_info("EXYNOS5420 PMU initialized\n");
}

Expand Down Expand Up @@ -984,6 +982,8 @@ static int exynos_pmu_probe(struct platform_device *pdev)
if (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");
return 0;
}
Expand Down

0 comments on commit c4241a5

Please sign in to comment.