exynos.c (ff6a8168d2e57cf36c10b8add6ae5773c02babdc) exynos.c (712eddf70225ab5ae65e946e22d2dfe6b93e8dd1)
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

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

241
242 /*
243 * This is called from smp_prepare_cpus if we've built for SMP, but
244 * we still need to set it up for PM and firmware ops if not.
245 */
246 if (!IS_ENABLED(CONFIG_SMP))
247 exynos_sysram_init();
248
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

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

241
242 /*
243 * This is called from smp_prepare_cpus if we've built for SMP, but
244 * we still need to set it up for PM and firmware ops if not.
245 */
246 if (!IS_ENABLED(CONFIG_SMP))
247 exynos_sysram_init();
248
249#ifdef CONFIG_ARM_EXYNOS_CPUIDLE
250 if (of_machine_is_compatible("samsung,exynos4210"))
251 exynos_cpuidle.dev.platform_data = &cpuidle_coupled_exynos_data;
252#endif
249 if (of_machine_is_compatible("samsung,exynos4210") ||
250 of_machine_is_compatible("samsung,exynos4212") ||
251 (of_machine_is_compatible("samsung,exynos4412") &&
252 of_machine_is_compatible("samsung,trats2")) ||
253 of_machine_is_compatible("samsung,exynos5250"))
254 platform_device_register(&exynos_cpuidle);
255
256 platform_device_register_simple("exynos-cpufreq", -1, NULL, 0);

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

277static void __init exynos_reserve(void)
278{
279#ifdef CONFIG_S5P_DEV_MFC
280 int i;
281 char *mfc_mem[] = {
282 "samsung,mfc-v5",
283 "samsung,mfc-v6",
284 "samsung,mfc-v7",
253 if (of_machine_is_compatible("samsung,exynos4210") ||
254 of_machine_is_compatible("samsung,exynos4212") ||
255 (of_machine_is_compatible("samsung,exynos4412") &&
256 of_machine_is_compatible("samsung,trats2")) ||
257 of_machine_is_compatible("samsung,exynos5250"))
258 platform_device_register(&exynos_cpuidle);
259
260 platform_device_register_simple("exynos-cpufreq", -1, NULL, 0);

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

281static void __init exynos_reserve(void)
282{
283#ifdef CONFIG_S5P_DEV_MFC
284 int i;
285 char *mfc_mem[] = {
286 "samsung,mfc-v5",
287 "samsung,mfc-v6",
288 "samsung,mfc-v7",
285 "samsung,mfc-v8",
286 };
287
288 for (i = 0; i < ARRAY_SIZE(mfc_mem); i++)
289 if (of_scan_flat_dt(s5p_fdt_alloc_mfc_mem, mfc_mem[i]))
290 break;
291#endif
292}
293

--- 24 unchanged lines hidden ---
289 };
290
291 for (i = 0; i < ARRAY_SIZE(mfc_mem); i++)
292 if (of_scan_flat_dt(s5p_fdt_alloc_mfc_mem, mfc_mem[i]))
293 break;
294#endif
295}
296

--- 24 unchanged lines hidden ---