exynos5420-pmu.c (f26e8817b235d8764363bffcc9cbfc61867371f2) exynos5420-pmu.c (ee55ae6194a5439bde3a3b8ee0abda63c610e740)
1/*
2 * Copyright (c) 2011-2015 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com/
4 *
5 * EXYNOS5420 - CPU PMU (Power Management Unit) support
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 216 unchanged lines hidden (view full) ---

225 */
226 for (i = 0; i < ARRAY_SIZE(exynos5420_list_disable_pmu_reg); i++)
227 pmu_raw_writel(0, exynos5420_list_disable_pmu_reg[i]);
228
229 /* Enable USE_STANDBY_WFI for all CORE */
230 pmu_raw_writel(EXYNOS5420_USE_STANDBY_WFI_ALL, S5P_CENTRAL_SEQ_OPTION);
231
232 value = pmu_raw_readl(EXYNOS_L2_OPTION(0));
1/*
2 * Copyright (c) 2011-2015 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com/
4 *
5 * EXYNOS5420 - CPU PMU (Power Management Unit) support
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 216 unchanged lines hidden (view full) ---

225 */
226 for (i = 0; i < ARRAY_SIZE(exynos5420_list_disable_pmu_reg); i++)
227 pmu_raw_writel(0, exynos5420_list_disable_pmu_reg[i]);
228
229 /* Enable USE_STANDBY_WFI for all CORE */
230 pmu_raw_writel(EXYNOS5420_USE_STANDBY_WFI_ALL, S5P_CENTRAL_SEQ_OPTION);
231
232 value = pmu_raw_readl(EXYNOS_L2_OPTION(0));
233 value &= ~EXYNOS5_USE_RETENTION;
233 value &= ~EXYNOS_L2_USE_RETENTION;
234 pmu_raw_writel(value, EXYNOS_L2_OPTION(0));
235
236 value = pmu_raw_readl(EXYNOS_L2_OPTION(1));
234 pmu_raw_writel(value, EXYNOS_L2_OPTION(0));
235
236 value = pmu_raw_readl(EXYNOS_L2_OPTION(1));
237 value &= ~EXYNOS5_USE_RETENTION;
237 value &= ~EXYNOS_L2_USE_RETENTION;
238 pmu_raw_writel(value, EXYNOS_L2_OPTION(1));
239
240 /*
241 * If L2_COMMON is turned off, clocks related to ATB async
242 * bridge are gated. Thus, when ISP power is gated, LPI
243 * may get stuck.
244 */
245 value = pmu_raw_readl(EXYNOS5420_LPI_MASK);

--- 35 unchanged lines hidden ---
238 pmu_raw_writel(value, EXYNOS_L2_OPTION(1));
239
240 /*
241 * If L2_COMMON is turned off, clocks related to ATB async
242 * bridge are gated. Thus, when ISP power is gated, LPI
243 * may get stuck.
244 */
245 value = pmu_raw_readl(EXYNOS5420_LPI_MASK);

--- 35 unchanged lines hidden ---