aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2012-11-18 23:18:47 -0500
committerKukjin Kim <kgene.kim@samsung.com>2012-11-18 23:18:47 -0500
commit326f3abf19360014dfae968aa3ab891d25599618 (patch)
treea57251231cb889e4e6b0f26d023990578b7bd98e /arch/arm/mach-exynos
parentef405e04abd0d4bc3f7082d241517f6db3f5c06d (diff)
parent64a574344dadbee5d01819d9d73b594d3cbe448e (diff)
Merge branch 'next/dt-exynos4x12' into next/dt-samsung
Conflicts: arch/arm/boot/dts/exynos4210.dtsi
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r--arch/arm/mach-exynos/common.c12
-rw-r--r--arch/arm/mach-exynos/mach-exynos4-dt.c3
2 files changed, 13 insertions, 2 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c
index 715b690e5009..4af8284f3597 100644
--- a/arch/arm/mach-exynos/common.c
+++ b/arch/arm/mach-exynos/common.c
@@ -47,6 +47,7 @@
47#include <plat/fimc-core.h> 47#include <plat/fimc-core.h>
48#include <plat/iic-core.h> 48#include <plat/iic-core.h>
49#include <plat/tv-core.h> 49#include <plat/tv-core.h>
50#include <plat/spi-core.h>
50#include <plat/regs-serial.h> 51#include <plat/regs-serial.h>
51 52
52#include "common.h" 53#include "common.h"
@@ -346,6 +347,8 @@ static void __init exynos4_map_io(void)
346 347
347 s5p_fb_setname(0, "exynos4-fb"); 348 s5p_fb_setname(0, "exynos4-fb");
348 s5p_hdmi_setname("exynos4-hdmi"); 349 s5p_hdmi_setname("exynos4-hdmi");
350
351 s3c64xx_spi_setname("exynos4210-spi");
349} 352}
350 353
351static void __init exynos5_map_io(void) 354static void __init exynos5_map_io(void)
@@ -366,6 +369,8 @@ static void __init exynos5_map_io(void)
366 s3c_i2c0_setname("s3c2440-i2c"); 369 s3c_i2c0_setname("s3c2440-i2c");
367 s3c_i2c1_setname("s3c2440-i2c"); 370 s3c_i2c1_setname("s3c2440-i2c");
368 s3c_i2c2_setname("s3c2440-i2c"); 371 s3c_i2c2_setname("s3c2440-i2c");
372
373 s3c64xx_spi_setname("exynos4210-spi");
369} 374}
370 375
371static void __init exynos4_init_clocks(int xtal) 376static void __init exynos4_init_clocks(int xtal)
@@ -992,11 +997,14 @@ static int __init exynos_init_irq_eint(void)
992 * platforms switch over to using the pinctrl driver, the wakeup 997 * platforms switch over to using the pinctrl driver, the wakeup
993 * interrupt support code here can be completely removed. 998 * interrupt support code here can be completely removed.
994 */ 999 */
1000 static const struct of_device_id exynos_pinctrl_ids[] = {
1001 { .compatible = "samsung,pinctrl-exynos4210", },
1002 { .compatible = "samsung,pinctrl-exynos4x12", },
1003 };
995 struct device_node *pctrl_np, *wkup_np; 1004 struct device_node *pctrl_np, *wkup_np;
996 const char *pctrl_compat = "samsung,pinctrl-exynos4210";
997 const char *wkup_compat = "samsung,exynos4210-wakeup-eint"; 1005 const char *wkup_compat = "samsung,exynos4210-wakeup-eint";
998 1006
999 for_each_compatible_node(pctrl_np, NULL, pctrl_compat) { 1007 for_each_matching_node(pctrl_np, exynos_pinctrl_ids) {
1000 if (of_device_is_available(pctrl_np)) { 1008 if (of_device_is_available(pctrl_np)) {
1001 wkup_np = of_find_compatible_node(pctrl_np, NULL, 1009 wkup_np = of_find_compatible_node(pctrl_np, NULL,
1002 wkup_compat); 1010 wkup_compat);
diff --git a/arch/arm/mach-exynos/mach-exynos4-dt.c b/arch/arm/mach-exynos/mach-exynos4-dt.c
index 0276ae44777a..8858068d2b6a 100644
--- a/arch/arm/mach-exynos/mach-exynos4-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos4-dt.c
@@ -96,11 +96,14 @@ static void __init exynos4_dt_machine_init(void)
96 96
97static char const *exynos4_dt_compat[] __initdata = { 97static char const *exynos4_dt_compat[] __initdata = {
98 "samsung,exynos4210", 98 "samsung,exynos4210",
99 "samsung,exynos4212",
100 "samsung,exynos4412",
99 NULL 101 NULL
100}; 102};
101 103
102DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)") 104DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)")
103 /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */ 105 /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */
106 .smp = smp_ops(exynos_smp_ops),
104 .init_irq = exynos4_init_irq, 107 .init_irq = exynos4_init_irq,
105 .map_io = exynos4_dt_map_io, 108 .map_io = exynos4_dt_map_io,
106 .handle_irq = gic_handle_irq, 109 .handle_irq = gic_handle_irq,