mach-goni.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  1. /* 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. #include <linux/kernel.h>
  11. #include <linux/types.h>
  12. #include <linux/init.h>
  13. #include <linux/serial_core.h>
  14. #include <linux/fb.h>
  15. #include <linux/i2c.h>
  16. #include <linux/i2c-gpio.h>
  17. #include <linux/mfd/max8998.h>
  18. #include <linux/regulator/fixed.h>
  19. #include <linux/spi/spi.h>
  20. #include <linux/spi/spi_gpio.h>
  21. #include <linux/lcd.h>
  22. #include <linux/gpio_keys.h>
  23. #include <linux/input.h>
  24. #include <linux/gpio.h>
  25. #include <asm/mach/arch.h>
  26. #include <asm/mach/map.h>
  27. #include <asm/setup.h>
  28. #include <asm/mach-types.h>
  29. #include <mach/map.h>
  30. #include <mach/regs-clock.h>
  31. #include <mach/regs-fb.h>
  32. #include <plat/gpio-cfg.h>
  33. #include <plat/regs-serial.h>
  34. #include <plat/s5pv210.h>
  35. #include <plat/devs.h>
  36. #include <plat/cpu.h>
  37. #include <plat/fb.h>
  38. #include <plat/keypad.h>
  39. #include <plat/sdhci.h>
  40. #include <plat/clock.h>
  41. /* Following are default values for UCON, ULCON and UFCON UART registers */
  42. #define GONI_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \
  43. S3C2410_UCON_RXILEVEL | \
  44. S3C2410_UCON_TXIRQMODE | \
  45. S3C2410_UCON_RXIRQMODE | \
  46. S3C2410_UCON_RXFIFO_TOI | \
  47. S3C2443_UCON_RXERR_IRQEN)
  48. #define GONI_ULCON_DEFAULT S3C2410_LCON_CS8
  49. #define GONI_UFCON_DEFAULT S3C2410_UFCON_FIFOMODE
  50. static struct s3c2410_uartcfg goni_uartcfgs[] __initdata = {
  51. [0] = {
  52. .hwport = 0,
  53. .flags = 0,
  54. .ucon = GONI_UCON_DEFAULT,
  55. .ulcon = GONI_ULCON_DEFAULT,
  56. .ufcon = GONI_UFCON_DEFAULT |
  57. S5PV210_UFCON_TXTRIG256 | S5PV210_UFCON_RXTRIG256,
  58. },
  59. [1] = {
  60. .hwport = 1,
  61. .flags = 0,
  62. .ucon = GONI_UCON_DEFAULT,
  63. .ulcon = GONI_ULCON_DEFAULT,
  64. .ufcon = GONI_UFCON_DEFAULT |
  65. S5PV210_UFCON_TXTRIG64 | S5PV210_UFCON_RXTRIG64,
  66. },
  67. [2] = {
  68. .hwport = 2,
  69. .flags = 0,
  70. .ucon = GONI_UCON_DEFAULT,
  71. .ulcon = GONI_ULCON_DEFAULT,
  72. .ufcon = GONI_UFCON_DEFAULT |
  73. S5PV210_UFCON_TXTRIG16 | S5PV210_UFCON_RXTRIG16,
  74. },
  75. [3] = {
  76. .hwport = 3,
  77. .flags = 0,
  78. .ucon = GONI_UCON_DEFAULT,
  79. .ulcon = GONI_ULCON_DEFAULT,
  80. .ufcon = GONI_UFCON_DEFAULT |
  81. S5PV210_UFCON_TXTRIG16 | S5PV210_UFCON_RXTRIG16,
  82. },
  83. };
  84. /* Frame Buffer */
  85. static struct s3c_fb_pd_win goni_fb_win0 = {
  86. .win_mode = {
  87. .left_margin = 16,
  88. .right_margin = 16,
  89. .upper_margin = 2,
  90. .lower_margin = 28,
  91. .hsync_len = 2,
  92. .vsync_len = 1,
  93. .xres = 480,
  94. .yres = 800,
  95. .refresh = 55,
  96. },
  97. .max_bpp = 32,
  98. .default_bpp = 16,
  99. };
  100. static struct s3c_fb_platdata goni_lcd_pdata __initdata = {
  101. .win[0] = &goni_fb_win0,
  102. .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB |
  103. VIDCON0_CLKSEL_LCD,
  104. .vidcon1 = VIDCON1_INV_VCLK | VIDCON1_INV_VDEN
  105. | VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC,
  106. .setup_gpio = s5pv210_fb_gpio_setup_24bpp,
  107. };
  108. static int lcd_power_on(struct lcd_device *ld, int enable)
  109. {
  110. return 1;
  111. }
  112. static int reset_lcd(struct lcd_device *ld)
  113. {
  114. static unsigned int first = 1;
  115. int reset_gpio = -1;
  116. reset_gpio = S5PV210_MP05(5);
  117. if (first) {
  118. gpio_request(reset_gpio, "MLCD_RST");
  119. first = 0;
  120. }
  121. gpio_direction_output(reset_gpio, 1);
  122. return 1;
  123. }
  124. static struct lcd_platform_data goni_lcd_platform_data = {
  125. .reset = reset_lcd,
  126. .power_on = lcd_power_on,
  127. .lcd_enabled = 0,
  128. .reset_delay = 120, /* 120ms */
  129. .power_on_delay = 25, /* 25ms */
  130. .power_off_delay = 200, /* 200ms */
  131. };
  132. #define LCD_BUS_NUM 3
  133. static struct spi_board_info spi_board_info[] __initdata = {
  134. {
  135. .modalias = "s6e63m0",
  136. .platform_data = &goni_lcd_platform_data,
  137. .max_speed_hz = 1200000,
  138. .bus_num = LCD_BUS_NUM,
  139. .chip_select = 0,
  140. .mode = SPI_MODE_3,
  141. .controller_data = (void *)S5PV210_MP01(1), /* DISPLAY_CS */
  142. },
  143. };
  144. static struct spi_gpio_platform_data lcd_spi_gpio_data = {
  145. .sck = S5PV210_MP04(1), /* DISPLAY_CLK */
  146. .mosi = S5PV210_MP04(3), /* DISPLAY_SI */
  147. .miso = SPI_GPIO_NO_MISO,
  148. .num_chipselect = 1,
  149. };
  150. static struct platform_device goni_spi_gpio = {
  151. .name = "spi_gpio",
  152. .id = LCD_BUS_NUM,
  153. .dev = {
  154. .parent = &s3c_device_fb.dev,
  155. .platform_data = &lcd_spi_gpio_data,
  156. },
  157. };
  158. /* KEYPAD */
  159. static uint32_t keymap[] __initdata = {
  160. /* KEY(row, col, keycode) */
  161. KEY(0, 1, KEY_MENU), /* Send */
  162. KEY(0, 2, KEY_BACK), /* End */
  163. KEY(1, 1, KEY_CONFIG), /* Half shot */
  164. KEY(1, 2, KEY_VOLUMEUP),
  165. KEY(2, 1, KEY_CAMERA), /* Full shot */
  166. KEY(2, 2, KEY_VOLUMEDOWN),
  167. };
  168. static struct matrix_keymap_data keymap_data __initdata = {
  169. .keymap = keymap,
  170. .keymap_size = ARRAY_SIZE(keymap),
  171. };
  172. static struct samsung_keypad_platdata keypad_data __initdata = {
  173. .keymap_data = &keymap_data,
  174. .rows = 3,
  175. .cols = 3,
  176. };
  177. /* MAX8998 regulators */
  178. #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE)
  179. static struct regulator_consumer_supply goni_ldo5_consumers[] = {
  180. REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"),
  181. };
  182. static struct regulator_init_data goni_ldo2_data = {
  183. .constraints = {
  184. .name = "VALIVE_1.1V",
  185. .min_uV = 1100000,
  186. .max_uV = 1100000,
  187. .apply_uV = 1,
  188. .always_on = 1,
  189. .state_mem = {
  190. .enabled = 1,
  191. },
  192. },
  193. };
  194. static struct regulator_init_data goni_ldo3_data = {
  195. .constraints = {
  196. .name = "VUSB/MIPI_1.1V",
  197. .min_uV = 1100000,
  198. .max_uV = 1100000,
  199. .apply_uV = 1,
  200. .always_on = 1,
  201. },
  202. };
  203. static struct regulator_init_data goni_ldo4_data = {
  204. .constraints = {
  205. .name = "VDAC_3.3V",
  206. .min_uV = 3300000,
  207. .max_uV = 3300000,
  208. .apply_uV = 1,
  209. },
  210. };
  211. static struct regulator_init_data goni_ldo5_data = {
  212. .constraints = {
  213. .name = "VTF_2.8V",
  214. .min_uV = 2800000,
  215. .max_uV = 2800000,
  216. .apply_uV = 1,
  217. },
  218. .num_consumer_supplies = ARRAY_SIZE(goni_ldo5_consumers),
  219. .consumer_supplies = goni_ldo5_consumers,
  220. };
  221. static struct regulator_init_data goni_ldo6_data = {
  222. .constraints = {
  223. .name = "VCC_3.3V",
  224. .min_uV = 3300000,
  225. .max_uV = 3300000,
  226. .apply_uV = 1,
  227. },
  228. };
  229. static struct regulator_init_data goni_ldo7_data = {
  230. .constraints = {
  231. .name = "VLCD_1.8V",
  232. .min_uV = 1800000,
  233. .max_uV = 1800000,
  234. .apply_uV = 1,
  235. .always_on = 1,
  236. },
  237. };
  238. static struct regulator_init_data goni_ldo8_data = {
  239. .constraints = {
  240. .name = "VUSB/VADC_3.3V",
  241. .min_uV = 3300000,
  242. .max_uV = 3300000,
  243. .apply_uV = 1,
  244. .always_on = 1,
  245. },
  246. };
  247. static struct regulator_init_data goni_ldo9_data = {
  248. .constraints = {
  249. .name = "VCC/VCAM_2.8V",
  250. .min_uV = 2800000,
  251. .max_uV = 2800000,
  252. .apply_uV = 1,
  253. .always_on = 1,
  254. },
  255. };
  256. static struct regulator_init_data goni_ldo10_data = {
  257. .constraints = {
  258. .name = "VPLL_1.1V",
  259. .min_uV = 1100000,
  260. .max_uV = 1100000,
  261. .apply_uV = 1,
  262. .boot_on = 1,
  263. },
  264. };
  265. static struct regulator_init_data goni_ldo11_data = {
  266. .constraints = {
  267. .name = "CAM_IO_2.8V",
  268. .min_uV = 2800000,
  269. .max_uV = 2800000,
  270. .apply_uV = 1,
  271. .always_on = 1,
  272. },
  273. };
  274. static struct regulator_init_data goni_ldo12_data = {
  275. .constraints = {
  276. .name = "CAM_ISP_1.2V",
  277. .min_uV = 1200000,
  278. .max_uV = 1200000,
  279. .apply_uV = 1,
  280. .always_on = 1,
  281. },
  282. };
  283. static struct regulator_init_data goni_ldo13_data = {
  284. .constraints = {
  285. .name = "CAM_A_2.8V",
  286. .min_uV = 2800000,
  287. .max_uV = 2800000,
  288. .apply_uV = 1,
  289. .always_on = 1,
  290. },
  291. };
  292. static struct regulator_init_data goni_ldo14_data = {
  293. .constraints = {
  294. .name = "CAM_CIF_1.8V",
  295. .min_uV = 1800000,
  296. .max_uV = 1800000,
  297. .apply_uV = 1,
  298. .always_on = 1,
  299. },
  300. };
  301. static struct regulator_init_data goni_ldo15_data = {
  302. .constraints = {
  303. .name = "CAM_AF_3.3V",
  304. .min_uV = 3300000,
  305. .max_uV = 3300000,
  306. .apply_uV = 1,
  307. .always_on = 1,
  308. },
  309. };
  310. static struct regulator_init_data goni_ldo16_data = {
  311. .constraints = {
  312. .name = "VMIPI_1.8V",
  313. .min_uV = 1800000,
  314. .max_uV = 1800000,
  315. .apply_uV = 1,
  316. .always_on = 1,
  317. },
  318. };
  319. static struct regulator_init_data goni_ldo17_data = {
  320. .constraints = {
  321. .name = "VCC_3.0V_LCD",
  322. .min_uV = 3000000,
  323. .max_uV = 3000000,
  324. .apply_uV = 1,
  325. .always_on = 1,
  326. },
  327. };
  328. /* BUCK */
  329. static struct regulator_consumer_supply buck1_consumer[] = {
  330. { .supply = "vddarm", },
  331. };
  332. static struct regulator_consumer_supply buck2_consumer[] = {
  333. { .supply = "vddint", },
  334. };
  335. static struct regulator_init_data goni_buck1_data = {
  336. .constraints = {
  337. .name = "VARM_1.2V",
  338. .min_uV = 1200000,
  339. .max_uV = 1200000,
  340. .apply_uV = 1,
  341. .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
  342. REGULATOR_CHANGE_STATUS,
  343. },
  344. .num_consumer_supplies = ARRAY_SIZE(buck1_consumer),
  345. .consumer_supplies = buck1_consumer,
  346. };
  347. static struct regulator_init_data goni_buck2_data = {
  348. .constraints = {
  349. .name = "VINT_1.2V",
  350. .min_uV = 1200000,
  351. .max_uV = 1200000,
  352. .apply_uV = 1,
  353. .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
  354. REGULATOR_CHANGE_STATUS,
  355. },
  356. .num_consumer_supplies = ARRAY_SIZE(buck2_consumer),
  357. .consumer_supplies = buck2_consumer,
  358. };
  359. static struct regulator_init_data goni_buck3_data = {
  360. .constraints = {
  361. .name = "VCC_1.8V",
  362. .min_uV = 1800000,
  363. .max_uV = 1800000,
  364. .apply_uV = 1,
  365. .state_mem = {
  366. .enabled = 1,
  367. },
  368. },
  369. };
  370. static struct regulator_init_data goni_buck4_data = {
  371. .constraints = {
  372. .name = "CAM_CORE_1.2V",
  373. .min_uV = 1200000,
  374. .max_uV = 1200000,
  375. .apply_uV = 1,
  376. .always_on = 1,
  377. },
  378. };
  379. static struct max8998_regulator_data goni_regulators[] = {
  380. { MAX8998_LDO2, &goni_ldo2_data },
  381. { MAX8998_LDO3, &goni_ldo3_data },
  382. { MAX8998_LDO4, &goni_ldo4_data },
  383. { MAX8998_LDO5, &goni_ldo5_data },
  384. { MAX8998_LDO6, &goni_ldo6_data },
  385. { MAX8998_LDO7, &goni_ldo7_data },
  386. { MAX8998_LDO8, &goni_ldo8_data },
  387. { MAX8998_LDO9, &goni_ldo9_data },
  388. { MAX8998_LDO10, &goni_ldo10_data },
  389. { MAX8998_LDO11, &goni_ldo11_data },
  390. { MAX8998_LDO12, &goni_ldo12_data },
  391. { MAX8998_LDO13, &goni_ldo13_data },
  392. { MAX8998_LDO14, &goni_ldo14_data },
  393. { MAX8998_LDO15, &goni_ldo15_data },
  394. { MAX8998_LDO16, &goni_ldo16_data },
  395. { MAX8998_LDO17, &goni_ldo17_data },
  396. { MAX8998_BUCK1, &goni_buck1_data },
  397. { MAX8998_BUCK2, &goni_buck2_data },
  398. { MAX8998_BUCK3, &goni_buck3_data },
  399. { MAX8998_BUCK4, &goni_buck4_data },
  400. };
  401. static struct max8998_platform_data goni_max8998_pdata = {
  402. .num_regulators = ARRAY_SIZE(goni_regulators),
  403. .regulators = goni_regulators,
  404. };
  405. #endif
  406. /* GPIO I2C PMIC */
  407. #define AP_I2C_GPIO_PMIC_BUS_4 4
  408. static struct i2c_gpio_platform_data goni_i2c_gpio_pmic_data = {
  409. .sda_pin = S5PV210_GPJ4(0), /* XMSMCSN */
  410. .scl_pin = S5PV210_GPJ4(3), /* XMSMIRQN */
  411. };
  412. static struct platform_device goni_i2c_gpio_pmic = {
  413. .name = "i2c-gpio",
  414. .id = AP_I2C_GPIO_PMIC_BUS_4,
  415. .dev = {
  416. .platform_data = &goni_i2c_gpio_pmic_data,
  417. },
  418. };
  419. static struct i2c_board_info i2c_gpio_pmic_devs[] __initdata = {
  420. #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE)
  421. {
  422. /* 0xCC when SRAD = 0 */
  423. I2C_BOARD_INFO("max8998", 0xCC >> 1),
  424. .platform_data = &goni_max8998_pdata,
  425. },
  426. #endif
  427. };
  428. /* PMIC Power button */
  429. static struct gpio_keys_button goni_gpio_keys_table[] = {
  430. {
  431. .code = KEY_POWER,
  432. .gpio = S5PV210_GPH2(6),
  433. .desc = "gpio-keys: KEY_POWER",
  434. .type = EV_KEY,
  435. .active_low = 1,
  436. .wakeup = 1,
  437. .debounce_interval = 1,
  438. },
  439. };
  440. static struct gpio_keys_platform_data goni_gpio_keys_data = {
  441. .buttons = goni_gpio_keys_table,
  442. .nbuttons = ARRAY_SIZE(goni_gpio_keys_table),
  443. };
  444. static struct platform_device goni_device_gpiokeys = {
  445. .name = "gpio-keys",
  446. .dev = {
  447. .platform_data = &goni_gpio_keys_data,
  448. },
  449. };
  450. static void __init goni_pmic_init(void)
  451. {
  452. /* AP_PMIC_IRQ: EINT7 */
  453. s3c_gpio_cfgpin(S5PV210_GPH0(7), S3C_GPIO_SFN(0xf));
  454. s3c_gpio_setpull(S5PV210_GPH0(7), S3C_GPIO_PULL_UP);
  455. /* nPower: EINT22 */
  456. s3c_gpio_cfgpin(S5PV210_GPH2(6), S3C_GPIO_SFN(0xf));
  457. s3c_gpio_setpull(S5PV210_GPH2(6), S3C_GPIO_PULL_UP);
  458. }
  459. /* MoviNAND */
  460. static struct s3c_sdhci_platdata goni_hsmmc0_data __initdata = {
  461. .max_width = 4,
  462. .cd_type = S3C_SDHCI_CD_PERMANENT,
  463. };
  464. /* Wireless LAN */
  465. static struct s3c_sdhci_platdata goni_hsmmc1_data __initdata = {
  466. .max_width = 4,
  467. .cd_type = S3C_SDHCI_CD_EXTERNAL,
  468. /* ext_cd_{init,cleanup} callbacks will be added later */
  469. };
  470. /* External Flash */
  471. #define GONI_EXT_FLASH_EN S5PV210_MP05(4)
  472. #define GONI_EXT_FLASH_CD S5PV210_GPH3(4)
  473. static struct s3c_sdhci_platdata goni_hsmmc2_data __initdata = {
  474. .max_width = 4,
  475. .cd_type = S3C_SDHCI_CD_GPIO,
  476. .ext_cd_gpio = GONI_EXT_FLASH_CD,
  477. .ext_cd_gpio_invert = 1,
  478. };
  479. static struct regulator_consumer_supply mmc2_supplies[] = {
  480. REGULATOR_SUPPLY("vmmc", "s3c-sdhci.2"),
  481. };
  482. static struct regulator_init_data mmc2_fixed_voltage_init_data = {
  483. .constraints = {
  484. .name = "V_TF_2.8V",
  485. .valid_ops_mask = REGULATOR_CHANGE_STATUS,
  486. },
  487. .num_consumer_supplies = ARRAY_SIZE(mmc2_supplies),
  488. .consumer_supplies = mmc2_supplies,
  489. };
  490. static 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. static struct platform_device mmc2_fixed_voltage = {
  498. .name = "reg-fixed-voltage",
  499. .id = 2,
  500. .dev = {
  501. .platform_data = &mmc2_fixed_voltage_config,
  502. },
  503. };
  504. static void goni_setup_sdhci(void)
  505. {
  506. s3c_sdhci0_set_platdata(&goni_hsmmc0_data);
  507. s3c_sdhci1_set_platdata(&goni_hsmmc1_data);
  508. s3c_sdhci2_set_platdata(&goni_hsmmc2_data);
  509. };
  510. static struct platform_device *goni_devices[] __initdata = {
  511. &s3c_device_fb,
  512. &s5p_device_onenand,
  513. &goni_spi_gpio,
  514. &goni_i2c_gpio_pmic,
  515. &mmc2_fixed_voltage,
  516. &goni_device_gpiokeys,
  517. &s5p_device_fimc0,
  518. &s5p_device_fimc1,
  519. &s5p_device_fimc2,
  520. &s3c_device_hsmmc0,
  521. &s3c_device_hsmmc1,
  522. &s3c_device_hsmmc2,
  523. &s3c_device_usb_hsotg,
  524. &samsung_device_keypad,
  525. };
  526. static void __init goni_map_io(void)
  527. {
  528. s5p_init_io(NULL, 0, S5P_VA_CHIPID);
  529. s3c24xx_init_clocks(24000000);
  530. s3c24xx_init_uarts(goni_uartcfgs, ARRAY_SIZE(goni_uartcfgs));
  531. }
  532. static void __init goni_machine_init(void)
  533. {
  534. /* PMIC */
  535. goni_pmic_init();
  536. i2c_register_board_info(AP_I2C_GPIO_PMIC_BUS_4, i2c_gpio_pmic_devs,
  537. ARRAY_SIZE(i2c_gpio_pmic_devs));
  538. /* SDHCI */
  539. goni_setup_sdhci();
  540. /* FB */
  541. s3c_fb_set_platdata(&goni_lcd_pdata);
  542. /* SPI */
  543. spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info));
  544. /* KEYPAD */
  545. samsung_keypad_set_platdata(&keypad_data);
  546. clk_xusbxti.rate = 24000000;
  547. platform_add_devices(goni_devices, ARRAY_SIZE(goni_devices));
  548. }
  549. MACHINE_START(GONI, "GONI")
  550. /* Maintainers: Kyungmin Park <kyungmin.park@samsung.com> */
  551. .phys_io = S3C_PA_UART & 0xfff00000,
  552. .io_pg_offst = (((u32)S3C_VA_UART) >> 18) & 0xfffc,
  553. .boot_params = S5P_PA_SDRAM + 0x100,
  554. .init_irq = s5pv210_init_irq,
  555. .map_io = goni_map_io,
  556. .init_machine = goni_machine_init,
  557. .timer = &s3c24xx_timer,
  558. MACHINE_END