diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2012-09-21 23:17:37 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-09-21 23:17:37 -0400 |
commit | a0cabc4017a78643e26d7bd79bcac548410f0480 (patch) | |
tree | 83bb72392d38c59a0eacbcfc7a794332aaed1a53 /arch/arm/mach-exynos | |
parent | 56952baa9b6f6bc06437abd51baefc4f7c8dee3b (diff) | |
parent | c8c24dad2349fb430641535a4f26a7a1cebb9644 (diff) |
Merge branch 'next/dt-samsung' into next/dt-samsung-new
Conflicts:
arch/arm/boot/dts/exynos4210-origen.dts
arch/arm/boot/dts/exynos4210.dtsi
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r-- | arch/arm/mach-exynos/Makefile.boot | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-exynos4-dt.c | 32 |
2 files changed, 24 insertions, 10 deletions
diff --git a/arch/arm/mach-exynos/Makefile.boot b/arch/arm/mach-exynos/Makefile.boot index 31bd181b0514..a79d999725cb 100644 --- a/arch/arm/mach-exynos/Makefile.boot +++ b/arch/arm/mach-exynos/Makefile.boot | |||
@@ -1,5 +1,5 @@ | |||
1 | zreladdr-y += 0x40008000 | 1 | zreladdr-y += 0x40008000 |
2 | params_phys-y := 0x40000100 | 2 | params_phys-y := 0x40000100 |
3 | 3 | ||
4 | dtb-$(CONFIG_MACH_EXYNOS4_DT) += exynos4210-origen.dtb exynos4210-smdkv310.dtb | 4 | dtb-$(CONFIG_MACH_EXYNOS4_DT) += exynos4210-origen.dtb exynos4210-smdkv310.dtb exynos4210-trats.dtb |
5 | dtb-$(CONFIG_MACH_EXYNOS5_DT) += exynos5250-smdk5250.dtb | 5 | dtb-$(CONFIG_MACH_EXYNOS5_DT) += exynos5250-smdk5250.dtb |
diff --git a/arch/arm/mach-exynos/mach-exynos4-dt.c b/arch/arm/mach-exynos/mach-exynos4-dt.c index b2b5d5faa748..e58d786faf78 100644 --- a/arch/arm/mach-exynos/mach-exynos4-dt.c +++ b/arch/arm/mach-exynos/mach-exynos4-dt.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Samsung's Exynos4210 flattened device tree enabled machine | 2 | * Samsung's EXYNOS4 flattened device tree enabled machine |
3 | * | 3 | * |
4 | * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. | 4 | * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. |
5 | * http://www.samsung.com | 5 | * http://www.samsung.com |
@@ -36,7 +36,7 @@ | |||
36 | * at some point, the drivers should be capable of parsing all the platform | 36 | * at some point, the drivers should be capable of parsing all the platform |
37 | * data from the device tree. | 37 | * data from the device tree. |
38 | */ | 38 | */ |
39 | static const struct of_dev_auxdata exynos4210_auxdata_lookup[] __initconst = { | 39 | static const struct of_dev_auxdata exynos4_auxdata_lookup[] __initconst = { |
40 | OF_DEV_AUXDATA("samsung,exynos4210-uart", EXYNOS4_PA_UART0, | 40 | OF_DEV_AUXDATA("samsung,exynos4210-uart", EXYNOS4_PA_UART0, |
41 | "exynos4210-uart.0", NULL), | 41 | "exynos4210-uart.0", NULL), |
42 | OF_DEV_AUXDATA("samsung,exynos4210-uart", EXYNOS4_PA_UART1, | 42 | OF_DEV_AUXDATA("samsung,exynos4210-uart", EXYNOS4_PA_UART1, |
@@ -55,6 +55,20 @@ static const struct of_dev_auxdata exynos4210_auxdata_lookup[] __initconst = { | |||
55 | "exynos4-sdhci.3", NULL), | 55 | "exynos4-sdhci.3", NULL), |
56 | OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS4_PA_IIC(0), | 56 | OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS4_PA_IIC(0), |
57 | "s3c2440-i2c.0", NULL), | 57 | "s3c2440-i2c.0", NULL), |
58 | OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS4_PA_IIC(1), | ||
59 | "s3c2440-i2c.1", NULL), | ||
60 | OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS4_PA_IIC(2), | ||
61 | "s3c2440-i2c.2", NULL), | ||
62 | OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS4_PA_IIC(3), | ||
63 | "s3c2440-i2c.3", NULL), | ||
64 | OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS4_PA_IIC(4), | ||
65 | "s3c2440-i2c.4", NULL), | ||
66 | OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS4_PA_IIC(5), | ||
67 | "s3c2440-i2c.5", NULL), | ||
68 | OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS4_PA_IIC(6), | ||
69 | "s3c2440-i2c.6", NULL), | ||
70 | OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS4_PA_IIC(7), | ||
71 | "s3c2440-i2c.7", NULL), | ||
58 | OF_DEV_AUXDATA("samsung,exynos4210-spi", EXYNOS4_PA_SPI0, | 72 | OF_DEV_AUXDATA("samsung,exynos4210-spi", EXYNOS4_PA_SPI0, |
59 | "exynos4210-spi.0", NULL), | 73 | "exynos4210-spi.0", NULL), |
60 | OF_DEV_AUXDATA("samsung,exynos4210-spi", EXYNOS4_PA_SPI1, | 74 | OF_DEV_AUXDATA("samsung,exynos4210-spi", EXYNOS4_PA_SPI1, |
@@ -66,19 +80,19 @@ static const struct of_dev_auxdata exynos4210_auxdata_lookup[] __initconst = { | |||
66 | {}, | 80 | {}, |
67 | }; | 81 | }; |
68 | 82 | ||
69 | static void __init exynos4210_dt_map_io(void) | 83 | static void __init exynos4_dt_map_io(void) |
70 | { | 84 | { |
71 | exynos_init_io(NULL, 0); | 85 | exynos_init_io(NULL, 0); |
72 | s3c24xx_init_clocks(24000000); | 86 | s3c24xx_init_clocks(24000000); |
73 | } | 87 | } |
74 | 88 | ||
75 | static void __init exynos4210_dt_machine_init(void) | 89 | static void __init exynos4_dt_machine_init(void) |
76 | { | 90 | { |
77 | of_platform_populate(NULL, of_default_bus_match_table, | 91 | of_platform_populate(NULL, of_default_bus_match_table, |
78 | exynos4210_auxdata_lookup, NULL); | 92 | exynos4_auxdata_lookup, NULL); |
79 | } | 93 | } |
80 | 94 | ||
81 | static char const *exynos4210_dt_compat[] __initdata = { | 95 | static char const *exynos4_dt_compat[] __initdata = { |
82 | "samsung,exynos4210", | 96 | "samsung,exynos4210", |
83 | NULL | 97 | NULL |
84 | }; | 98 | }; |
@@ -86,11 +100,11 @@ static char const *exynos4210_dt_compat[] __initdata = { | |||
86 | DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)") | 100 | DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)") |
87 | /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */ | 101 | /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */ |
88 | .init_irq = exynos4_init_irq, | 102 | .init_irq = exynos4_init_irq, |
89 | .map_io = exynos4210_dt_map_io, | 103 | .map_io = exynos4_dt_map_io, |
90 | .handle_irq = gic_handle_irq, | 104 | .handle_irq = gic_handle_irq, |
91 | .init_machine = exynos4210_dt_machine_init, | 105 | .init_machine = exynos4_dt_machine_init, |
92 | .init_late = exynos_init_late, | 106 | .init_late = exynos_init_late, |
93 | .timer = &exynos4_timer, | 107 | .timer = &exynos4_timer, |
94 | .dt_compat = exynos4210_dt_compat, | 108 | .dt_compat = exynos4_dt_compat, |
95 | .restart = exynos4_restart, | 109 | .restart = exynos4_restart, |
96 | MACHINE_END | 110 | MACHINE_END |