diff options
author | Tony Lindgren <tony@atomide.com> | 2012-08-31 19:08:07 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-09-12 21:06:31 -0400 |
commit | c49f34bc25900c3c6638fed0987c9abea3c212ea (patch) | |
tree | e1686e3c2cf56aee878fe3a725d4f7651464ec91 | |
parent | dbc04161048dd5e5c3c58546688a0cc0854051e9 (diff) |
ARM: OMAP2+ Move SoC specific headers to be local to mach-omap2
These can now be moved to be local headers in mach-omap2.
Note that this patch removes arch/arm/plat-omap/devices.c as it
will get removed anyways with Paul Walmsley's patch
"ARM: OMAP: split OMAP1, OMAP2+ RNG device registration".
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/am33xx.h (renamed from arch/arm/plat-omap/include/plat/am33xx.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock33xx_data.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/control.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap-mpuss-lowpower.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap24xx.h (renamed from arch/arm/plat-omap/include/plat/omap24xx.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap34xx.h (renamed from arch/arm/plat-omap/include/plat/omap34xx.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap44xx.h (renamed from arch/arm/plat-omap/include/plat/omap44xx.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap54xx.h (renamed from arch/arm/plat-omap/include/plat/omap54xx.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-omap2/sleep24xx.S | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap2/sleep34xx.S | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/sleep44xx.S | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/soc.h | 12 | ||||
-rw-r--r-- | arch/arm/mach-omap2/ti81xx.h (renamed from arch/arm/plat-omap/include/plat/ti81xx.h) | 0 | ||||
-rw-r--r-- | arch/arm/plat-omap/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/plat-omap/devices.c | 91 |
15 files changed, 13 insertions, 111 deletions
diff --git a/arch/arm/plat-omap/include/plat/am33xx.h b/arch/arm/mach-omap2/am33xx.h index 06c19bb7bca6..06c19bb7bca6 100644 --- a/arch/arm/plat-omap/include/plat/am33xx.h +++ b/arch/arm/mach-omap2/am33xx.h | |||
diff --git a/arch/arm/mach-omap2/clock33xx_data.c b/arch/arm/mach-omap2/clock33xx_data.c index 25bbcc7ca4dc..7aa5ecaee5a2 100644 --- a/arch/arm/mach-omap2/clock33xx_data.c +++ b/arch/arm/mach-omap2/clock33xx_data.c | |||
@@ -18,8 +18,8 @@ | |||
18 | #include <linux/list.h> | 18 | #include <linux/list.h> |
19 | #include <linux/clk.h> | 19 | #include <linux/clk.h> |
20 | #include <plat/clkdev_omap.h> | 20 | #include <plat/clkdev_omap.h> |
21 | #include <plat/am33xx.h> | ||
22 | 21 | ||
22 | #include "am33xx.h" | ||
23 | #include "iomap.h" | 23 | #include "iomap.h" |
24 | #include "control.h" | 24 | #include "control.h" |
25 | #include "clock.h" | 25 | #include "clock.h" |
diff --git a/arch/arm/mach-omap2/control.h b/arch/arm/mach-omap2/control.h index b8cdc8531b60..c1a5cab0f236 100644 --- a/arch/arm/mach-omap2/control.h +++ b/arch/arm/mach-omap2/control.h | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <mach/ctrl_module_pad_core_44xx.h> | 21 | #include <mach/ctrl_module_pad_core_44xx.h> |
22 | #include <mach/ctrl_module_pad_wkup_44xx.h> | 22 | #include <mach/ctrl_module_pad_wkup_44xx.h> |
23 | 23 | ||
24 | #include <plat/am33xx.h> | 24 | #include "am33xx.h" |
25 | 25 | ||
26 | #ifndef __ASSEMBLY__ | 26 | #ifndef __ASSEMBLY__ |
27 | #define OMAP242X_CTRL_REGADDR(reg) \ | 27 | #define OMAP242X_CTRL_REGADDR(reg) \ |
diff --git a/arch/arm/mach-omap2/omap-mpuss-lowpower.c b/arch/arm/mach-omap2/omap-mpuss-lowpower.c index 637a1bdf2ac4..ff4e6a0e9c7c 100644 --- a/arch/arm/mach-omap2/omap-mpuss-lowpower.c +++ b/arch/arm/mach-omap2/omap-mpuss-lowpower.c | |||
@@ -50,9 +50,8 @@ | |||
50 | #include <asm/suspend.h> | 50 | #include <asm/suspend.h> |
51 | #include <asm/hardware/cache-l2x0.h> | 51 | #include <asm/hardware/cache-l2x0.h> |
52 | 52 | ||
53 | #include <plat/omap44xx.h> | ||
54 | |||
55 | #include "common.h" | 53 | #include "common.h" |
54 | #include "omap44xx.h" | ||
56 | #include "omap4-sar-layout.h" | 55 | #include "omap4-sar-layout.h" |
57 | #include "pm.h" | 56 | #include "pm.h" |
58 | #include "prcm_mpu44xx.h" | 57 | #include "prcm_mpu44xx.h" |
diff --git a/arch/arm/plat-omap/include/plat/omap24xx.h b/arch/arm/mach-omap2/omap24xx.h index 92df9e27cc5c..641a2c8d2eee 100644 --- a/arch/arm/plat-omap/include/plat/omap24xx.h +++ b/arch/arm/mach-omap2/omap24xx.h | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/plat-omap/include/mach/omap24xx.h | ||
3 | * | ||
4 | * This file contains the processor specific definitions | 2 | * This file contains the processor specific definitions |
5 | * of the TI OMAP24XX. | 3 | * of the TI OMAP24XX. |
6 | * | 4 | * |
diff --git a/arch/arm/plat-omap/include/plat/omap34xx.h b/arch/arm/mach-omap2/omap34xx.h index 0d818acf3917..c0d1b4b1653f 100644 --- a/arch/arm/plat-omap/include/plat/omap34xx.h +++ b/arch/arm/mach-omap2/omap34xx.h | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/plat-omap/include/mach/omap34xx.h | ||
3 | * | ||
4 | * This file contains the processor specific definitions of the TI OMAP34XX. | 2 | * This file contains the processor specific definitions of the TI OMAP34XX. |
5 | * | 3 | * |
6 | * Copyright (C) 2007 Texas Instruments. | 4 | * Copyright (C) 2007 Texas Instruments. |
diff --git a/arch/arm/plat-omap/include/plat/omap44xx.h b/arch/arm/mach-omap2/omap44xx.h index 43b927b2e2e8..43b927b2e2e8 100644 --- a/arch/arm/plat-omap/include/plat/omap44xx.h +++ b/arch/arm/mach-omap2/omap44xx.h | |||
diff --git a/arch/arm/plat-omap/include/plat/omap54xx.h b/arch/arm/mach-omap2/omap54xx.h index a2582bb3cab3..a2582bb3cab3 100644 --- a/arch/arm/plat-omap/include/plat/omap54xx.h +++ b/arch/arm/mach-omap2/omap54xx.h | |||
diff --git a/arch/arm/mach-omap2/sleep24xx.S b/arch/arm/mach-omap2/sleep24xx.S index d4bf904d84ab..ce0ccd26efbd 100644 --- a/arch/arm/mach-omap2/sleep24xx.S +++ b/arch/arm/mach-omap2/sleep24xx.S | |||
@@ -28,8 +28,7 @@ | |||
28 | #include <linux/linkage.h> | 28 | #include <linux/linkage.h> |
29 | #include <asm/assembler.h> | 29 | #include <asm/assembler.h> |
30 | 30 | ||
31 | #include <plat/omap24xx.h> | 31 | #include "omap24xx.h" |
32 | |||
33 | #include "sdrc.h" | 32 | #include "sdrc.h" |
34 | 33 | ||
35 | /* First address of reserved address space? apparently valid for OMAP2 & 3 */ | 34 | /* First address of reserved address space? apparently valid for OMAP2 & 3 */ |
diff --git a/arch/arm/mach-omap2/sleep34xx.S b/arch/arm/mach-omap2/sleep34xx.S index 3fbe496f391b..506987979c1c 100644 --- a/arch/arm/mach-omap2/sleep34xx.S +++ b/arch/arm/mach-omap2/sleep34xx.S | |||
@@ -26,9 +26,9 @@ | |||
26 | 26 | ||
27 | #include <asm/assembler.h> | 27 | #include <asm/assembler.h> |
28 | 28 | ||
29 | #include <plat/omap34xx.h> | ||
30 | #include <plat/sram.h> | 29 | #include <plat/sram.h> |
31 | 30 | ||
31 | #include "omap34xx.h" | ||
32 | #include "iomap.h" | 32 | #include "iomap.h" |
33 | #include "cm2xxx_3xxx.h" | 33 | #include "cm2xxx_3xxx.h" |
34 | #include "prm2xxx_3xxx.h" | 34 | #include "prm2xxx_3xxx.h" |
diff --git a/arch/arm/mach-omap2/sleep44xx.S b/arch/arm/mach-omap2/sleep44xx.S index 91e71d8f46f0..b7d8ead4b86a 100644 --- a/arch/arm/mach-omap2/sleep44xx.S +++ b/arch/arm/mach-omap2/sleep44xx.S | |||
@@ -14,10 +14,10 @@ | |||
14 | #include <asm/memory.h> | 14 | #include <asm/memory.h> |
15 | #include <asm/hardware/cache-l2x0.h> | 15 | #include <asm/hardware/cache-l2x0.h> |
16 | 16 | ||
17 | #include <plat/omap44xx.h> | ||
18 | #include <mach/omap-secure.h> | 17 | #include <mach/omap-secure.h> |
19 | 18 | ||
20 | #include "common.h" | 19 | #include "common.h" |
20 | #include "omap44xx.h" | ||
21 | #include "omap4-sar-layout.h" | 21 | #include "omap4-sar-layout.h" |
22 | 22 | ||
23 | #if defined(CONFIG_SMP) && defined(CONFIG_PM) | 23 | #if defined(CONFIG_SMP) && defined(CONFIG_PM) |
diff --git a/arch/arm/mach-omap2/soc.h b/arch/arm/mach-omap2/soc.h index 93c08de5bb06..fc9b96daf851 100644 --- a/arch/arm/mach-omap2/soc.h +++ b/arch/arm/mach-omap2/soc.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #include <plat/cpu.h> | 1 | #include <plat/cpu.h> |
2 | #include <plat/omap24xx.h> | 2 | #include "omap24xx.h" |
3 | #include <plat/omap34xx.h> | 3 | #include "omap34xx.h" |
4 | #include <plat/omap44xx.h> | 4 | #include "omap44xx.h" |
5 | #include <plat/ti81xx.h> | 5 | #include "ti81xx.h" |
6 | #include <plat/am33xx.h> | 6 | #include "am33xx.h" |
7 | #include <plat/omap54xx.h> | 7 | #include "omap54xx.h" |
diff --git a/arch/arm/plat-omap/include/plat/ti81xx.h b/arch/arm/mach-omap2/ti81xx.h index 8f9843f78422..8f9843f78422 100644 --- a/arch/arm/plat-omap/include/plat/ti81xx.h +++ b/arch/arm/mach-omap2/ti81xx.h | |||
diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile index 961bf859bc0c..a017e994e006 100644 --- a/arch/arm/plat-omap/Makefile +++ b/arch/arm/plat-omap/Makefile | |||
@@ -3,8 +3,7 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | # Common support | 5 | # Common support |
6 | obj-y := common.o sram.o clock.o devices.o dma.o mux.o \ | 6 | obj-y := common.o sram.o clock.o dma.o mux.o fb.o counter_32k.o |
7 | fb.o counter_32k.o | ||
8 | obj-m := | 7 | obj-m := |
9 | obj-n := | 8 | obj-n := |
10 | obj- := | 9 | obj- := |
diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c deleted file mode 100644 index 287ac3748904..000000000000 --- a/arch/arm/plat-omap/devices.c +++ /dev/null | |||
@@ -1,91 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/plat-omap/devices.c | ||
3 | * | ||
4 | * Common platform device setup/initialization for OMAP1 and OMAP2 | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | */ | ||
11 | #include <linux/gpio.h> | ||
12 | #include <linux/module.h> | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/init.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/io.h> | ||
17 | #include <linux/slab.h> | ||
18 | #include <linux/memblock.h> | ||
19 | |||
20 | #include <mach/hardware.h> | ||
21 | #include <asm/mach-types.h> | ||
22 | #include <asm/mach/map.h> | ||
23 | #include <asm/memblock.h> | ||
24 | |||
25 | #include <plat/tc.h> | ||
26 | #include <plat/mmc.h> | ||
27 | #include <plat/menelaus.h> | ||
28 | #include <plat/omap44xx.h> | ||
29 | |||
30 | /*-------------------------------------------------------------------------*/ | ||
31 | |||
32 | #if defined(CONFIG_HW_RANDOM_OMAP) || defined(CONFIG_HW_RANDOM_OMAP_MODULE) | ||
33 | |||
34 | #ifdef CONFIG_ARCH_OMAP2 | ||
35 | #define OMAP_RNG_BASE 0x480A0000 | ||
36 | #else | ||
37 | #define OMAP_RNG_BASE 0xfffe5000 | ||
38 | #endif | ||
39 | |||
40 | static struct resource rng_resources[] = { | ||
41 | { | ||
42 | .start = OMAP_RNG_BASE, | ||
43 | .end = OMAP_RNG_BASE + 0x4f, | ||
44 | .flags = IORESOURCE_MEM, | ||
45 | }, | ||
46 | }; | ||
47 | |||
48 | static struct platform_device omap_rng_device = { | ||
49 | .name = "omap_rng", | ||
50 | .id = -1, | ||
51 | .num_resources = ARRAY_SIZE(rng_resources), | ||
52 | .resource = rng_resources, | ||
53 | }; | ||
54 | |||
55 | static void omap_init_rng(void) | ||
56 | { | ||
57 | (void) platform_device_register(&omap_rng_device); | ||
58 | } | ||
59 | #else | ||
60 | static inline void omap_init_rng(void) {} | ||
61 | #endif | ||
62 | |||
63 | /* | ||
64 | * This gets called after board-specific INIT_MACHINE, and initializes most | ||
65 | * on-chip peripherals accessible on this board (except for few like USB): | ||
66 | * | ||
67 | * (a) Does any "standard config" pin muxing needed. Board-specific | ||
68 | * code will have muxed GPIO pins and done "nonstandard" setup; | ||
69 | * that code could live in the boot loader. | ||
70 | * (b) Populating board-specific platform_data with the data drivers | ||
71 | * rely on to handle wiring variations. | ||
72 | * (c) Creating platform devices as meaningful on this board and | ||
73 | * with this kernel configuration. | ||
74 | * | ||
75 | * Claiming GPIOs, and setting their direction and initial values, is the | ||
76 | * responsibility of the device drivers. So is responding to probe(). | ||
77 | * | ||
78 | * Board-specific knowledge like creating devices or pin setup is to be | ||
79 | * kept out of drivers as much as possible. In particular, pin setup | ||
80 | * may be handled by the boot loader, and drivers should expect it will | ||
81 | * normally have been done by the time they're probed. | ||
82 | */ | ||
83 | static int __init omap_init_devices(void) | ||
84 | { | ||
85 | /* please keep these calls, and their implementations above, | ||
86 | * in alphabetical order so they're easier to sort through. | ||
87 | */ | ||
88 | omap_init_rng(); | ||
89 | return 0; | ||
90 | } | ||
91 | arch_initcall(omap_init_devices); | ||