diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2012-09-06 22:50:02 -0400 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2012-09-13 14:13:08 -0400 |
commit | e63770acb3c1e7334885ed4673aed1375f93484a (patch) | |
tree | 519dd0030e336677f3ff2528c4f4340b806b891c /arch/arm/mach-msm/board-msm7x27.c | |
parent | 07901bb0379f146863e00fe09200502206e225f3 (diff) |
ARM: msm: Remove uncompiled board-msm7x27
This board file has never been compiled. Let's just remove it
along with the one Kconfig reference to it in io.c.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/board-msm7x27.c')
-rw-r--r-- | arch/arm/mach-msm/board-msm7x27.c | 170 |
1 files changed, 0 insertions, 170 deletions
diff --git a/arch/arm/mach-msm/board-msm7x27.c b/arch/arm/mach-msm/board-msm7x27.c deleted file mode 100644 index 451ab1d43c92..000000000000 --- a/arch/arm/mach-msm/board-msm7x27.c +++ /dev/null | |||
@@ -1,170 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007 Google, Inc. | ||
3 | * Copyright (c) 2008-2009, Code Aurora Forum. All rights reserved. | ||
4 | * Author: Brian Swetland <swetland@google.com> | ||
5 | * | ||
6 | * This software is licensed under the terms of the GNU General Public | ||
7 | * License version 2, as published by the Free Software Foundation, and | ||
8 | * may be copied, distributed, and modified under those terms. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | */ | ||
16 | #include <linux/gpio.h> | ||
17 | #include <linux/kernel.h> | ||
18 | #include <linux/init.h> | ||
19 | #include <linux/platform_device.h> | ||
20 | #include <linux/input.h> | ||
21 | #include <linux/io.h> | ||
22 | #include <linux/delay.h> | ||
23 | #include <linux/power_supply.h> | ||
24 | |||
25 | #include <mach/hardware.h> | ||
26 | #include <asm/mach-types.h> | ||
27 | #include <asm/mach/arch.h> | ||
28 | #include <asm/mach/map.h> | ||
29 | #include <asm/mach/flash.h> | ||
30 | #include <asm/setup.h> | ||
31 | #ifdef CONFIG_CACHE_L2X0 | ||
32 | #include <asm/hardware/cache-l2x0.h> | ||
33 | #endif | ||
34 | |||
35 | #include <mach/vreg.h> | ||
36 | #include <mach/mpp.h> | ||
37 | #include <mach/board.h> | ||
38 | #include <mach/msm_iomap.h> | ||
39 | |||
40 | #include <linux/mtd/nand.h> | ||
41 | #include <linux/mtd/partitions.h> | ||
42 | |||
43 | #include "devices.h" | ||
44 | #include "socinfo.h" | ||
45 | #include "clock.h" | ||
46 | |||
47 | static struct resource smc91x_resources[] = { | ||
48 | [0] = { | ||
49 | .start = 0x9C004300, | ||
50 | .end = 0x9C0043ff, | ||
51 | .flags = IORESOURCE_MEM, | ||
52 | }, | ||
53 | [1] = { | ||
54 | .start = MSM_GPIO_TO_INT(132), | ||
55 | .end = MSM_GPIO_TO_INT(132), | ||
56 | .flags = IORESOURCE_IRQ, | ||
57 | }, | ||
58 | }; | ||
59 | |||
60 | static struct platform_device smc91x_device = { | ||
61 | .name = "smc91x", | ||
62 | .id = 0, | ||
63 | .num_resources = ARRAY_SIZE(smc91x_resources), | ||
64 | .resource = smc91x_resources, | ||
65 | }; | ||
66 | |||
67 | static struct platform_device *devices[] __initdata = { | ||
68 | &msm_device_uart3, | ||
69 | &msm_device_smd, | ||
70 | &msm_device_dmov, | ||
71 | &msm_device_nand, | ||
72 | &smc91x_device, | ||
73 | }; | ||
74 | |||
75 | extern struct sys_timer msm_timer; | ||
76 | |||
77 | static void __init msm7x2x_init_irq(void) | ||
78 | { | ||
79 | msm_init_irq(); | ||
80 | } | ||
81 | |||
82 | static void __init msm7x2x_init(void) | ||
83 | { | ||
84 | if (socinfo_init() < 0) | ||
85 | BUG(); | ||
86 | |||
87 | if (machine_is_msm7x25_ffa() || machine_is_msm7x27_ffa()) { | ||
88 | smc91x_resources[0].start = 0x98000300; | ||
89 | smc91x_resources[0].end = 0x980003ff; | ||
90 | smc91x_resources[1].start = MSM_GPIO_TO_INT(85); | ||
91 | smc91x_resources[1].end = MSM_GPIO_TO_INT(85); | ||
92 | if (gpio_tlmm_config(GPIO_CFG(85, 0, | ||
93 | GPIO_INPUT, | ||
94 | GPIO_PULL_DOWN, | ||
95 | GPIO_2MA), | ||
96 | GPIO_ENABLE)) { | ||
97 | printk(KERN_ERR | ||
98 | "%s: Err: Config GPIO-85 INT\n", | ||
99 | __func__); | ||
100 | } | ||
101 | } | ||
102 | |||
103 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
104 | } | ||
105 | |||
106 | static void __init msm7x2x_map_io(void) | ||
107 | { | ||
108 | msm_map_common_io(); | ||
109 | /* Technically dependent on the SoC but using machine_is | ||
110 | * macros since socinfo is not available this early and there | ||
111 | * are plans to restructure the code which will eliminate the | ||
112 | * need for socinfo. | ||
113 | */ | ||
114 | if (machine_is_msm7x27_surf() || machine_is_msm7x27_ffa()) | ||
115 | msm_clock_init(msm_clocks_7x27, msm_num_clocks_7x27); | ||
116 | |||
117 | if (machine_is_msm7x25_surf() || machine_is_msm7x25_ffa()) | ||
118 | msm_clock_init(msm_clocks_7x25, msm_num_clocks_7x25); | ||
119 | |||
120 | #ifdef CONFIG_CACHE_L2X0 | ||
121 | if (machine_is_msm7x27_surf() || machine_is_msm7x27_ffa()) { | ||
122 | /* 7x27 has 256KB L2 cache: | ||
123 | 64Kb/Way and 4-Way Associativity; | ||
124 | R/W latency: 3 cycles; | ||
125 | evmon/parity/share disabled. */ | ||
126 | l2x0_init(MSM_L2CC_BASE, 0x00068012, 0xfe000000); | ||
127 | } | ||
128 | #endif | ||
129 | } | ||
130 | |||
131 | static void __init msm7x2x_init_late(void) | ||
132 | { | ||
133 | smd_debugfs_init(); | ||
134 | } | ||
135 | |||
136 | MACHINE_START(MSM7X27_SURF, "QCT MSM7x27 SURF") | ||
137 | .atag_offset = 0x100, | ||
138 | .map_io = msm7x2x_map_io, | ||
139 | .init_irq = msm7x2x_init_irq, | ||
140 | .init_machine = msm7x2x_init, | ||
141 | .init_late = msm7x2x_init_late, | ||
142 | .timer = &msm_timer, | ||
143 | MACHINE_END | ||
144 | |||
145 | MACHINE_START(MSM7X27_FFA, "QCT MSM7x27 FFA") | ||
146 | .atag_offset = 0x100, | ||
147 | .map_io = msm7x2x_map_io, | ||
148 | .init_irq = msm7x2x_init_irq, | ||
149 | .init_machine = msm7x2x_init, | ||
150 | .init_late = msm7x2x_init_late, | ||
151 | .timer = &msm_timer, | ||
152 | MACHINE_END | ||
153 | |||
154 | MACHINE_START(MSM7X25_SURF, "QCT MSM7x25 SURF") | ||
155 | .atag_offset = 0x100, | ||
156 | .map_io = msm7x2x_map_io, | ||
157 | .init_irq = msm7x2x_init_irq, | ||
158 | .init_machine = msm7x2x_init, | ||
159 | .init_late = msm7x2x_init_late, | ||
160 | .timer = &msm_timer, | ||
161 | MACHINE_END | ||
162 | |||
163 | MACHINE_START(MSM7X25_FFA, "QCT MSM7x25 FFA") | ||
164 | .atag_offset = 0x100, | ||
165 | .map_io = msm7x2x_map_io, | ||
166 | .init_irq = msm7x2x_init_irq, | ||
167 | .init_machine = msm7x2x_init, | ||
168 | .init_late = msm7x2x_init_late, | ||
169 | .timer = &msm_timer, | ||
170 | MACHINE_END | ||