aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-06-02 19:34:00 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-02 19:34:00 -0400
commit755a9ba7bf24a45b6dbf8bb15a5a56c8ed12461a (patch)
treead98ee0f336630144e571c9499453c571c6b02c7 /arch/arm/mach-omap2
parent7477838f2e481256a40e0c44b92f9bccb065bc51 (diff)
parent0f16aa3c24a216d14d7f0587e1cbd2c1b51a38f3 (diff)
Merge tag 'dt-for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc into next
Pull ARM SoC devicetree updates from Olof Johansson: "As with previous release, this continues to be among the largest branches we merge, with lots of new contents. New things for this release are among other things: - DTSI contents for the new SoCs supported in 3.16 (see SoC pull request) - Qualcomm APQ8064 and APQ8084 SoCs and eval boards - Nvidia Jetson TK1 development board (Tegra T124-based) Two new SoCs that didn't need enough new platform code to stand out enough for me to notice when writing the SoC tag, but that adds new DT contents are: - TI DRA72 - Marvell Berlin 2Q" * tag 'dt-for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (500 commits) ARM: dts: add secure firmware support for exynos5420-arndale-octa ARM: dts: add pmu sysreg node to exynos3250 ARM: dts: correct the usb phy node in exynos5800-peach-pi ARM: dts: correct the usb phy node in exynos5420-peach-pit ARM: dts: add dts files for exynos5410 and exynos5410-smdk5410 ARM: dts: add dts files for exynos3250 SoC ARM: dts: add mfc node for exynos5800 ARM: dts: add Vbus regulator for USB 3.0 on exynos5800-peach-pi ARM: dts: enable fimd for exynos5800-peach-pi ARM: dts: enable display controller for exynos5800-peach-pi ARM: dts: enable hdmi for exynos5800-peach-pi ARM: dts: add dts file for exynos5800-peach-pi board ARM: dts: add dts file for exynos5800 SoC ARM: dts: add dts file for exynos5260-xyref5260 board ARM: dts: add dts files for exynos5260 SoC ARM: dts: update watchdog node name in exynos5440 ARM: dts: use key code macros on Origen and Arndale boards ARM: dts: enable RTC and WDT nodes on Origen boards ARM: dts: qcom: Add APQ8084-MTP board support ARM: dts: qcom: Add APQ8084 SoC support ...
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/board-generic.c45
-rw-r--r--arch/arm/mach-omap2/gpmc-nand.c2
-rw-r--r--arch/arm/mach-omap2/hdq1w.c2
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_3xxx_data.c9
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_7xx_data.c10
-rw-r--r--arch/arm/mach-omap2/pdata-quirks.c7
6 files changed, 44 insertions, 31 deletions
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index b8920b6bc104..9480997ba616 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -43,7 +43,7 @@ static void __init omap_generic_init(void)
43} 43}
44 44
45#ifdef CONFIG_SOC_OMAP2420 45#ifdef CONFIG_SOC_OMAP2420
46static const char *omap242x_boards_compat[] __initdata = { 46static const char *omap242x_boards_compat[] __initconst = {
47 "ti,omap2420", 47 "ti,omap2420",
48 NULL, 48 NULL,
49}; 49};
@@ -62,7 +62,7 @@ MACHINE_END
62#endif 62#endif
63 63
64#ifdef CONFIG_SOC_OMAP2430 64#ifdef CONFIG_SOC_OMAP2430
65static const char *omap243x_boards_compat[] __initdata = { 65static const char *omap243x_boards_compat[] __initconst = {
66 "ti,omap2430", 66 "ti,omap2430",
67 NULL, 67 NULL,
68}; 68};
@@ -81,7 +81,7 @@ MACHINE_END
81#endif 81#endif
82 82
83#ifdef CONFIG_ARCH_OMAP3 83#ifdef CONFIG_ARCH_OMAP3
84static const char *omap3_boards_compat[] __initdata = { 84static const char *omap3_boards_compat[] __initconst = {
85 "ti,omap3430", 85 "ti,omap3430",
86 "ti,omap3", 86 "ti,omap3",
87 NULL, 87 NULL,
@@ -100,7 +100,7 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)")
100 .restart = omap3xxx_restart, 100 .restart = omap3xxx_restart,
101MACHINE_END 101MACHINE_END
102 102
103static const char *omap36xx_boards_compat[] __initdata = { 103static const char *omap36xx_boards_compat[] __initconst = {
104 "ti,omap36xx", 104 "ti,omap36xx",
105 NULL, 105 NULL,
106}; 106};
@@ -118,7 +118,7 @@ DT_MACHINE_START(OMAP36XX_DT, "Generic OMAP36xx (Flattened Device Tree)")
118 .restart = omap3xxx_restart, 118 .restart = omap3xxx_restart,
119MACHINE_END 119MACHINE_END
120 120
121static const char *omap3_gp_boards_compat[] __initdata = { 121static const char *omap3_gp_boards_compat[] __initconst = {
122 "ti,omap3-beagle", 122 "ti,omap3-beagle",
123 "timll,omap3-devkit8000", 123 "timll,omap3-devkit8000",
124 NULL, 124 NULL,
@@ -137,7 +137,7 @@ DT_MACHINE_START(OMAP3_GP_DT, "Generic OMAP3-GP (Flattened Device Tree)")
137 .restart = omap3xxx_restart, 137 .restart = omap3xxx_restart,
138MACHINE_END 138MACHINE_END
139 139
140static const char *am3517_boards_compat[] __initdata = { 140static const char *am3517_boards_compat[] __initconst = {
141 "ti,am3517", 141 "ti,am3517",
142 NULL, 142 NULL,
143}; 143};
@@ -157,7 +157,7 @@ MACHINE_END
157#endif 157#endif
158 158
159#ifdef CONFIG_SOC_AM33XX 159#ifdef CONFIG_SOC_AM33XX
160static const char *am33xx_boards_compat[] __initdata = { 160static const char *am33xx_boards_compat[] __initconst = {
161 "ti,am33xx", 161 "ti,am33xx",
162 NULL, 162 NULL,
163}; 163};
@@ -177,7 +177,7 @@ MACHINE_END
177#endif 177#endif
178 178
179#ifdef CONFIG_ARCH_OMAP4 179#ifdef CONFIG_ARCH_OMAP4
180static const char *omap4_boards_compat[] __initdata = { 180static const char *omap4_boards_compat[] __initconst = {
181 "ti,omap4460", 181 "ti,omap4460",
182 "ti,omap4430", 182 "ti,omap4430",
183 "ti,omap4", 183 "ti,omap4",
@@ -199,7 +199,7 @@ MACHINE_END
199#endif 199#endif
200 200
201#ifdef CONFIG_SOC_OMAP5 201#ifdef CONFIG_SOC_OMAP5
202static const char *omap5_boards_compat[] __initdata = { 202static const char *omap5_boards_compat[] __initconst = {
203 "ti,omap5432", 203 "ti,omap5432",
204 "ti,omap5430", 204 "ti,omap5430",
205 "ti,omap5", 205 "ti,omap5",
@@ -221,7 +221,7 @@ MACHINE_END
221#endif 221#endif
222 222
223#ifdef CONFIG_SOC_AM43XX 223#ifdef CONFIG_SOC_AM43XX
224static const char *am43_boards_compat[] __initdata = { 224static const char *am43_boards_compat[] __initconst = {
225 "ti,am4372", 225 "ti,am4372",
226 "ti,am43", 226 "ti,am43",
227 NULL, 227 NULL,
@@ -240,13 +240,13 @@ MACHINE_END
240#endif 240#endif
241 241
242#ifdef CONFIG_SOC_DRA7XX 242#ifdef CONFIG_SOC_DRA7XX
243static const char *dra7xx_boards_compat[] __initdata = { 243static const char *dra74x_boards_compat[] __initconst = {
244 "ti,dra7xx", 244 "ti,dra742",
245 "ti,dra7", 245 "ti,dra7",
246 NULL, 246 NULL,
247}; 247};
248 248
249DT_MACHINE_START(DRA7XX_DT, "Generic DRA7XX (Flattened Device Tree)") 249DT_MACHINE_START(DRA74X_DT, "Generic DRA74X (Flattened Device Tree)")
250 .reserve = omap_reserve, 250 .reserve = omap_reserve,
251 .smp = smp_ops(omap4_smp_ops), 251 .smp = smp_ops(omap4_smp_ops),
252 .map_io = omap5_map_io, 252 .map_io = omap5_map_io,
@@ -255,7 +255,24 @@ DT_MACHINE_START(DRA7XX_DT, "Generic DRA7XX (Flattened Device Tree)")
255 .init_irq = omap_gic_of_init, 255 .init_irq = omap_gic_of_init,
256 .init_machine = omap_generic_init, 256 .init_machine = omap_generic_init,
257 .init_time = omap5_realtime_timer_init, 257 .init_time = omap5_realtime_timer_init,
258 .dt_compat = dra7xx_boards_compat, 258 .dt_compat = dra74x_boards_compat,
259 .restart = omap44xx_restart,
260MACHINE_END
261
262static const char *dra72x_boards_compat[] __initconst = {
263 "ti,dra722",
264 NULL,
265};
266
267DT_MACHINE_START(DRA72X_DT, "Generic DRA72X (Flattened Device Tree)")
268 .reserve = omap_reserve,
269 .map_io = omap5_map_io,
270 .init_early = dra7xx_init_early,
271 .init_late = dra7xx_init_late,
272 .init_irq = omap_gic_of_init,
273 .init_machine = omap_generic_init,
274 .init_time = omap5_realtime_timer_init,
275 .dt_compat = dra72x_boards_compat,
259 .restart = omap44xx_restart, 276 .restart = omap44xx_restart,
260MACHINE_END 277MACHINE_END
261#endif 278#endif
diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c
index 4349e82debfe..17cd39360afe 100644
--- a/arch/arm/mach-omap2/gpmc-nand.c
+++ b/arch/arm/mach-omap2/gpmc-nand.c
@@ -46,7 +46,7 @@ static struct platform_device gpmc_nand_device = {
46static bool gpmc_hwecc_bch_capable(enum omap_ecc ecc_opt) 46static bool gpmc_hwecc_bch_capable(enum omap_ecc ecc_opt)
47{ 47{
48 /* platforms which support all ECC schemes */ 48 /* platforms which support all ECC schemes */
49 if (soc_is_am33xx() || cpu_is_omap44xx() || 49 if (soc_is_am33xx() || soc_is_am43xx() || cpu_is_omap44xx() ||
50 soc_is_omap54xx() || soc_is_dra7xx()) 50 soc_is_omap54xx() || soc_is_dra7xx())
51 return 1; 51 return 1;
52 52
diff --git a/arch/arm/mach-omap2/hdq1w.c b/arch/arm/mach-omap2/hdq1w.c
index cbc8e3c480e0..f78b4a161959 100644
--- a/arch/arm/mach-omap2/hdq1w.c
+++ b/arch/arm/mach-omap2/hdq1w.c
@@ -76,6 +76,7 @@ int omap_hdq1w_reset(struct omap_hwmod *oh)
76 return 0; 76 return 0;
77} 77}
78 78
79#ifndef CONFIG_OF
79static int __init omap_init_hdq(void) 80static int __init omap_init_hdq(void)
80{ 81{
81 int id = -1; 82 int id = -1;
@@ -95,3 +96,4 @@ static int __init omap_init_hdq(void)
95 return 0; 96 return 0;
96} 97}
97omap_arch_initcall(omap_init_hdq); 98omap_arch_initcall(omap_init_hdq);
99#endif
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
index 71ac7d5f3385..1cd0cfdc03e0 100644
--- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
@@ -3689,12 +3689,9 @@ static struct omap_hwmod_class_sysconfig omap34xx_ssi_sysc = {
3689 .rev_offs = 0x0000, 3689 .rev_offs = 0x0000,
3690 .sysc_offs = 0x0010, 3690 .sysc_offs = 0x0010,
3691 .syss_offs = 0x0014, 3691 .syss_offs = 0x0014,
3692 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE | 3692 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_MIDLEMODE |
3693 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE | 3693 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3694 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS), 3694 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3695 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3696 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3697 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
3698 .sysc_fields = &omap_hwmod_sysc_type1, 3695 .sysc_fields = &omap_hwmod_sysc_type1,
3699}; 3696};
3700 3697
diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
index 810c205d668b..20b4398cec05 100644
--- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
@@ -2318,21 +2318,11 @@ static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
2318 .user = OCP_USER_MPU | OCP_USER_SDMA, 2318 .user = OCP_USER_MPU | OCP_USER_SDMA,
2319}; 2319};
2320 2320
2321static struct omap_hwmod_addr_space dra7xx_ocp2scp1_addrs[] = {
2322 {
2323 .pa_start = 0x4a080000,
2324 .pa_end = 0x4a08001f,
2325 .flags = ADDR_TYPE_RT
2326 },
2327 { }
2328};
2329
2330/* l4_cfg -> ocp2scp1 */ 2321/* l4_cfg -> ocp2scp1 */
2331static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = { 2322static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = {
2332 .master = &dra7xx_l4_cfg_hwmod, 2323 .master = &dra7xx_l4_cfg_hwmod,
2333 .slave = &dra7xx_ocp2scp1_hwmod, 2324 .slave = &dra7xx_ocp2scp1_hwmod,
2334 .clk = "l4_root_clk_div", 2325 .clk = "l4_root_clk_div",
2335 .addr = dra7xx_ocp2scp1_addrs,
2336 .user = OCP_USER_MPU | OCP_USER_SDMA, 2326 .user = OCP_USER_MPU | OCP_USER_SDMA,
2337}; 2327};
2338 2328
diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c
index fa298bd2476e..90c88d498485 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -266,6 +266,11 @@ static void __init omap4_panda_legacy_init(void)
266{ 266{
267 legacy_init_wl12xx(WL12XX_REFCLOCK_38, 0, 53); 267 legacy_init_wl12xx(WL12XX_REFCLOCK_38, 0, 53);
268} 268}
269
270static void __init var_som_om44_legacy_init(void)
271{
272 legacy_init_wl12xx(WL12XX_REFCLOCK_38, 0, 41);
273}
269#endif 274#endif
270 275
271#if defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_SOC_OMAP5) 276#if defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_SOC_OMAP5)
@@ -376,6 +381,8 @@ static struct pdata_init pdata_quirks[] __initdata = {
376#ifdef CONFIG_ARCH_OMAP4 381#ifdef CONFIG_ARCH_OMAP4
377 { "ti,omap4-sdp", omap4_sdp_legacy_init, }, 382 { "ti,omap4-sdp", omap4_sdp_legacy_init, },
378 { "ti,omap4-panda", omap4_panda_legacy_init, }, 383 { "ti,omap4-panda", omap4_panda_legacy_init, },
384 { "variscite,var-dvk-om44", var_som_om44_legacy_init, },
385 { "variscite,var-stk-om44", var_som_om44_legacy_init, },
379#endif 386#endif
380#ifdef CONFIG_SOC_AM33XX 387#ifdef CONFIG_SOC_AM33XX
381 { "ti,am335x-evmsk", am335x_evmsk_legacy_init, }, 388 { "ti,am335x-evmsk", am335x_evmsk_legacy_init, },