blob: 30ad59f6970fadd5795559567ea8ee36ee4fdfd2 [file] [log] [blame]
Joonyoung Shim2e57da42010-05-19 23:15:32 +09001/* linux/arch/arm/mach-s5pv210/mach-goni.c
2 *
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com/
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 version 2 as
8 * published by the Free Software Foundation.
9*/
10
11#include <linux/kernel.h>
12#include <linux/types.h>
13#include <linux/init.h>
14#include <linux/serial_core.h>
Marek Szyprowski3965fde2010-07-14 19:38:18 +090015#include <linux/fb.h>
Marek Szyprowskiba149f32010-07-14 19:39:47 +090016#include <linux/i2c.h>
17#include <linux/i2c-gpio.h>
18#include <linux/mfd/max8998.h>
Marek Szyprowskie9dde6f12010-09-29 22:05:19 +090019#include <linux/regulator/fixed.h>
Marek Szyprowskiba149f32010-07-14 19:39:47 +090020#include <linux/gpio_keys.h>
21#include <linux/input.h>
22#include <linux/gpio.h>
Joonyoung Shim2e57da42010-05-19 23:15:32 +090023
24#include <asm/mach/arch.h>
25#include <asm/mach/map.h>
26#include <asm/setup.h>
27#include <asm/mach-types.h>
28
29#include <mach/map.h>
30#include <mach/regs-clock.h>
Marek Szyprowski3965fde2010-07-14 19:38:18 +090031#include <mach/regs-fb.h>
Joonyoung Shim2e57da42010-05-19 23:15:32 +090032
Marek Szyprowskiba149f32010-07-14 19:39:47 +090033#include <plat/gpio-cfg.h>
Joonyoung Shim2e57da42010-05-19 23:15:32 +090034#include <plat/regs-serial.h>
35#include <plat/s5pv210.h>
36#include <plat/devs.h>
37#include <plat/cpu.h>
Marek Szyprowski3965fde2010-07-14 19:38:18 +090038#include <plat/fb.h>
Joonyoung Shim2a555582010-09-09 08:17:43 +090039#include <plat/keypad.h>
Marek Szyprowski19b90c72010-08-05 18:00:18 +090040#include <plat/sdhci.h>
Marek Szyprowskid5889d52010-09-30 20:59:46 +090041#include <plat/clock.h>
Joonyoung Shim2e57da42010-05-19 23:15:32 +090042
43/* Following are default values for UCON, ULCON and UFCON UART registers */
Kukjin Kimc8def082010-07-21 09:19:51 +090044#define GONI_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \
Joonyoung Shim2e57da42010-05-19 23:15:32 +090045 S3C2410_UCON_RXILEVEL | \
46 S3C2410_UCON_TXIRQMODE | \
47 S3C2410_UCON_RXIRQMODE | \
48 S3C2410_UCON_RXFIFO_TOI | \
49 S3C2443_UCON_RXERR_IRQEN)
50
Kukjin Kimc8def082010-07-21 09:19:51 +090051#define GONI_ULCON_DEFAULT S3C2410_LCON_CS8
Joonyoung Shim2e57da42010-05-19 23:15:32 +090052
Kukjin Kimf2b7e3c2010-08-06 21:34:55 +090053#define GONI_UFCON_DEFAULT S3C2410_UFCON_FIFOMODE
Joonyoung Shim2e57da42010-05-19 23:15:32 +090054
55static struct s3c2410_uartcfg goni_uartcfgs[] __initdata = {
56 [0] = {
57 .hwport = 0,
58 .flags = 0,
Kukjin Kimc8def082010-07-21 09:19:51 +090059 .ucon = GONI_UCON_DEFAULT,
60 .ulcon = GONI_ULCON_DEFAULT,
Kukjin Kimf2b7e3c2010-08-06 21:34:55 +090061 .ufcon = GONI_UFCON_DEFAULT |
Joonyoung Shimbbf7b352010-06-24 19:28:55 +090062 S5PV210_UFCON_TXTRIG256 | S5PV210_UFCON_RXTRIG256,
Joonyoung Shim2e57da42010-05-19 23:15:32 +090063 },
64 [1] = {
65 .hwport = 1,
66 .flags = 0,
Kukjin Kimc8def082010-07-21 09:19:51 +090067 .ucon = GONI_UCON_DEFAULT,
68 .ulcon = GONI_ULCON_DEFAULT,
Kukjin Kimf2b7e3c2010-08-06 21:34:55 +090069 .ufcon = GONI_UFCON_DEFAULT |
Joonyoung Shimbbf7b352010-06-24 19:28:55 +090070 S5PV210_UFCON_TXTRIG64 | S5PV210_UFCON_RXTRIG64,
Joonyoung Shim2e57da42010-05-19 23:15:32 +090071 },
72 [2] = {
73 .hwport = 2,
74 .flags = 0,
Kukjin Kimc8def082010-07-21 09:19:51 +090075 .ucon = GONI_UCON_DEFAULT,
76 .ulcon = GONI_ULCON_DEFAULT,
Kukjin Kimf2b7e3c2010-08-06 21:34:55 +090077 .ufcon = GONI_UFCON_DEFAULT |
Joonyoung Shimbbf7b352010-06-24 19:28:55 +090078 S5PV210_UFCON_TXTRIG16 | S5PV210_UFCON_RXTRIG16,
Joonyoung Shim2e57da42010-05-19 23:15:32 +090079 },
80 [3] = {
81 .hwport = 3,
82 .flags = 0,
Kukjin Kimc8def082010-07-21 09:19:51 +090083 .ucon = GONI_UCON_DEFAULT,
84 .ulcon = GONI_ULCON_DEFAULT,
Kukjin Kimf2b7e3c2010-08-06 21:34:55 +090085 .ufcon = GONI_UFCON_DEFAULT |
Joonyoung Shimbbf7b352010-06-24 19:28:55 +090086 S5PV210_UFCON_TXTRIG16 | S5PV210_UFCON_RXTRIG16,
Joonyoung Shim2e57da42010-05-19 23:15:32 +090087 },
88};
89
Marek Szyprowski3965fde2010-07-14 19:38:18 +090090/* Frame Buffer */
91static struct s3c_fb_pd_win goni_fb_win0 = {
92 .win_mode = {
Marek Szyprowski3965fde2010-07-14 19:38:18 +090093 .left_margin = 16,
94 .right_margin = 16,
Marek Szyprowski9d1fc392010-09-29 21:49:17 +090095 .upper_margin = 2,
Marek Szyprowski3965fde2010-07-14 19:38:18 +090096 .lower_margin = 28,
97 .hsync_len = 2,
Marek Szyprowski9d1fc392010-09-29 21:49:17 +090098 .vsync_len = 1,
Marek Szyprowski3965fde2010-07-14 19:38:18 +090099 .xres = 480,
100 .yres = 800,
101 .refresh = 55,
102 },
103 .max_bpp = 32,
104 .default_bpp = 16,
105};
106
107static struct s3c_fb_platdata goni_lcd_pdata __initdata = {
108 .win[0] = &goni_fb_win0,
109 .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB |
110 VIDCON0_CLKSEL_LCD,
111 .vidcon1 = VIDCON1_INV_VCLK | VIDCON1_INV_VDEN
112 | VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC,
113 .setup_gpio = s5pv210_fb_gpio_setup_24bpp,
114};
115
Joonyoung Shim2a555582010-09-09 08:17:43 +0900116/* KEYPAD */
117static uint32_t keymap[] __initdata = {
118 /* KEY(row, col, keycode) */
119 KEY(0, 1, KEY_MENU), /* Send */
120 KEY(0, 2, KEY_BACK), /* End */
121 KEY(1, 1, KEY_CONFIG), /* Half shot */
122 KEY(1, 2, KEY_VOLUMEUP),
123 KEY(2, 1, KEY_CAMERA), /* Full shot */
124 KEY(2, 2, KEY_VOLUMEDOWN),
125};
126
127static struct matrix_keymap_data keymap_data __initdata = {
128 .keymap = keymap,
129 .keymap_size = ARRAY_SIZE(keymap),
130};
131
132static struct samsung_keypad_platdata keypad_data __initdata = {
133 .keymap_data = &keymap_data,
134 .rows = 3,
135 .cols = 3,
136};
137
Marek Szyprowskiba149f32010-07-14 19:39:47 +0900138/* MAX8998 regulators */
139#if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE)
140
Marek Szyprowskie9dde6f12010-09-29 22:05:19 +0900141static struct regulator_consumer_supply goni_ldo5_consumers[] = {
142 REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"),
143};
144
Marek Szyprowskiba149f32010-07-14 19:39:47 +0900145static struct regulator_init_data goni_ldo2_data = {
146 .constraints = {
147 .name = "VALIVE_1.1V",
148 .min_uV = 1100000,
149 .max_uV = 1100000,
150 .apply_uV = 1,
151 .always_on = 1,
152 .state_mem = {
153 .enabled = 1,
154 },
155 },
156};
157
158static struct regulator_init_data goni_ldo3_data = {
159 .constraints = {
160 .name = "VUSB/MIPI_1.1V",
161 .min_uV = 1100000,
162 .max_uV = 1100000,
163 .apply_uV = 1,
164 .always_on = 1,
165 },
166};
167
168static struct regulator_init_data goni_ldo4_data = {
169 .constraints = {
170 .name = "VDAC_3.3V",
171 .min_uV = 3300000,
172 .max_uV = 3300000,
173 .apply_uV = 1,
174 },
175};
176
177static struct regulator_init_data goni_ldo5_data = {
178 .constraints = {
179 .name = "VTF_2.8V",
180 .min_uV = 2800000,
181 .max_uV = 2800000,
182 .apply_uV = 1,
183 },
Marek Szyprowskie9dde6f12010-09-29 22:05:19 +0900184 .num_consumer_supplies = ARRAY_SIZE(goni_ldo5_consumers),
185 .consumer_supplies = goni_ldo5_consumers,
Marek Szyprowskiba149f32010-07-14 19:39:47 +0900186};
187
188static struct regulator_init_data goni_ldo6_data = {
189 .constraints = {
190 .name = "VCC_3.3V",
191 .min_uV = 3300000,
192 .max_uV = 3300000,
193 .apply_uV = 1,
194 },
195};
196
197static struct regulator_init_data goni_ldo7_data = {
198 .constraints = {
199 .name = "VLCD_1.8V",
200 .min_uV = 1800000,
201 .max_uV = 1800000,
202 .apply_uV = 1,
203 .always_on = 1,
204 },
205};
206
207static struct regulator_init_data goni_ldo8_data = {
208 .constraints = {
209 .name = "VUSB/VADC_3.3V",
210 .min_uV = 3300000,
211 .max_uV = 3300000,
212 .apply_uV = 1,
213 .always_on = 1,
214 },
215};
216
217static struct regulator_init_data goni_ldo9_data = {
218 .constraints = {
219 .name = "VCC/VCAM_2.8V",
220 .min_uV = 2800000,
221 .max_uV = 2800000,
222 .apply_uV = 1,
223 .always_on = 1,
224 },
225};
226
227static struct regulator_init_data goni_ldo10_data = {
228 .constraints = {
229 .name = "VPLL_1.1V",
230 .min_uV = 1100000,
231 .max_uV = 1100000,
232 .apply_uV = 1,
233 .boot_on = 1,
234 },
235};
236
237static struct regulator_init_data goni_ldo11_data = {
238 .constraints = {
239 .name = "CAM_IO_2.8V",
240 .min_uV = 2800000,
241 .max_uV = 2800000,
242 .apply_uV = 1,
243 .always_on = 1,
244 },
245};
246
247static struct regulator_init_data goni_ldo12_data = {
248 .constraints = {
249 .name = "CAM_ISP_1.2V",
250 .min_uV = 1200000,
251 .max_uV = 1200000,
252 .apply_uV = 1,
253 .always_on = 1,
254 },
255};
256
257static struct regulator_init_data goni_ldo13_data = {
258 .constraints = {
259 .name = "CAM_A_2.8V",
260 .min_uV = 2800000,
261 .max_uV = 2800000,
262 .apply_uV = 1,
263 .always_on = 1,
264 },
265};
266
267static struct regulator_init_data goni_ldo14_data = {
268 .constraints = {
269 .name = "CAM_CIF_1.8V",
270 .min_uV = 1800000,
271 .max_uV = 1800000,
272 .apply_uV = 1,
273 .always_on = 1,
274 },
275};
276
277static struct regulator_init_data goni_ldo15_data = {
278 .constraints = {
279 .name = "CAM_AF_3.3V",
280 .min_uV = 3300000,
281 .max_uV = 3300000,
282 .apply_uV = 1,
283 .always_on = 1,
284 },
285};
286
287static struct regulator_init_data goni_ldo16_data = {
288 .constraints = {
289 .name = "VMIPI_1.8V",
290 .min_uV = 1800000,
291 .max_uV = 1800000,
292 .apply_uV = 1,
293 .always_on = 1,
294 },
295};
296
297static struct regulator_init_data goni_ldo17_data = {
298 .constraints = {
299 .name = "VCC_3.0V_LCD",
300 .min_uV = 3000000,
301 .max_uV = 3000000,
302 .apply_uV = 1,
303 .always_on = 1,
304 },
305};
306
307/* BUCK */
308static struct regulator_consumer_supply buck1_consumer[] = {
309 { .supply = "vddarm", },
310};
311
312static struct regulator_consumer_supply buck2_consumer[] = {
313 { .supply = "vddint", },
314};
315
316static struct regulator_init_data goni_buck1_data = {
317 .constraints = {
318 .name = "VARM_1.2V",
319 .min_uV = 1200000,
320 .max_uV = 1200000,
321 .apply_uV = 1,
322 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
323 REGULATOR_CHANGE_STATUS,
324 },
325 .num_consumer_supplies = ARRAY_SIZE(buck1_consumer),
326 .consumer_supplies = buck1_consumer,
327};
328
329static struct regulator_init_data goni_buck2_data = {
330 .constraints = {
331 .name = "VINT_1.2V",
332 .min_uV = 1200000,
333 .max_uV = 1200000,
334 .apply_uV = 1,
335 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
336 REGULATOR_CHANGE_STATUS,
337 },
338 .num_consumer_supplies = ARRAY_SIZE(buck2_consumer),
339 .consumer_supplies = buck2_consumer,
340};
341
342static struct regulator_init_data goni_buck3_data = {
343 .constraints = {
344 .name = "VCC_1.8V",
345 .min_uV = 1800000,
346 .max_uV = 1800000,
347 .apply_uV = 1,
348 .state_mem = {
349 .enabled = 1,
350 },
351 },
352};
353
354static struct regulator_init_data goni_buck4_data = {
355 .constraints = {
356 .name = "CAM_CORE_1.2V",
357 .min_uV = 1200000,
358 .max_uV = 1200000,
359 .apply_uV = 1,
360 .always_on = 1,
361 },
362};
363
364static struct max8998_regulator_data goni_regulators[] = {
365 { MAX8998_LDO2, &goni_ldo2_data },
366 { MAX8998_LDO3, &goni_ldo3_data },
367 { MAX8998_LDO4, &goni_ldo4_data },
368 { MAX8998_LDO5, &goni_ldo5_data },
369 { MAX8998_LDO6, &goni_ldo6_data },
370 { MAX8998_LDO7, &goni_ldo7_data },
371 { MAX8998_LDO8, &goni_ldo8_data },
372 { MAX8998_LDO9, &goni_ldo9_data },
373 { MAX8998_LDO10, &goni_ldo10_data },
374 { MAX8998_LDO11, &goni_ldo11_data },
375 { MAX8998_LDO12, &goni_ldo12_data },
376 { MAX8998_LDO13, &goni_ldo13_data },
377 { MAX8998_LDO14, &goni_ldo14_data },
378 { MAX8998_LDO15, &goni_ldo15_data },
379 { MAX8998_LDO16, &goni_ldo16_data },
380 { MAX8998_LDO17, &goni_ldo17_data },
381 { MAX8998_BUCK1, &goni_buck1_data },
382 { MAX8998_BUCK2, &goni_buck2_data },
383 { MAX8998_BUCK3, &goni_buck3_data },
384 { MAX8998_BUCK4, &goni_buck4_data },
385};
386
387static struct max8998_platform_data goni_max8998_pdata = {
388 .num_regulators = ARRAY_SIZE(goni_regulators),
389 .regulators = goni_regulators,
390};
391#endif
392
393/* GPIO I2C PMIC */
394#define AP_I2C_GPIO_PMIC_BUS_4 4
395static struct i2c_gpio_platform_data goni_i2c_gpio_pmic_data = {
396 .sda_pin = S5PV210_GPJ4(0), /* XMSMCSN */
397 .scl_pin = S5PV210_GPJ4(3), /* XMSMIRQN */
398};
399
400static struct platform_device goni_i2c_gpio_pmic = {
401 .name = "i2c-gpio",
402 .id = AP_I2C_GPIO_PMIC_BUS_4,
403 .dev = {
404 .platform_data = &goni_i2c_gpio_pmic_data,
405 },
406};
407
408static struct i2c_board_info i2c_gpio_pmic_devs[] __initdata = {
409#if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE)
410 {
411 /* 0xCC when SRAD = 0 */
412 I2C_BOARD_INFO("max8998", 0xCC >> 1),
413 .platform_data = &goni_max8998_pdata,
414 },
415#endif
416};
417
418/* PMIC Power button */
419static struct gpio_keys_button goni_gpio_keys_table[] = {
420 {
421 .code = KEY_POWER,
422 .gpio = S5PV210_GPH2(6),
423 .desc = "gpio-keys: KEY_POWER",
424 .type = EV_KEY,
425 .active_low = 1,
426 .wakeup = 1,
427 .debounce_interval = 1,
428 },
429};
430
431static struct gpio_keys_platform_data goni_gpio_keys_data = {
432 .buttons = goni_gpio_keys_table,
433 .nbuttons = ARRAY_SIZE(goni_gpio_keys_table),
434};
435
436static struct platform_device goni_device_gpiokeys = {
437 .name = "gpio-keys",
438 .dev = {
439 .platform_data = &goni_gpio_keys_data,
440 },
441};
442
443static void __init goni_pmic_init(void)
444{
445 /* AP_PMIC_IRQ: EINT7 */
446 s3c_gpio_cfgpin(S5PV210_GPH0(7), S3C_GPIO_SFN(0xf));
447 s3c_gpio_setpull(S5PV210_GPH0(7), S3C_GPIO_PULL_UP);
448
449 /* nPower: EINT22 */
450 s3c_gpio_cfgpin(S5PV210_GPH2(6), S3C_GPIO_SFN(0xf));
451 s3c_gpio_setpull(S5PV210_GPH2(6), S3C_GPIO_PULL_UP);
452}
453
Marek Szyprowski19b90c72010-08-05 18:00:18 +0900454/* MoviNAND */
455static struct s3c_sdhci_platdata goni_hsmmc0_data __initdata = {
456 .max_width = 4,
457 .cd_type = S3C_SDHCI_CD_PERMANENT,
458};
459
460/* Wireless LAN */
461static struct s3c_sdhci_platdata goni_hsmmc1_data __initdata = {
462 .max_width = 4,
463 .cd_type = S3C_SDHCI_CD_EXTERNAL,
464 /* ext_cd_{init,cleanup} callbacks will be added later */
465};
466
467/* External Flash */
468#define GONI_EXT_FLASH_EN S5PV210_MP05(4)
469#define GONI_EXT_FLASH_CD S5PV210_GPH3(4)
470static struct s3c_sdhci_platdata goni_hsmmc2_data __initdata = {
471 .max_width = 4,
472 .cd_type = S3C_SDHCI_CD_GPIO,
473 .ext_cd_gpio = GONI_EXT_FLASH_CD,
474 .ext_cd_gpio_invert = 1,
475};
476
Marek Szyprowskie9dde6f12010-09-29 22:05:19 +0900477static struct regulator_consumer_supply mmc2_supplies[] = {
478 REGULATOR_SUPPLY("vmmc", "s3c-sdhci.2"),
479};
480
481static struct regulator_init_data mmc2_fixed_voltage_init_data = {
482 .constraints = {
483 .name = "V_TF_2.8V",
484 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
485 },
486 .num_consumer_supplies = ARRAY_SIZE(mmc2_supplies),
487 .consumer_supplies = mmc2_supplies,
488};
489
490static struct fixed_voltage_config mmc2_fixed_voltage_config = {
491 .supply_name = "EXT_FLASH_EN",
492 .microvolts = 2800000,
493 .gpio = GONI_EXT_FLASH_EN,
494 .enable_high = true,
495 .init_data = &mmc2_fixed_voltage_init_data,
496};
497
498static struct platform_device mmc2_fixed_voltage = {
499 .name = "reg-fixed-voltage",
500 .id = 2,
501 .dev = {
502 .platform_data = &mmc2_fixed_voltage_config,
503 },
504};
505
Marek Szyprowski19b90c72010-08-05 18:00:18 +0900506static void goni_setup_sdhci(void)
507{
Marek Szyprowski19b90c72010-08-05 18:00:18 +0900508 s3c_sdhci0_set_platdata(&goni_hsmmc0_data);
509 s3c_sdhci1_set_platdata(&goni_hsmmc1_data);
510 s3c_sdhci2_set_platdata(&goni_hsmmc2_data);
511};
Marek Szyprowskiba149f32010-07-14 19:39:47 +0900512
Joonyoung Shim2e57da42010-05-19 23:15:32 +0900513static struct platform_device *goni_devices[] __initdata = {
Marek Szyprowski3965fde2010-07-14 19:38:18 +0900514 &s3c_device_fb,
Kukjin Kim13904fb2010-08-27 13:56:54 +0900515 &s5p_device_onenand,
Marek Szyprowskiba149f32010-07-14 19:39:47 +0900516 &goni_i2c_gpio_pmic,
Marek Szyprowskie9dde6f12010-09-29 22:05:19 +0900517 &mmc2_fixed_voltage,
Marek Szyprowskiba149f32010-07-14 19:39:47 +0900518 &goni_device_gpiokeys,
Sylwester Nawrocki9f488c62010-08-09 16:55:34 +0900519 &s5p_device_fimc0,
520 &s5p_device_fimc1,
521 &s5p_device_fimc2,
Marek Szyprowski19b90c72010-08-05 18:00:18 +0900522 &s3c_device_hsmmc0,
523 &s3c_device_hsmmc1,
524 &s3c_device_hsmmc2,
Marek Szyprowskid5889d52010-09-30 20:59:46 +0900525 &s3c_device_usb_hsotg,
Joonyoung Shim2a555582010-09-09 08:17:43 +0900526 &samsung_device_keypad,
Joonyoung Shim2e57da42010-05-19 23:15:32 +0900527};
528
529static void __init goni_map_io(void)
530{
531 s5p_init_io(NULL, 0, S5P_VA_CHIPID);
532 s3c24xx_init_clocks(24000000);
533 s3c24xx_init_uarts(goni_uartcfgs, ARRAY_SIZE(goni_uartcfgs));
534}
535
536static void __init goni_machine_init(void)
537{
Marek Szyprowskiba149f32010-07-14 19:39:47 +0900538 /* PMIC */
539 goni_pmic_init();
540 i2c_register_board_info(AP_I2C_GPIO_PMIC_BUS_4, i2c_gpio_pmic_devs,
541 ARRAY_SIZE(i2c_gpio_pmic_devs));
Marek Szyprowski19b90c72010-08-05 18:00:18 +0900542 /* SDHCI */
543 goni_setup_sdhci();
544
Marek Szyprowski3965fde2010-07-14 19:38:18 +0900545 /* FB */
546 s3c_fb_set_platdata(&goni_lcd_pdata);
547
Joonyoung Shim2a555582010-09-09 08:17:43 +0900548 /* KEYPAD */
549 samsung_keypad_set_platdata(&keypad_data);
550
Marek Szyprowskid5889d52010-09-30 20:59:46 +0900551 clk_xusbxti.rate = 24000000;
552
Joonyoung Shim2e57da42010-05-19 23:15:32 +0900553 platform_add_devices(goni_devices, ARRAY_SIZE(goni_devices));
554}
555
556MACHINE_START(GONI, "GONI")
557 /* Maintainers: Kyungmin Park <kyungmin.park@samsung.com> */
558 .phys_io = S3C_PA_UART & 0xfff00000,
559 .io_pg_offst = (((u32)S3C_VA_UART) >> 18) & 0xfffc,
560 .boot_params = S5P_PA_SDRAM + 0x100,
561 .init_irq = s5pv210_init_irq,
562 .map_io = goni_map_io,
563 .init_machine = goni_machine_init,
564 .timer = &s3c24xx_timer,
565MACHINE_END