diff options
author | Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> | 2012-10-29 02:05:57 -0400 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2012-10-30 03:25:56 -0400 |
commit | 6a800a0bb0483097b7a5391b4e010acad8a85d4e (patch) | |
tree | a23d4f0e2ef4c94170b8c92be566a61354837c12 | |
parent | 0ce53cdc5c7e28f378e480363a0b0c2ed7e7eaf9 (diff) |
ARM: shmobile: Remove G3EVM machine support
This machine is using old CPU of shmobile (SH7367) and cannot obtain
machine, either.
Therefore, remove G3EVM support.
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | arch/arm/configs/g3evm_defconfig | 57 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/Kconfig | 7 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-g3evm.c | 343 |
4 files changed, 0 insertions, 408 deletions
diff --git a/arch/arm/configs/g3evm_defconfig b/arch/arm/configs/g3evm_defconfig deleted file mode 100644 index 4a336ab5a0c0..000000000000 --- a/arch/arm/configs/g3evm_defconfig +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | CONFIG_EXPERIMENTAL=y | ||
2 | CONFIG_SYSVIPC=y | ||
3 | CONFIG_IKCONFIG=y | ||
4 | CONFIG_IKCONFIG_PROC=y | ||
5 | CONFIG_LOG_BUF_SHIFT=16 | ||
6 | CONFIG_BLK_DEV_INITRD=y | ||
7 | CONFIG_SLAB=y | ||
8 | # CONFIG_BLK_DEV_BSG is not set | ||
9 | # CONFIG_IOSCHED_DEADLINE is not set | ||
10 | # CONFIG_IOSCHED_CFQ is not set | ||
11 | CONFIG_ARCH_SHMOBILE=y | ||
12 | CONFIG_ARCH_SH7367=y | ||
13 | CONFIG_MACH_G3EVM=y | ||
14 | CONFIG_AEABI=y | ||
15 | # CONFIG_OABI_COMPAT is not set | ||
16 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
17 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
18 | CONFIG_CMDLINE="console=ttySC1,115200 earlyprintk=sh-sci.1,115200" | ||
19 | CONFIG_KEXEC=y | ||
20 | CONFIG_PM=y | ||
21 | # CONFIG_SUSPEND is not set | ||
22 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
23 | # CONFIG_FIRMWARE_IN_KERNEL is not set | ||
24 | CONFIG_MTD=y | ||
25 | CONFIG_MTD_CONCAT=y | ||
26 | CONFIG_MTD_PARTITIONS=y | ||
27 | CONFIG_MTD_CHAR=y | ||
28 | CONFIG_MTD_BLOCK=y | ||
29 | CONFIG_MTD_CFI=y | ||
30 | CONFIG_MTD_CFI_INTELEXT=y | ||
31 | CONFIG_MTD_PHYSMAP=y | ||
32 | CONFIG_MTD_NAND=y | ||
33 | # CONFIG_BLK_DEV is not set | ||
34 | # CONFIG_MISC_DEVICES is not set | ||
35 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
36 | # CONFIG_INPUT_KEYBOARD is not set | ||
37 | # CONFIG_INPUT_MOUSE is not set | ||
38 | # CONFIG_SERIO is not set | ||
39 | CONFIG_SERIAL_SH_SCI=y | ||
40 | CONFIG_SERIAL_SH_SCI_NR_UARTS=8 | ||
41 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | ||
42 | # CONFIG_LEGACY_PTYS is not set | ||
43 | # CONFIG_HW_RANDOM is not set | ||
44 | # CONFIG_HWMON is not set | ||
45 | # CONFIG_VGA_CONSOLE is not set | ||
46 | # CONFIG_HID_SUPPORT is not set | ||
47 | # CONFIG_USB_SUPPORT is not set | ||
48 | # CONFIG_DNOTIFY is not set | ||
49 | # CONFIG_INOTIFY_USER is not set | ||
50 | CONFIG_TMPFS=y | ||
51 | # CONFIG_MISC_FILESYSTEMS is not set | ||
52 | CONFIG_MAGIC_SYSRQ=y | ||
53 | CONFIG_DEBUG_KERNEL=y | ||
54 | # CONFIG_DETECT_SOFTLOCKUP is not set | ||
55 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
56 | # CONFIG_FTRACE is not set | ||
57 | # CONFIG_CRC32 is not set | ||
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 0750d9c7f00d..73c20213f0cd 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig | |||
@@ -50,11 +50,6 @@ config ARCH_EMEV2 | |||
50 | 50 | ||
51 | comment "SH-Mobile Board Type" | 51 | comment "SH-Mobile Board Type" |
52 | 52 | ||
53 | config MACH_G3EVM | ||
54 | bool "G3EVM board" | ||
55 | depends on ARCH_SH7367 | ||
56 | select ARCH_REQUIRE_GPIOLIB | ||
57 | |||
58 | config MACH_G4EVM | 53 | config MACH_G4EVM |
59 | bool "G4EVM board" | 54 | bool "G4EVM board" |
60 | depends on ARCH_SH7377 | 55 | depends on ARCH_SH7377 |
@@ -147,7 +142,6 @@ menu "Memory configuration" | |||
147 | 142 | ||
148 | config MEMORY_START | 143 | config MEMORY_START |
149 | hex "Physical memory start address" | 144 | hex "Physical memory start address" |
150 | default "0x50000000" if MACH_G3EVM | ||
151 | default "0x40000000" if MACH_G4EVM || MACH_AP4EVB || MACH_AG5EVM || \ | 145 | default "0x40000000" if MACH_G4EVM || MACH_AP4EVB || MACH_AG5EVM || \ |
152 | MACH_MACKEREL || MACH_BONITO || \ | 146 | MACH_MACKEREL || MACH_BONITO || \ |
153 | MACH_ARMADILLO800EVA | 147 | MACH_ARMADILLO800EVA |
@@ -160,7 +154,6 @@ config MEMORY_START | |||
160 | 154 | ||
161 | config MEMORY_SIZE | 155 | config MEMORY_SIZE |
162 | hex "Physical memory size" | 156 | hex "Physical memory size" |
163 | default "0x08000000" if MACH_G3EVM | ||
164 | default "0x08000000" if MACH_G4EVM | 157 | default "0x08000000" if MACH_G4EVM |
165 | default "0x20000000" if MACH_AG5EVM || MACH_BONITO || \ | 158 | default "0x20000000" if MACH_AG5EVM || MACH_BONITO || \ |
166 | MACH_ARMADILLO800EVA | 159 | MACH_ARMADILLO800EVA |
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index fe2c97c179d1..30a6c83df455 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile | |||
@@ -45,7 +45,6 @@ obj-$(CONFIG_ARCH_R8A7740) += pm-r8a7740.o | |||
45 | obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o | 45 | obj-$(CONFIG_ARCH_R8A7779) += pm-r8a7779.o |
46 | 46 | ||
47 | # Board objects | 47 | # Board objects |
48 | obj-$(CONFIG_MACH_G3EVM) += board-g3evm.o | ||
49 | obj-$(CONFIG_MACH_G4EVM) += board-g4evm.o | 48 | obj-$(CONFIG_MACH_G4EVM) += board-g4evm.o |
50 | obj-$(CONFIG_MACH_AP4EVB) += board-ap4evb.o | 49 | obj-$(CONFIG_MACH_AP4EVB) += board-ap4evb.o |
51 | obj-$(CONFIG_MACH_AG5EVM) += board-ag5evm.o | 50 | obj-$(CONFIG_MACH_AG5EVM) += board-ag5evm.o |
diff --git a/arch/arm/mach-shmobile/board-g3evm.c b/arch/arm/mach-shmobile/board-g3evm.c deleted file mode 100644 index b179d4c213bb..000000000000 --- a/arch/arm/mach-shmobile/board-g3evm.c +++ /dev/null | |||
@@ -1,343 +0,0 @@ | |||
1 | /* | ||
2 | * G3EVM board support | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * Copyright (C) 2008 Yoshihiro Shimoda | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; version 2 of the License. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | #include <linux/kernel.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/irq.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/delay.h> | ||
26 | #include <linux/mtd/mtd.h> | ||
27 | #include <linux/mtd/partitions.h> | ||
28 | #include <linux/mtd/physmap.h> | ||
29 | #include <linux/mtd/sh_flctl.h> | ||
30 | #include <linux/usb/r8a66597.h> | ||
31 | #include <linux/io.h> | ||
32 | #include <linux/gpio.h> | ||
33 | #include <linux/input.h> | ||
34 | #include <linux/input/sh_keysc.h> | ||
35 | #include <linux/dma-mapping.h> | ||
36 | #include <mach/irqs.h> | ||
37 | #include <mach/sh7367.h> | ||
38 | #include <mach/common.h> | ||
39 | #include <asm/mach-types.h> | ||
40 | #include <asm/mach/arch.h> | ||
41 | |||
42 | /* | ||
43 | * IrDA | ||
44 | * | ||
45 | * S67: 5bit : ON power | ||
46 | * : 6bit : ON remote control | ||
47 | * OFF IrDA | ||
48 | */ | ||
49 | |||
50 | static struct mtd_partition nor_flash_partitions[] = { | ||
51 | { | ||
52 | .name = "loader", | ||
53 | .offset = 0x00000000, | ||
54 | .size = 512 * 1024, | ||
55 | }, | ||
56 | { | ||
57 | .name = "bootenv", | ||
58 | .offset = MTDPART_OFS_APPEND, | ||
59 | .size = 512 * 1024, | ||
60 | }, | ||
61 | { | ||
62 | .name = "kernel_ro", | ||
63 | .offset = MTDPART_OFS_APPEND, | ||
64 | .size = 8 * 1024 * 1024, | ||
65 | .mask_flags = MTD_WRITEABLE, | ||
66 | }, | ||
67 | { | ||
68 | .name = "kernel", | ||
69 | .offset = MTDPART_OFS_APPEND, | ||
70 | .size = 8 * 1024 * 1024, | ||
71 | }, | ||
72 | { | ||
73 | .name = "data", | ||
74 | .offset = MTDPART_OFS_APPEND, | ||
75 | .size = MTDPART_SIZ_FULL, | ||
76 | }, | ||
77 | }; | ||
78 | |||
79 | static struct physmap_flash_data nor_flash_data = { | ||
80 | .width = 2, | ||
81 | .parts = nor_flash_partitions, | ||
82 | .nr_parts = ARRAY_SIZE(nor_flash_partitions), | ||
83 | }; | ||
84 | |||
85 | static struct resource nor_flash_resources[] = { | ||
86 | [0] = { | ||
87 | .start = 0x00000000, | ||
88 | .end = 0x08000000 - 1, | ||
89 | .flags = IORESOURCE_MEM, | ||
90 | } | ||
91 | }; | ||
92 | |||
93 | static struct platform_device nor_flash_device = { | ||
94 | .name = "physmap-flash", | ||
95 | .dev = { | ||
96 | .platform_data = &nor_flash_data, | ||
97 | }, | ||
98 | .num_resources = ARRAY_SIZE(nor_flash_resources), | ||
99 | .resource = nor_flash_resources, | ||
100 | }; | ||
101 | |||
102 | /* USBHS */ | ||
103 | static void usb_host_port_power(int port, int power) | ||
104 | { | ||
105 | if (!power) /* only power-on supported for now */ | ||
106 | return; | ||
107 | |||
108 | /* set VBOUT/PWEN and EXTLP0 in DVSTCTR */ | ||
109 | __raw_writew(__raw_readw(IOMEM(0xe6890008)) | 0x600, IOMEM(0xe6890008)); | ||
110 | } | ||
111 | |||
112 | static struct r8a66597_platdata usb_host_data = { | ||
113 | .on_chip = 1, | ||
114 | .port_power = usb_host_port_power, | ||
115 | }; | ||
116 | |||
117 | static struct resource usb_host_resources[] = { | ||
118 | [0] = { | ||
119 | .name = "USBHS", | ||
120 | .start = 0xe6890000, | ||
121 | .end = 0xe68900e5, | ||
122 | .flags = IORESOURCE_MEM, | ||
123 | }, | ||
124 | [1] = { | ||
125 | .start = evt2irq(0xa20), /* USBHS_USHI0 */ | ||
126 | .flags = IORESOURCE_IRQ, | ||
127 | }, | ||
128 | }; | ||
129 | |||
130 | static struct platform_device usb_host_device = { | ||
131 | .name = "r8a66597_hcd", | ||
132 | .id = 0, | ||
133 | .dev = { | ||
134 | .platform_data = &usb_host_data, | ||
135 | .dma_mask = NULL, | ||
136 | .coherent_dma_mask = 0xffffffff, | ||
137 | }, | ||
138 | .num_resources = ARRAY_SIZE(usb_host_resources), | ||
139 | .resource = usb_host_resources, | ||
140 | }; | ||
141 | |||
142 | /* KEYSC */ | ||
143 | static struct sh_keysc_info keysc_info = { | ||
144 | .mode = SH_KEYSC_MODE_5, | ||
145 | .scan_timing = 3, | ||
146 | .delay = 100, | ||
147 | .keycodes = { | ||
148 | KEY_A, KEY_B, KEY_C, KEY_D, KEY_E, KEY_F, KEY_G, | ||
149 | KEY_H, KEY_I, KEY_J, KEY_K, KEY_L, KEY_M, KEY_N, | ||
150 | KEY_O, KEY_P, KEY_Q, KEY_R, KEY_S, KEY_T, KEY_U, | ||
151 | KEY_V, KEY_W, KEY_X, KEY_Y, KEY_Z, KEY_HOME, KEY_SLEEP, | ||
152 | KEY_WAKEUP, KEY_COFFEE, KEY_0, KEY_1, KEY_2, KEY_3, KEY_4, | ||
153 | KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, KEY_STOP, KEY_COMPUTER, | ||
154 | }, | ||
155 | }; | ||
156 | |||
157 | static struct resource keysc_resources[] = { | ||
158 | [0] = { | ||
159 | .name = "KEYSC", | ||
160 | .start = 0xe61b0000, | ||
161 | .end = 0xe61b000f, | ||
162 | .flags = IORESOURCE_MEM, | ||
163 | }, | ||
164 | [1] = { | ||
165 | .start = evt2irq(0xbe0), /* KEYSC_KEY */ | ||
166 | .flags = IORESOURCE_IRQ, | ||
167 | }, | ||
168 | }; | ||
169 | |||
170 | static struct platform_device keysc_device = { | ||
171 | .name = "sh_keysc", | ||
172 | .num_resources = ARRAY_SIZE(keysc_resources), | ||
173 | .resource = keysc_resources, | ||
174 | .dev = { | ||
175 | .platform_data = &keysc_info, | ||
176 | }, | ||
177 | }; | ||
178 | |||
179 | static struct mtd_partition nand_partition_info[] = { | ||
180 | { | ||
181 | .name = "system", | ||
182 | .offset = 0, | ||
183 | .size = 64 * 1024 * 1024, | ||
184 | }, | ||
185 | { | ||
186 | .name = "userdata", | ||
187 | .offset = MTDPART_OFS_APPEND, | ||
188 | .size = 128 * 1024 * 1024, | ||
189 | }, | ||
190 | { | ||
191 | .name = "cache", | ||
192 | .offset = MTDPART_OFS_APPEND, | ||
193 | .size = 64 * 1024 * 1024, | ||
194 | }, | ||
195 | }; | ||
196 | |||
197 | static struct resource nand_flash_resources[] = { | ||
198 | [0] = { | ||
199 | .start = 0xe6a30000, | ||
200 | .end = 0xe6a3009b, | ||
201 | .flags = IORESOURCE_MEM, | ||
202 | } | ||
203 | }; | ||
204 | |||
205 | static struct sh_flctl_platform_data nand_flash_data = { | ||
206 | .parts = nand_partition_info, | ||
207 | .nr_parts = ARRAY_SIZE(nand_partition_info), | ||
208 | .flcmncr_val = QTSEL_E | FCKSEL_E | TYPESEL_SET | NANWF_E | ||
209 | | SHBUSSEL | SEL_16BIT, | ||
210 | }; | ||
211 | |||
212 | static struct platform_device nand_flash_device = { | ||
213 | .name = "sh_flctl", | ||
214 | .resource = nand_flash_resources, | ||
215 | .num_resources = ARRAY_SIZE(nand_flash_resources), | ||
216 | .dev = { | ||
217 | .platform_data = &nand_flash_data, | ||
218 | }, | ||
219 | }; | ||
220 | |||
221 | static struct resource irda_resources[] = { | ||
222 | [0] = { | ||
223 | .start = 0xE6D00000, | ||
224 | .end = 0xE6D01FD4 - 1, | ||
225 | .flags = IORESOURCE_MEM, | ||
226 | }, | ||
227 | [1] = { | ||
228 | .start = evt2irq(0x480), /* IRDA */ | ||
229 | .flags = IORESOURCE_IRQ, | ||
230 | }, | ||
231 | }; | ||
232 | |||
233 | static struct platform_device irda_device = { | ||
234 | .name = "sh_irda", | ||
235 | .id = -1, | ||
236 | .resource = irda_resources, | ||
237 | .num_resources = ARRAY_SIZE(irda_resources), | ||
238 | }; | ||
239 | |||
240 | static struct platform_device *g3evm_devices[] __initdata = { | ||
241 | &nor_flash_device, | ||
242 | &usb_host_device, | ||
243 | &keysc_device, | ||
244 | &nand_flash_device, | ||
245 | &irda_device, | ||
246 | }; | ||
247 | |||
248 | static void __init g3evm_init(void) | ||
249 | { | ||
250 | sh7367_pinmux_init(); | ||
251 | |||
252 | /* Lit DS4 LED */ | ||
253 | gpio_request(GPIO_PORT22, NULL); | ||
254 | gpio_direction_output(GPIO_PORT22, 1); | ||
255 | gpio_export(GPIO_PORT22, 0); | ||
256 | |||
257 | /* Lit DS8 LED */ | ||
258 | gpio_request(GPIO_PORT23, NULL); | ||
259 | gpio_direction_output(GPIO_PORT23, 1); | ||
260 | gpio_export(GPIO_PORT23, 0); | ||
261 | |||
262 | /* Lit DS3 LED */ | ||
263 | gpio_request(GPIO_PORT24, NULL); | ||
264 | gpio_direction_output(GPIO_PORT24, 1); | ||
265 | gpio_export(GPIO_PORT24, 0); | ||
266 | |||
267 | /* SCIFA1 */ | ||
268 | gpio_request(GPIO_FN_SCIFA1_TXD, NULL); | ||
269 | gpio_request(GPIO_FN_SCIFA1_RXD, NULL); | ||
270 | gpio_request(GPIO_FN_SCIFA1_CTS, NULL); | ||
271 | gpio_request(GPIO_FN_SCIFA1_RTS, NULL); | ||
272 | |||
273 | /* USBHS */ | ||
274 | gpio_request(GPIO_FN_VBUS0, NULL); | ||
275 | gpio_request(GPIO_FN_PWEN, NULL); | ||
276 | gpio_request(GPIO_FN_OVCN, NULL); | ||
277 | gpio_request(GPIO_FN_OVCN2, NULL); | ||
278 | gpio_request(GPIO_FN_EXTLP, NULL); | ||
279 | gpio_request(GPIO_FN_IDIN, NULL); | ||
280 | |||
281 | /* setup USB phy */ | ||
282 | __raw_writew(0x0300, IOMEM(0xe605810a)); /* USBCR1 */ | ||
283 | __raw_writew(0x00e0, IOMEM(0xe60581c0)); /* CPFCH */ | ||
284 | __raw_writew(0x6010, IOMEM(0xe60581c6)); /* CGPOSR */ | ||
285 | __raw_writew(0x8a0a, IOMEM(0xe605810c)); /* USBCR2 */ | ||
286 | |||
287 | /* KEYSC @ CN7 */ | ||
288 | gpio_request(GPIO_FN_PORT42_KEYOUT0, NULL); | ||
289 | gpio_request(GPIO_FN_PORT43_KEYOUT1, NULL); | ||
290 | gpio_request(GPIO_FN_PORT44_KEYOUT2, NULL); | ||
291 | gpio_request(GPIO_FN_PORT45_KEYOUT3, NULL); | ||
292 | gpio_request(GPIO_FN_PORT46_KEYOUT4, NULL); | ||
293 | gpio_request(GPIO_FN_PORT47_KEYOUT5, NULL); | ||
294 | gpio_request(GPIO_FN_PORT48_KEYIN0_PU, NULL); | ||
295 | gpio_request(GPIO_FN_PORT49_KEYIN1_PU, NULL); | ||
296 | gpio_request(GPIO_FN_PORT50_KEYIN2_PU, NULL); | ||
297 | gpio_request(GPIO_FN_PORT55_KEYIN3_PU, NULL); | ||
298 | gpio_request(GPIO_FN_PORT56_KEYIN4_PU, NULL); | ||
299 | gpio_request(GPIO_FN_PORT57_KEYIN5_PU, NULL); | ||
300 | gpio_request(GPIO_FN_PORT58_KEYIN6_PU, NULL); | ||
301 | |||
302 | /* FLCTL */ | ||
303 | gpio_request(GPIO_FN_FCE0, NULL); | ||
304 | gpio_request(GPIO_FN_D0_ED0_NAF0, NULL); | ||
305 | gpio_request(GPIO_FN_D1_ED1_NAF1, NULL); | ||
306 | gpio_request(GPIO_FN_D2_ED2_NAF2, NULL); | ||
307 | gpio_request(GPIO_FN_D3_ED3_NAF3, NULL); | ||
308 | gpio_request(GPIO_FN_D4_ED4_NAF4, NULL); | ||
309 | gpio_request(GPIO_FN_D5_ED5_NAF5, NULL); | ||
310 | gpio_request(GPIO_FN_D6_ED6_NAF6, NULL); | ||
311 | gpio_request(GPIO_FN_D7_ED7_NAF7, NULL); | ||
312 | gpio_request(GPIO_FN_D8_ED8_NAF8, NULL); | ||
313 | gpio_request(GPIO_FN_D9_ED9_NAF9, NULL); | ||
314 | gpio_request(GPIO_FN_D10_ED10_NAF10, NULL); | ||
315 | gpio_request(GPIO_FN_D11_ED11_NAF11, NULL); | ||
316 | gpio_request(GPIO_FN_D12_ED12_NAF12, NULL); | ||
317 | gpio_request(GPIO_FN_D13_ED13_NAF13, NULL); | ||
318 | gpio_request(GPIO_FN_D14_ED14_NAF14, NULL); | ||
319 | gpio_request(GPIO_FN_D15_ED15_NAF15, NULL); | ||
320 | gpio_request(GPIO_FN_WE0_XWR0_FWE, NULL); | ||
321 | gpio_request(GPIO_FN_FRB, NULL); | ||
322 | /* FOE, FCDE, FSC on dedicated pins */ | ||
323 | __raw_writel(__raw_readl(IOMEM(0xe6158048)) & ~(1 << 15), IOMEM(0xe6158048)); | ||
324 | |||
325 | /* IrDA */ | ||
326 | gpio_request(GPIO_FN_IRDA_OUT, NULL); | ||
327 | gpio_request(GPIO_FN_IRDA_IN, NULL); | ||
328 | gpio_request(GPIO_FN_IRDA_FIRSEL, NULL); | ||
329 | |||
330 | sh7367_add_standard_devices(); | ||
331 | |||
332 | platform_add_devices(g3evm_devices, ARRAY_SIZE(g3evm_devices)); | ||
333 | } | ||
334 | |||
335 | MACHINE_START(G3EVM, "g3evm") | ||
336 | .map_io = sh7367_map_io, | ||
337 | .init_early = sh7367_add_early_devices, | ||
338 | .init_irq = sh7367_init_irq, | ||
339 | .handle_irq = shmobile_handle_irq_intc, | ||
340 | .init_machine = g3evm_init, | ||
341 | .init_late = shmobile_init_late, | ||
342 | .timer = &shmobile_timer, | ||
343 | MACHINE_END | ||