exynos.c (191a66353b22fad8ac89404ab4c929cbe7b0afb2) | exynos.c (6f024978e74bda616b27183adee029b65eb27032) |
---|---|
1/* 2 * SAMSUNG EXYNOS Flattened Device Tree enabled machine 3 * 4 * Copyright (c) 2010-2014 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com 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 --- 153 unchanged lines hidden (view full) --- 162 163 /* detect cpu id and rev. */ 164 s5p_init_cpu(S5P_VA_CHIPID); 165 166 exynos_map_io(); 167} 168 169/* | 1/* 2 * SAMSUNG EXYNOS Flattened Device Tree enabled machine 3 * 4 * Copyright (c) 2010-2014 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com 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 --- 153 unchanged lines hidden (view full) --- 162 163 /* detect cpu id and rev. */ 164 s5p_init_cpu(S5P_VA_CHIPID); 165 166 exynos_map_io(); 167} 168 169/* |
170 * Set or clear the USE_DELAYED_RESET_ASSERTION option. Used by smp code 171 * and suspend. 172 * 173 * This is necessary only on Exynos4 SoCs. When system is running 174 * USE_DELAYED_RESET_ASSERTION should be set so the ARM CLK clock down 175 * feature could properly detect global idle state when secondary CPU is 176 * powered down. 177 * 178 * However this should not be set when such system is going into suspend. 179 */ 180void exynos_set_delayed_reset_assertion(bool enable) 181{ 182 if (soc_is_exynos4()) { 183 unsigned int tmp, core_id; 184 185 for (core_id = 0; core_id < num_possible_cpus(); core_id++) { 186 tmp = pmu_raw_readl(EXYNOS_ARM_CORE_OPTION(core_id)); 187 if (enable) 188 tmp |= S5P_USE_DELAYED_RESET_ASSERTION; 189 else 190 tmp &= ~(S5P_USE_DELAYED_RESET_ASSERTION); 191 pmu_raw_writel(tmp, EXYNOS_ARM_CORE_OPTION(core_id)); 192 } 193 } 194} 195 196/* |
|
170 * Apparently, these SoCs are not able to wake-up from suspend using 171 * the PMU. Too bad. Should they suddenly become capable of such a 172 * feat, the matches below should be moved to suspend.c. 173 */ 174static const struct of_device_id exynos_dt_pmu_match[] = { 175 { .compatible = "samsung,exynos5260-pmu" }, 176 { .compatible = "samsung,exynos5410-pmu" }, 177 { /*sentinel*/ }, --- 105 unchanged lines hidden --- | 197 * Apparently, these SoCs are not able to wake-up from suspend using 198 * the PMU. Too bad. Should they suddenly become capable of such a 199 * feat, the matches below should be moved to suspend.c. 200 */ 201static const struct of_device_id exynos_dt_pmu_match[] = { 202 { .compatible = "samsung,exynos5260-pmu" }, 203 { .compatible = "samsung,exynos5410-pmu" }, 204 { /*sentinel*/ }, --- 105 unchanged lines hidden --- |