blob: 61c067294660f41d36dad57557459f30471a1701 [file] [log] [blame]
Magnus Damm28626632011-08-18 05:44:07 +00001/*
2 * kota2 board support
3 *
4 * Copyright (C) 2011 Renesas Solutions Corp.
5 * Copyright (C) 2011 Magnus Damm
6 * Copyright (C) 2010 Takashi Yoshii <yoshii.takashi.zj@renesas.com>
7 * Copyright (C) 2009 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; version 2 of the License.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23#include <linux/kernel.h>
24#include <linux/init.h>
25#include <linux/interrupt.h>
26#include <linux/irq.h>
27#include <linux/platform_device.h>
28#include <linux/delay.h>
29#include <linux/io.h>
30#include <linux/smsc911x.h>
31#include <linux/gpio.h>
Magnus Dammef4f9942011-08-18 05:44:16 +000032#include <linux/input.h>
33#include <linux/input/sh_keysc.h>
Magnus Damm6b7c0ea2011-08-18 05:44:25 +000034#include <linux/gpio_keys.h>
Magnus Dammae6e7082011-08-18 05:44:33 +000035#include <linux/leds.h>
Magnus Damm33661c92011-11-22 15:44:58 +090036#include <linux/platform_data/leds-renesas-tpu.h>
Magnus Damm4e927942011-08-18 05:44:42 +000037#include <linux/mmc/host.h>
38#include <linux/mmc/sh_mmcif.h>
Magnus Damm8722c992011-08-18 05:45:00 +000039#include <linux/mfd/tmio.h>
40#include <linux/mmc/sh_mobile_sdhi.h>
Magnus Damm28626632011-08-18 05:44:07 +000041#include <mach/hardware.h>
42#include <mach/sh73a0.h>
43#include <mach/common.h>
44#include <asm/mach-types.h>
45#include <asm/mach/arch.h>
Magnus Damm28626632011-08-18 05:44:07 +000046#include <asm/mach/time.h>
47#include <asm/hardware/gic.h>
48#include <asm/hardware/cache-l2x0.h>
49#include <asm/traps.h>
50
Kuninori Morimotoc5e7bcd2011-11-10 18:44:43 -080051/* SMSC 9220 */
Magnus Damm28626632011-08-18 05:44:07 +000052static struct resource smsc9220_resources[] = {
53 [0] = {
54 .start = 0x14000000, /* CS5A */
55 .end = 0x140000ff, /* A1->A7 */
56 .flags = IORESOURCE_MEM,
57 },
58 [1] = {
Magnus Damm1b6cec82011-11-22 15:15:57 +090059 .start = SH73A0_PINT0_IRQ(2), /* PINTA2 */
Magnus Damm28626632011-08-18 05:44:07 +000060 .flags = IORESOURCE_IRQ,
61 },
62};
63
64static struct smsc911x_platform_config smsc9220_platdata = {
65 .flags = SMSC911X_USE_32BIT, /* 32-bit SW on 16-bit HW bus */
66 .phy_interface = PHY_INTERFACE_MODE_MII,
67 .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
68 .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
69};
70
71static struct platform_device eth_device = {
72 .name = "smsc911x",
73 .id = 0,
74 .dev = {
75 .platform_data = &smsc9220_platdata,
76 },
77 .resource = smsc9220_resources,
78 .num_resources = ARRAY_SIZE(smsc9220_resources),
79};
80
Kuninori Morimotoc5e7bcd2011-11-10 18:44:43 -080081/* KEYSC */
Magnus Dammef4f9942011-08-18 05:44:16 +000082static struct sh_keysc_info keysc_platdata = {
83 .mode = SH_KEYSC_MODE_6,
84 .scan_timing = 3,
85 .delay = 100,
86 .keycodes = {
87 KEY_NUMERIC_STAR, KEY_NUMERIC_0, KEY_NUMERIC_POUND,
88 0, 0, 0, 0, 0,
89 KEY_NUMERIC_7, KEY_NUMERIC_8, KEY_NUMERIC_9,
90 0, KEY_DOWN, 0, 0, 0,
91 KEY_NUMERIC_4, KEY_NUMERIC_5, KEY_NUMERIC_6,
92 KEY_LEFT, KEY_ENTER, KEY_RIGHT, 0, 0,
93 KEY_NUMERIC_1, KEY_NUMERIC_2, KEY_NUMERIC_3,
94 0, KEY_UP, 0, 0, 0,
95 0, 0, 0, 0, 0, 0, 0, 0,
96 0, 0, 0, 0, 0, 0, 0, 0,
97 0, 0, 0, 0, 0, 0, 0, 0,
98 0, 0, 0, 0, 0, 0, 0, 0,
99 },
100};
101
102static struct resource keysc_resources[] = {
103 [0] = {
104 .name = "KEYSC",
105 .start = 0xe61b0000,
106 .end = 0xe61b0098 - 1,
107 .flags = IORESOURCE_MEM,
108 },
109 [1] = {
110 .start = gic_spi(71),
111 .flags = IORESOURCE_IRQ,
112 },
113};
114
115static struct platform_device keysc_device = {
116 .name = "sh_keysc",
117 .id = 0,
118 .num_resources = ARRAY_SIZE(keysc_resources),
119 .resource = keysc_resources,
120 .dev = {
121 .platform_data = &keysc_platdata,
122 },
123};
124
Kuninori Morimotoc5e7bcd2011-11-10 18:44:43 -0800125/* GPIO KEY */
Magnus Damm6b7c0ea2011-08-18 05:44:25 +0000126#define GPIO_KEY(c, g, d) { .code = c, .gpio = g, .desc = d, .active_low = 1 }
127
128static struct gpio_keys_button gpio_buttons[] = {
129 GPIO_KEY(KEY_VOLUMEUP, GPIO_PORT56, "+"), /* S2: VOL+ [IRQ9] */
130 GPIO_KEY(KEY_VOLUMEDOWN, GPIO_PORT54, "-"), /* S3: VOL- [IRQ10] */
131 GPIO_KEY(KEY_MENU, GPIO_PORT27, "Menu"), /* S4: MENU [IRQ30] */
132 GPIO_KEY(KEY_HOMEPAGE, GPIO_PORT26, "Home"), /* S5: HOME [IRQ31] */
133 GPIO_KEY(KEY_BACK, GPIO_PORT11, "Back"), /* S6: BACK [IRQ0] */
134 GPIO_KEY(KEY_PHONE, GPIO_PORT238, "Tel"), /* S7: TEL [IRQ11] */
135 GPIO_KEY(KEY_POWER, GPIO_PORT239, "C1"), /* S8: CAM [IRQ13] */
136 GPIO_KEY(KEY_MAIL, GPIO_PORT224, "Mail"), /* S9: MAIL [IRQ3] */
137 /* Omitted button "C3?": GPIO_PORT223 - S10: CUST [IRQ8] */
138 GPIO_KEY(KEY_CAMERA, GPIO_PORT164, "C2"), /* S11: CAM_HALF [IRQ25] */
139 /* Omitted button "?": GPIO_PORT152 - S12: CAM_FULL [No IRQ] */
140};
141
142static struct gpio_keys_platform_data gpio_key_info = {
143 .buttons = gpio_buttons,
144 .nbuttons = ARRAY_SIZE(gpio_buttons),
Magnus Damm6b7c0ea2011-08-18 05:44:25 +0000145};
146
147static struct platform_device gpio_keys_device = {
Magnus Damm2fde1092012-01-17 20:14:07 +0900148 .name = "gpio-keys",
Magnus Damm6b7c0ea2011-08-18 05:44:25 +0000149 .id = -1,
150 .dev = {
151 .platform_data = &gpio_key_info,
152 },
153};
154
Kuninori Morimotoc5e7bcd2011-11-10 18:44:43 -0800155/* GPIO LED */
Magnus Dammae6e7082011-08-18 05:44:33 +0000156#define GPIO_LED(n, g) { .name = n, .gpio = g }
157
158static struct gpio_led gpio_leds[] = {
Magnus Dammae6e7082011-08-18 05:44:33 +0000159 GPIO_LED("G", GPIO_PORT20), /* PORT20 [GPO0] -> LED7 -> "G" */
160 GPIO_LED("H", GPIO_PORT21), /* PORT21 [GPO1] -> LED8 -> "H" */
161 GPIO_LED("J", GPIO_PORT22), /* PORT22 [GPO2] -> LED9 -> "J" */
162};
163
164static struct gpio_led_platform_data gpio_leds_info = {
165 .leds = gpio_leds,
166 .num_leds = ARRAY_SIZE(gpio_leds),
167};
168
169static struct platform_device gpio_leds_device = {
170 .name = "leds-gpio",
171 .id = -1,
172 .dev = {
173 .platform_data = &gpio_leds_info,
174 },
175};
176
Magnus Damm33661c92011-11-22 15:44:58 +0900177/* TPU LED */
178static struct led_renesas_tpu_config led_renesas_tpu12_pdata = {
179 .name = "V2513",
180 .pin_gpio_fn = GPIO_FN_TPU1TO2,
181 .pin_gpio = GPIO_PORT153,
182 .channel_offset = 0x90,
183 .timer_bit = 2,
184 .max_brightness = 1000,
185};
186
187static struct resource tpu12_resources[] = {
188 [0] = {
189 .name = "TPU12",
190 .start = 0xe6610090,
191 .end = 0xe66100b5,
192 .flags = IORESOURCE_MEM,
193 },
194};
195
196static struct platform_device leds_tpu12_device = {
197 .name = "leds-renesas-tpu",
198 .id = 12,
199 .dev = {
200 .platform_data = &led_renesas_tpu12_pdata,
201 },
202 .num_resources = ARRAY_SIZE(tpu12_resources),
203 .resource = tpu12_resources,
204};
205
206static struct led_renesas_tpu_config led_renesas_tpu41_pdata = {
207 .name = "V2514",
208 .pin_gpio_fn = GPIO_FN_TPU4TO1,
209 .pin_gpio = GPIO_PORT199,
210 .channel_offset = 0x50,
211 .timer_bit = 1,
212 .max_brightness = 1000,
213};
214
215static struct resource tpu41_resources[] = {
216 [0] = {
217 .name = "TPU41",
218 .start = 0xe6640050,
219 .end = 0xe6640075,
220 .flags = IORESOURCE_MEM,
221 },
222};
223
224static struct platform_device leds_tpu41_device = {
225 .name = "leds-renesas-tpu",
226 .id = 41,
227 .dev = {
228 .platform_data = &led_renesas_tpu41_pdata,
229 },
230 .num_resources = ARRAY_SIZE(tpu41_resources),
231 .resource = tpu41_resources,
232};
233
234static struct led_renesas_tpu_config led_renesas_tpu21_pdata = {
235 .name = "V2515",
236 .pin_gpio_fn = GPIO_FN_TPU2TO1,
237 .pin_gpio = GPIO_PORT197,
238 .channel_offset = 0x50,
239 .timer_bit = 1,
240 .max_brightness = 1000,
241};
242
243static struct resource tpu21_resources[] = {
244 [0] = {
245 .name = "TPU21",
246 .start = 0xe6620050,
247 .end = 0xe6620075,
248 .flags = IORESOURCE_MEM,
249 },
250};
251
252static struct platform_device leds_tpu21_device = {
253 .name = "leds-renesas-tpu",
254 .id = 21,
255 .dev = {
256 .platform_data = &led_renesas_tpu21_pdata,
257 },
258 .num_resources = ARRAY_SIZE(tpu21_resources),
259 .resource = tpu21_resources,
260};
261
262static struct led_renesas_tpu_config led_renesas_tpu30_pdata = {
263 .name = "KEYLED",
264 .pin_gpio_fn = GPIO_FN_TPU3TO0,
265 .pin_gpio = GPIO_PORT163,
266 .channel_offset = 0x10,
267 .timer_bit = 0,
268 .max_brightness = 1000,
269};
270
271static struct resource tpu30_resources[] = {
272 [0] = {
273 .name = "TPU30",
274 .start = 0xe6630010,
275 .end = 0xe6630035,
276 .flags = IORESOURCE_MEM,
277 },
278};
279
280static struct platform_device leds_tpu30_device = {
281 .name = "leds-renesas-tpu",
282 .id = 30,
283 .dev = {
284 .platform_data = &led_renesas_tpu30_pdata,
285 },
286 .num_resources = ARRAY_SIZE(tpu30_resources),
287 .resource = tpu30_resources,
288};
289
Kuninori Morimotoc5e7bcd2011-11-10 18:44:43 -0800290/* MMCIF */
Magnus Damm4e927942011-08-18 05:44:42 +0000291static struct resource mmcif_resources[] = {
292 [0] = {
293 .name = "MMCIF",
294 .start = 0xe6bd0000,
295 .end = 0xe6bd00ff,
296 .flags = IORESOURCE_MEM,
297 },
298 [1] = {
299 .start = gic_spi(140),
300 .flags = IORESOURCE_IRQ,
301 },
302 [2] = {
303 .start = gic_spi(141),
304 .flags = IORESOURCE_IRQ,
305 },
306};
307
308static struct sh_mmcif_plat_data mmcif_info = {
309 .ocr = MMC_VDD_165_195,
310 .caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
311};
312
313static struct platform_device mmcif_device = {
314 .name = "sh_mmcif",
315 .id = 0,
316 .dev = {
317 .platform_data = &mmcif_info,
318 },
319 .num_resources = ARRAY_SIZE(mmcif_resources),
320 .resource = mmcif_resources,
321};
322
Kuninori Morimotoc5e7bcd2011-11-10 18:44:43 -0800323/* SDHI0 */
Magnus Damm8722c992011-08-18 05:45:00 +0000324static struct sh_mobile_sdhi_info sdhi0_info = {
325 .tmio_caps = MMC_CAP_SD_HIGHSPEED,
326 .tmio_flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_HAS_IDLE_WAIT,
327};
328
329static struct resource sdhi0_resources[] = {
330 [0] = {
331 .name = "SDHI0",
332 .start = 0xee100000,
333 .end = 0xee1000ff,
334 .flags = IORESOURCE_MEM,
335 },
336 [1] = {
337 .start = gic_spi(83),
338 .flags = IORESOURCE_IRQ,
339 },
340 [2] = {
341 .start = gic_spi(84),
342 .flags = IORESOURCE_IRQ,
343 },
344 [3] = {
345 .start = gic_spi(85),
346 .flags = IORESOURCE_IRQ,
347 },
348};
349
350static struct platform_device sdhi0_device = {
351 .name = "sh_mobile_sdhi",
352 .id = 0,
353 .num_resources = ARRAY_SIZE(sdhi0_resources),
354 .resource = sdhi0_resources,
355 .dev = {
356 .platform_data = &sdhi0_info,
357 },
358};
359
Kuninori Morimotoc5e7bcd2011-11-10 18:44:43 -0800360/* SDHI1 */
Magnus Damm8722c992011-08-18 05:45:00 +0000361static struct sh_mobile_sdhi_info sdhi1_info = {
362 .tmio_caps = MMC_CAP_NONREMOVABLE | MMC_CAP_SDIO_IRQ,
363 .tmio_flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_HAS_IDLE_WAIT,
364};
365
366static struct resource sdhi1_resources[] = {
367 [0] = {
368 .name = "SDHI1",
369 .start = 0xee120000,
370 .end = 0xee1200ff,
371 .flags = IORESOURCE_MEM,
372 },
373 [1] = {
374 .start = gic_spi(87),
375 .flags = IORESOURCE_IRQ,
376 },
377 [2] = {
378 .start = gic_spi(88),
379 .flags = IORESOURCE_IRQ,
380 },
381 [3] = {
382 .start = gic_spi(89),
383 .flags = IORESOURCE_IRQ,
384 },
385};
386
387static struct platform_device sdhi1_device = {
388 .name = "sh_mobile_sdhi",
389 .id = 1,
390 .num_resources = ARRAY_SIZE(sdhi1_resources),
391 .resource = sdhi1_resources,
392 .dev = {
393 .platform_data = &sdhi1_info,
394 },
395};
396
Magnus Damm28626632011-08-18 05:44:07 +0000397static struct platform_device *kota2_devices[] __initdata = {
398 &eth_device,
Magnus Dammef4f9942011-08-18 05:44:16 +0000399 &keysc_device,
Magnus Damm6b7c0ea2011-08-18 05:44:25 +0000400 &gpio_keys_device,
Magnus Dammae6e7082011-08-18 05:44:33 +0000401 &gpio_leds_device,
Magnus Damm33661c92011-11-22 15:44:58 +0900402 &leds_tpu12_device,
403 &leds_tpu41_device,
404 &leds_tpu21_device,
405 &leds_tpu30_device,
Magnus Damm4e927942011-08-18 05:44:42 +0000406 &mmcif_device,
Magnus Damm8722c992011-08-18 05:45:00 +0000407 &sdhi0_device,
408 &sdhi1_device,
Magnus Damm28626632011-08-18 05:44:07 +0000409};
410
Magnus Damm28626632011-08-18 05:44:07 +0000411static void __init kota2_init(void)
412{
413 sh73a0_pinmux_init();
414
415 /* SCIFA2 (UART2) */
416 gpio_request(GPIO_FN_SCIFA2_TXD1, NULL);
417 gpio_request(GPIO_FN_SCIFA2_RXD1, NULL);
418 gpio_request(GPIO_FN_SCIFA2_RTS1_, NULL);
419 gpio_request(GPIO_FN_SCIFA2_CTS1_, NULL);
420
Magnus Damm9e9a8922011-08-18 05:44:51 +0000421 /* SCIFA4 (UART1) */
422 gpio_request(GPIO_FN_SCIFA4_TXD, NULL);
423 gpio_request(GPIO_FN_SCIFA4_RXD, NULL);
424 gpio_request(GPIO_FN_SCIFA4_RTS_, NULL);
425 gpio_request(GPIO_FN_SCIFA4_CTS_, NULL);
426
Magnus Damm28626632011-08-18 05:44:07 +0000427 /* SMSC911X */
428 gpio_request(GPIO_FN_D0_NAF0, NULL);
429 gpio_request(GPIO_FN_D1_NAF1, NULL);
430 gpio_request(GPIO_FN_D2_NAF2, NULL);
431 gpio_request(GPIO_FN_D3_NAF3, NULL);
432 gpio_request(GPIO_FN_D4_NAF4, NULL);
433 gpio_request(GPIO_FN_D5_NAF5, NULL);
434 gpio_request(GPIO_FN_D6_NAF6, NULL);
435 gpio_request(GPIO_FN_D7_NAF7, NULL);
436 gpio_request(GPIO_FN_D8_NAF8, NULL);
437 gpio_request(GPIO_FN_D9_NAF9, NULL);
438 gpio_request(GPIO_FN_D10_NAF10, NULL);
439 gpio_request(GPIO_FN_D11_NAF11, NULL);
440 gpio_request(GPIO_FN_D12_NAF12, NULL);
441 gpio_request(GPIO_FN_D13_NAF13, NULL);
442 gpio_request(GPIO_FN_D14_NAF14, NULL);
443 gpio_request(GPIO_FN_D15_NAF15, NULL);
444 gpio_request(GPIO_FN_CS5A_, NULL);
445 gpio_request(GPIO_FN_WE0__FWE, NULL);
446 gpio_request(GPIO_PORT144, NULL); /* PINTA2 */
447 gpio_direction_input(GPIO_PORT144);
448 gpio_request(GPIO_PORT145, NULL); /* RESET */
449 gpio_direction_output(GPIO_PORT145, 1);
450
Magnus Dammef4f9942011-08-18 05:44:16 +0000451 /* KEYSC */
452 gpio_request(GPIO_FN_KEYIN0_PU, NULL);
453 gpio_request(GPIO_FN_KEYIN1_PU, NULL);
454 gpio_request(GPIO_FN_KEYIN2_PU, NULL);
455 gpio_request(GPIO_FN_KEYIN3_PU, NULL);
456 gpio_request(GPIO_FN_KEYIN4_PU, NULL);
457 gpio_request(GPIO_FN_KEYIN5_PU, NULL);
458 gpio_request(GPIO_FN_KEYIN6_PU, NULL);
459 gpio_request(GPIO_FN_KEYIN7_PU, NULL);
460 gpio_request(GPIO_FN_KEYOUT0, NULL);
461 gpio_request(GPIO_FN_KEYOUT1, NULL);
462 gpio_request(GPIO_FN_KEYOUT2, NULL);
463 gpio_request(GPIO_FN_KEYOUT3, NULL);
464 gpio_request(GPIO_FN_KEYOUT4, NULL);
465 gpio_request(GPIO_FN_KEYOUT5, NULL);
466 gpio_request(GPIO_FN_PORT59_KEYOUT6, NULL);
467 gpio_request(GPIO_FN_PORT58_KEYOUT7, NULL);
468 gpio_request(GPIO_FN_KEYOUT8, NULL);
469
Magnus Damm4e927942011-08-18 05:44:42 +0000470 /* MMCIF */
471 gpio_request(GPIO_FN_MMCCLK0, NULL);
472 gpio_request(GPIO_FN_MMCD0_0, NULL);
473 gpio_request(GPIO_FN_MMCD0_1, NULL);
474 gpio_request(GPIO_FN_MMCD0_2, NULL);
475 gpio_request(GPIO_FN_MMCD0_3, NULL);
476 gpio_request(GPIO_FN_MMCD0_4, NULL);
477 gpio_request(GPIO_FN_MMCD0_5, NULL);
478 gpio_request(GPIO_FN_MMCD0_6, NULL);
479 gpio_request(GPIO_FN_MMCD0_7, NULL);
480 gpio_request(GPIO_FN_MMCCMD0, NULL);
481 gpio_request(GPIO_PORT208, NULL); /* Reset */
482 gpio_direction_output(GPIO_PORT208, 1);
483
Magnus Damm8722c992011-08-18 05:45:00 +0000484 /* SDHI0 (microSD) */
485 gpio_request(GPIO_FN_SDHICD0_PU, NULL);
486 gpio_request(GPIO_FN_SDHICMD0_PU, NULL);
487 gpio_request(GPIO_FN_SDHICLK0, NULL);
488 gpio_request(GPIO_FN_SDHID0_3_PU, NULL);
489 gpio_request(GPIO_FN_SDHID0_2_PU, NULL);
490 gpio_request(GPIO_FN_SDHID0_1_PU, NULL);
491 gpio_request(GPIO_FN_SDHID0_0_PU, NULL);
492
Magnus Damm9e9a8922011-08-18 05:44:51 +0000493 /* SCIFB (BT) */
494 gpio_request(GPIO_FN_PORT159_SCIFB_SCK, NULL);
495 gpio_request(GPIO_FN_PORT160_SCIFB_TXD, NULL);
496 gpio_request(GPIO_FN_PORT161_SCIFB_CTS_, NULL);
497 gpio_request(GPIO_FN_PORT162_SCIFB_RXD, NULL);
498 gpio_request(GPIO_FN_PORT163_SCIFB_RTS_, NULL);
499
Magnus Damm8722c992011-08-18 05:45:00 +0000500 /* SDHI1 (BCM4330) */
501 gpio_request(GPIO_FN_SDHICLK1, NULL);
502 gpio_request(GPIO_FN_SDHICMD1_PU, NULL);
503 gpio_request(GPIO_FN_SDHID1_3_PU, NULL);
504 gpio_request(GPIO_FN_SDHID1_2_PU, NULL);
505 gpio_request(GPIO_FN_SDHID1_1_PU, NULL);
506 gpio_request(GPIO_FN_SDHID1_0_PU, NULL);
507
Magnus Damm28626632011-08-18 05:44:07 +0000508#ifdef CONFIG_CACHE_L2X0
509 /* Early BRESP enable, Shared attribute override enable, 64K*8way */
510 l2x0_init(__io(0xf0100000), 0x40460000, 0x82000fff);
511#endif
512 sh73a0_add_standard_devices();
513 platform_add_devices(kota2_devices, ARRAY_SIZE(kota2_devices));
514}
515
Magnus Damm28626632011-08-18 05:44:07 +0000516MACHINE_START(KOTA2, "kota2")
Magnus Damm50e15c32012-02-29 21:37:27 +0900517 .map_io = sh73a0_map_io,
518 .init_early = sh73a0_add_early_devices,
Magnus Dammdcb4ea82011-11-22 15:29:54 +0900519 .nr_irqs = NR_IRQS_LEGACY,
Magnus Damm1b6cec82011-11-22 15:15:57 +0900520 .init_irq = sh73a0_init_irq,
Marc Zyngiera83d8e22011-09-06 10:23:45 +0100521 .handle_irq = gic_handle_irq,
Magnus Damm28626632011-08-18 05:44:07 +0000522 .init_machine = kota2_init,
Magnus Damm3be26fd2012-03-06 17:36:45 +0900523 .timer = &shmobile_timer,
Magnus Damm28626632011-08-18 05:44:07 +0000524MACHINE_END