mach-bast.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. /* linux/arch/arm/mach-s3c2410/mach-bast.c
  2. *
  3. * Copyright (c) 2003-2005 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. * http://www.simtec.co.uk/products/EB2410ITX/
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #include <linux/kernel.h>
  13. #include <linux/types.h>
  14. #include <linux/interrupt.h>
  15. #include <linux/list.h>
  16. #include <linux/timer.h>
  17. #include <linux/init.h>
  18. #include <linux/sysdev.h>
  19. #include <linux/serial_core.h>
  20. #include <linux/platform_device.h>
  21. #include <linux/dm9000.h>
  22. #include <linux/ata_platform.h>
  23. #include <net/ax88796.h>
  24. #include <asm/mach/arch.h>
  25. #include <asm/mach/map.h>
  26. #include <asm/mach/irq.h>
  27. #include <asm/arch/bast-map.h>
  28. #include <asm/arch/bast-irq.h>
  29. #include <asm/arch/bast-cpld.h>
  30. #include <asm/hardware.h>
  31. #include <asm/io.h>
  32. #include <asm/irq.h>
  33. #include <asm/mach-types.h>
  34. //#include <asm/debug-ll.h>
  35. #include <asm/plat-s3c/regs-serial.h>
  36. #include <asm/arch/regs-gpio.h>
  37. #include <asm/arch/regs-mem.h>
  38. #include <asm/arch/regs-lcd.h>
  39. #include <asm/plat-s3c/nand.h>
  40. #include <asm/plat-s3c/iic.h>
  41. #include <asm/arch/fb.h>
  42. #include <linux/mtd/mtd.h>
  43. #include <linux/mtd/nand.h>
  44. #include <linux/mtd/nand_ecc.h>
  45. #include <linux/mtd/partitions.h>
  46. #include <linux/serial_8250.h>
  47. #include <asm/plat-s3c24xx/clock.h>
  48. #include <asm/plat-s3c24xx/devs.h>
  49. #include <asm/plat-s3c24xx/cpu.h>
  50. #include "usb-simtec.h"
  51. #include "nor-simtec.h"
  52. #define COPYRIGHT ", (c) 2004-2005 Simtec Electronics"
  53. /* macros for virtual address mods for the io space entries */
  54. #define VA_C5(item) ((unsigned long)(item) + BAST_VAM_CS5)
  55. #define VA_C4(item) ((unsigned long)(item) + BAST_VAM_CS4)
  56. #define VA_C3(item) ((unsigned long)(item) + BAST_VAM_CS3)
  57. #define VA_C2(item) ((unsigned long)(item) + BAST_VAM_CS2)
  58. /* macros to modify the physical addresses for io space */
  59. #define PA_CS2(item) (__phys_to_pfn((item) + S3C2410_CS2))
  60. #define PA_CS3(item) (__phys_to_pfn((item) + S3C2410_CS3))
  61. #define PA_CS4(item) (__phys_to_pfn((item) + S3C2410_CS4))
  62. #define PA_CS5(item) (__phys_to_pfn((item) + S3C2410_CS5))
  63. static struct map_desc bast_iodesc[] __initdata = {
  64. /* ISA IO areas */
  65. {
  66. .virtual = (u32)S3C24XX_VA_ISA_BYTE,
  67. .pfn = PA_CS2(BAST_PA_ISAIO),
  68. .length = SZ_16M,
  69. .type = MT_DEVICE,
  70. }, {
  71. .virtual = (u32)S3C24XX_VA_ISA_WORD,
  72. .pfn = PA_CS3(BAST_PA_ISAIO),
  73. .length = SZ_16M,
  74. .type = MT_DEVICE,
  75. },
  76. /* bast CPLD control registers, and external interrupt controls */
  77. {
  78. .virtual = (u32)BAST_VA_CTRL1,
  79. .pfn = __phys_to_pfn(BAST_PA_CTRL1),
  80. .length = SZ_1M,
  81. .type = MT_DEVICE,
  82. }, {
  83. .virtual = (u32)BAST_VA_CTRL2,
  84. .pfn = __phys_to_pfn(BAST_PA_CTRL2),
  85. .length = SZ_1M,
  86. .type = MT_DEVICE,
  87. }, {
  88. .virtual = (u32)BAST_VA_CTRL3,
  89. .pfn = __phys_to_pfn(BAST_PA_CTRL3),
  90. .length = SZ_1M,
  91. .type = MT_DEVICE,
  92. }, {
  93. .virtual = (u32)BAST_VA_CTRL4,
  94. .pfn = __phys_to_pfn(BAST_PA_CTRL4),
  95. .length = SZ_1M,
  96. .type = MT_DEVICE,
  97. },
  98. /* PC104 IRQ mux */
  99. {
  100. .virtual = (u32)BAST_VA_PC104_IRQREQ,
  101. .pfn = __phys_to_pfn(BAST_PA_PC104_IRQREQ),
  102. .length = SZ_1M,
  103. .type = MT_DEVICE,
  104. }, {
  105. .virtual = (u32)BAST_VA_PC104_IRQRAW,
  106. .pfn = __phys_to_pfn(BAST_PA_PC104_IRQRAW),
  107. .length = SZ_1M,
  108. .type = MT_DEVICE,
  109. }, {
  110. .virtual = (u32)BAST_VA_PC104_IRQMASK,
  111. .pfn = __phys_to_pfn(BAST_PA_PC104_IRQMASK),
  112. .length = SZ_1M,
  113. .type = MT_DEVICE,
  114. },
  115. /* peripheral space... one for each of fast/slow/byte/16bit */
  116. /* note, ide is only decoded in word space, even though some registers
  117. * are only 8bit */
  118. /* slow, byte */
  119. { VA_C2(BAST_VA_ISAIO), PA_CS2(BAST_PA_ISAIO), SZ_16M, MT_DEVICE },
  120. { VA_C2(BAST_VA_ISAMEM), PA_CS2(BAST_PA_ISAMEM), SZ_16M, MT_DEVICE },
  121. { VA_C2(BAST_VA_SUPERIO), PA_CS2(BAST_PA_SUPERIO), SZ_1M, MT_DEVICE },
  122. /* slow, word */
  123. { VA_C3(BAST_VA_ISAIO), PA_CS3(BAST_PA_ISAIO), SZ_16M, MT_DEVICE },
  124. { VA_C3(BAST_VA_ISAMEM), PA_CS3(BAST_PA_ISAMEM), SZ_16M, MT_DEVICE },
  125. { VA_C3(BAST_VA_SUPERIO), PA_CS3(BAST_PA_SUPERIO), SZ_1M, MT_DEVICE },
  126. /* fast, byte */
  127. { VA_C4(BAST_VA_ISAIO), PA_CS4(BAST_PA_ISAIO), SZ_16M, MT_DEVICE },
  128. { VA_C4(BAST_VA_ISAMEM), PA_CS4(BAST_PA_ISAMEM), SZ_16M, MT_DEVICE },
  129. { VA_C4(BAST_VA_SUPERIO), PA_CS4(BAST_PA_SUPERIO), SZ_1M, MT_DEVICE },
  130. /* fast, word */
  131. { VA_C5(BAST_VA_ISAIO), PA_CS5(BAST_PA_ISAIO), SZ_16M, MT_DEVICE },
  132. { VA_C5(BAST_VA_ISAMEM), PA_CS5(BAST_PA_ISAMEM), SZ_16M, MT_DEVICE },
  133. { VA_C5(BAST_VA_SUPERIO), PA_CS5(BAST_PA_SUPERIO), SZ_1M, MT_DEVICE },
  134. };
  135. #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
  136. #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
  137. #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
  138. static struct s3c24xx_uart_clksrc bast_serial_clocks[] = {
  139. [0] = {
  140. .name = "uclk",
  141. .divisor = 1,
  142. .min_baud = 0,
  143. .max_baud = 0,
  144. },
  145. [1] = {
  146. .name = "pclk",
  147. .divisor = 1,
  148. .min_baud = 0,
  149. .max_baud = 0,
  150. }
  151. };
  152. static struct s3c2410_uartcfg bast_uartcfgs[] __initdata = {
  153. [0] = {
  154. .hwport = 0,
  155. .flags = 0,
  156. .ucon = UCON,
  157. .ulcon = ULCON,
  158. .ufcon = UFCON,
  159. .clocks = bast_serial_clocks,
  160. .clocks_size = ARRAY_SIZE(bast_serial_clocks),
  161. },
  162. [1] = {
  163. .hwport = 1,
  164. .flags = 0,
  165. .ucon = UCON,
  166. .ulcon = ULCON,
  167. .ufcon = UFCON,
  168. .clocks = bast_serial_clocks,
  169. .clocks_size = ARRAY_SIZE(bast_serial_clocks),
  170. },
  171. /* port 2 is not actually used */
  172. [2] = {
  173. .hwport = 2,
  174. .flags = 0,
  175. .ucon = UCON,
  176. .ulcon = ULCON,
  177. .ufcon = UFCON,
  178. .clocks = bast_serial_clocks,
  179. .clocks_size = ARRAY_SIZE(bast_serial_clocks),
  180. }
  181. };
  182. /* NAND Flash on BAST board */
  183. #ifdef CONFIG_PM
  184. static int bast_pm_suspend(struct sys_device *sd, pm_message_t state)
  185. {
  186. /* ensure that an nRESET is not generated on resume. */
  187. s3c2410_gpio_setpin(S3C2410_GPA21, 1);
  188. s3c2410_gpio_cfgpin(S3C2410_GPA21, S3C2410_GPA21_OUT);
  189. return 0;
  190. }
  191. static int bast_pm_resume(struct sys_device *sd)
  192. {
  193. s3c2410_gpio_cfgpin(S3C2410_GPA21, S3C2410_GPA21_nRSTOUT);
  194. return 0;
  195. }
  196. #else
  197. #define bast_pm_suspend NULL
  198. #define bast_pm_resume NULL
  199. #endif
  200. static struct sysdev_class bast_pm_sysclass = {
  201. .name = "mach-bast",
  202. .suspend = bast_pm_suspend,
  203. .resume = bast_pm_resume,
  204. };
  205. static struct sys_device bast_pm_sysdev = {
  206. .cls = &bast_pm_sysclass,
  207. };
  208. static int smartmedia_map[] = { 0 };
  209. static int chip0_map[] = { 1 };
  210. static int chip1_map[] = { 2 };
  211. static int chip2_map[] = { 3 };
  212. static struct mtd_partition bast_default_nand_part[] = {
  213. [0] = {
  214. .name = "Boot Agent",
  215. .size = SZ_16K,
  216. .offset = 0,
  217. },
  218. [1] = {
  219. .name = "/boot",
  220. .size = SZ_4M - SZ_16K,
  221. .offset = SZ_16K,
  222. },
  223. [2] = {
  224. .name = "user",
  225. .offset = SZ_4M,
  226. .size = MTDPART_SIZ_FULL,
  227. }
  228. };
  229. /* the bast has 4 selectable slots for nand-flash, the three
  230. * on-board chip areas, as well as the external SmartMedia
  231. * slot.
  232. *
  233. * Note, there is no current hot-plug support for the SmartMedia
  234. * socket.
  235. */
  236. static struct s3c2410_nand_set bast_nand_sets[] = {
  237. [0] = {
  238. .name = "SmartMedia",
  239. .nr_chips = 1,
  240. .nr_map = smartmedia_map,
  241. .nr_partitions = ARRAY_SIZE(bast_default_nand_part),
  242. .partitions = bast_default_nand_part,
  243. },
  244. [1] = {
  245. .name = "chip0",
  246. .nr_chips = 1,
  247. .nr_map = chip0_map,
  248. .nr_partitions = ARRAY_SIZE(bast_default_nand_part),
  249. .partitions = bast_default_nand_part,
  250. },
  251. [2] = {
  252. .name = "chip1",
  253. .nr_chips = 1,
  254. .nr_map = chip1_map,
  255. .nr_partitions = ARRAY_SIZE(bast_default_nand_part),
  256. .partitions = bast_default_nand_part,
  257. },
  258. [3] = {
  259. .name = "chip2",
  260. .nr_chips = 1,
  261. .nr_map = chip2_map,
  262. .nr_partitions = ARRAY_SIZE(bast_default_nand_part),
  263. .partitions = bast_default_nand_part,
  264. }
  265. };
  266. static void bast_nand_select(struct s3c2410_nand_set *set, int slot)
  267. {
  268. unsigned int tmp;
  269. slot = set->nr_map[slot] & 3;
  270. pr_debug("bast_nand: selecting slot %d (set %p,%p)\n",
  271. slot, set, set->nr_map);
  272. tmp = __raw_readb(BAST_VA_CTRL2);
  273. tmp &= BAST_CPLD_CTLR2_IDERST;
  274. tmp |= slot;
  275. tmp |= BAST_CPLD_CTRL2_WNAND;
  276. pr_debug("bast_nand: ctrl2 now %02x\n", tmp);
  277. __raw_writeb(tmp, BAST_VA_CTRL2);
  278. }
  279. static struct s3c2410_platform_nand bast_nand_info = {
  280. .tacls = 30,
  281. .twrph0 = 60,
  282. .twrph1 = 60,
  283. .nr_sets = ARRAY_SIZE(bast_nand_sets),
  284. .sets = bast_nand_sets,
  285. .select_chip = bast_nand_select,
  286. };
  287. /* DM9000 */
  288. static struct resource bast_dm9k_resource[] = {
  289. [0] = {
  290. .start = S3C2410_CS5 + BAST_PA_DM9000,
  291. .end = S3C2410_CS5 + BAST_PA_DM9000 + 3,
  292. .flags = IORESOURCE_MEM,
  293. },
  294. [1] = {
  295. .start = S3C2410_CS5 + BAST_PA_DM9000 + 0x40,
  296. .end = S3C2410_CS5 + BAST_PA_DM9000 + 0x40 + 0x3f,
  297. .flags = IORESOURCE_MEM,
  298. },
  299. [2] = {
  300. .start = IRQ_DM9000,
  301. .end = IRQ_DM9000,
  302. .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
  303. }
  304. };
  305. /* for the moment we limit ourselves to 16bit IO until some
  306. * better IO routines can be written and tested
  307. */
  308. static struct dm9000_plat_data bast_dm9k_platdata = {
  309. .flags = DM9000_PLATF_16BITONLY,
  310. };
  311. static struct platform_device bast_device_dm9k = {
  312. .name = "dm9000",
  313. .id = 0,
  314. .num_resources = ARRAY_SIZE(bast_dm9k_resource),
  315. .resource = bast_dm9k_resource,
  316. .dev = {
  317. .platform_data = &bast_dm9k_platdata,
  318. }
  319. };
  320. /* serial devices */
  321. #define SERIAL_BASE (S3C2410_CS2 + BAST_PA_SUPERIO)
  322. #define SERIAL_FLAGS (UPF_BOOT_AUTOCONF | UPF_IOREMAP | UPF_SHARE_IRQ)
  323. #define SERIAL_CLK (1843200)
  324. static struct plat_serial8250_port bast_sio_data[] = {
  325. [0] = {
  326. .mapbase = SERIAL_BASE + 0x2f8,
  327. .irq = IRQ_PCSERIAL1,
  328. .flags = SERIAL_FLAGS,
  329. .iotype = UPIO_MEM,
  330. .regshift = 0,
  331. .uartclk = SERIAL_CLK,
  332. },
  333. [1] = {
  334. .mapbase = SERIAL_BASE + 0x3f8,
  335. .irq = IRQ_PCSERIAL2,
  336. .flags = SERIAL_FLAGS,
  337. .iotype = UPIO_MEM,
  338. .regshift = 0,
  339. .uartclk = SERIAL_CLK,
  340. },
  341. { }
  342. };
  343. static struct platform_device bast_sio = {
  344. .name = "serial8250",
  345. .id = PLAT8250_DEV_PLATFORM,
  346. .dev = {
  347. .platform_data = &bast_sio_data,
  348. },
  349. };
  350. /* we have devices on the bus which cannot work much over the
  351. * standard 100KHz i2c bus frequency
  352. */
  353. static struct s3c2410_platform_i2c bast_i2c_info = {
  354. .flags = 0,
  355. .slave_addr = 0x10,
  356. .bus_freq = 100*1000,
  357. .max_freq = 130*1000,
  358. };
  359. /* Asix AX88796 10/100 ethernet controller */
  360. static struct ax_plat_data bast_asix_platdata = {
  361. .flags = AXFLG_MAC_FROMDEV,
  362. .wordlength = 2,
  363. .dcr_val = 0x48,
  364. .rcr_val = 0x40,
  365. };
  366. static struct resource bast_asix_resource[] = {
  367. [0] = {
  368. .start = S3C2410_CS5 + BAST_PA_ASIXNET,
  369. .end = S3C2410_CS5 + BAST_PA_ASIXNET + (0x18 * 0x20) - 1,
  370. .flags = IORESOURCE_MEM,
  371. },
  372. [1] = {
  373. .start = S3C2410_CS5 + BAST_PA_ASIXNET + (0x1f * 0x20),
  374. .end = S3C2410_CS5 + BAST_PA_ASIXNET + (0x1f * 0x20),
  375. .flags = IORESOURCE_MEM,
  376. },
  377. [2] = {
  378. .start = IRQ_ASIX,
  379. .end = IRQ_ASIX,
  380. .flags = IORESOURCE_IRQ
  381. }
  382. };
  383. static struct platform_device bast_device_asix = {
  384. .name = "ax88796",
  385. .id = 0,
  386. .num_resources = ARRAY_SIZE(bast_asix_resource),
  387. .resource = bast_asix_resource,
  388. .dev = {
  389. .platform_data = &bast_asix_platdata
  390. }
  391. };
  392. /* Asix AX88796 10/100 ethernet controller parallel port */
  393. static struct resource bast_asixpp_resource[] = {
  394. [0] = {
  395. .start = S3C2410_CS5 + BAST_PA_ASIXNET + (0x18 * 0x20),
  396. .end = S3C2410_CS5 + BAST_PA_ASIXNET + (0x1b * 0x20) - 1,
  397. .flags = IORESOURCE_MEM,
  398. }
  399. };
  400. static struct platform_device bast_device_axpp = {
  401. .name = "ax88796-pp",
  402. .id = 0,
  403. .num_resources = ARRAY_SIZE(bast_asixpp_resource),
  404. .resource = bast_asixpp_resource,
  405. };
  406. /* LCD/VGA controller */
  407. static struct s3c2410fb_display __initdata bast_lcd_info[] = {
  408. {
  409. .type = S3C2410_LCDCON1_TFT,
  410. .width = 640,
  411. .height = 480,
  412. .pixclock = 33333,
  413. .xres = 640,
  414. .yres = 480,
  415. .bpp = 4,
  416. .left_margin = 40,
  417. .right_margin = 20,
  418. .hsync_len = 88,
  419. .upper_margin = 30,
  420. .lower_margin = 32,
  421. .vsync_len = 3,
  422. .lcdcon5 = 0x00014b02,
  423. },
  424. {
  425. .type = S3C2410_LCDCON1_TFT,
  426. .width = 640,
  427. .height = 480,
  428. .pixclock = 33333,
  429. .xres = 640,
  430. .yres = 480,
  431. .bpp = 8,
  432. .left_margin = 40,
  433. .right_margin = 20,
  434. .hsync_len = 88,
  435. .upper_margin = 30,
  436. .lower_margin = 32,
  437. .vsync_len = 3,
  438. .lcdcon5 = 0x00014b02,
  439. },
  440. {
  441. .type = S3C2410_LCDCON1_TFT,
  442. .width = 640,
  443. .height = 480,
  444. .pixclock = 33333,
  445. .xres = 640,
  446. .yres = 480,
  447. .bpp = 16,
  448. .left_margin = 40,
  449. .right_margin = 20,
  450. .hsync_len = 88,
  451. .upper_margin = 30,
  452. .lower_margin = 32,
  453. .vsync_len = 3,
  454. .lcdcon5 = 0x00014b02,
  455. },
  456. };
  457. /* LCD/VGA controller */
  458. static struct s3c2410fb_mach_info __initdata bast_fb_info = {
  459. .displays = bast_lcd_info,
  460. .num_displays = ARRAY_SIZE(bast_lcd_info),
  461. .default_display = 1,
  462. };
  463. /* Standard BAST devices */
  464. static struct platform_device *bast_devices[] __initdata = {
  465. &s3c_device_usb,
  466. &s3c_device_lcd,
  467. &s3c_device_wdt,
  468. &s3c_device_i2c,
  469. &s3c_device_rtc,
  470. &s3c_device_nand,
  471. &bast_device_dm9k,
  472. &bast_device_asix,
  473. &bast_device_axpp,
  474. &bast_sio,
  475. };
  476. static struct clk *bast_clocks[] = {
  477. &s3c24xx_dclk0,
  478. &s3c24xx_dclk1,
  479. &s3c24xx_clkout0,
  480. &s3c24xx_clkout1,
  481. &s3c24xx_uclk,
  482. };
  483. static void __init bast_map_io(void)
  484. {
  485. /* initialise the clocks */
  486. s3c24xx_dclk0.parent = &clk_upll;
  487. s3c24xx_dclk0.rate = 12*1000*1000;
  488. s3c24xx_dclk1.parent = &clk_upll;
  489. s3c24xx_dclk1.rate = 24*1000*1000;
  490. s3c24xx_clkout0.parent = &s3c24xx_dclk0;
  491. s3c24xx_clkout1.parent = &s3c24xx_dclk1;
  492. s3c24xx_uclk.parent = &s3c24xx_clkout1;
  493. s3c24xx_register_clocks(bast_clocks, ARRAY_SIZE(bast_clocks));
  494. s3c_device_nand.dev.platform_data = &bast_nand_info;
  495. s3c_device_i2c.dev.platform_data = &bast_i2c_info;
  496. s3c24xx_init_io(bast_iodesc, ARRAY_SIZE(bast_iodesc));
  497. s3c24xx_init_clocks(0);
  498. s3c24xx_init_uarts(bast_uartcfgs, ARRAY_SIZE(bast_uartcfgs));
  499. usb_simtec_init();
  500. }
  501. static void __init bast_init(void)
  502. {
  503. sysdev_class_register(&bast_pm_sysclass);
  504. sysdev_register(&bast_pm_sysdev);
  505. s3c24xx_fb_set_platdata(&bast_fb_info);
  506. platform_add_devices(bast_devices, ARRAY_SIZE(bast_devices));
  507. nor_simtec_init();
  508. }
  509. MACHINE_START(BAST, "Simtec-BAST")
  510. /* Maintainer: Ben Dooks <ben@simtec.co.uk> */
  511. .phys_io = S3C2410_PA_UART,
  512. .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
  513. .boot_params = S3C2410_SDRAM_PA + 0x100,
  514. .map_io = bast_map_io,
  515. .init_irq = s3c24xx_init_irq,
  516. .init_machine = bast_init,
  517. .timer = &s3c24xx_timer,
  518. MACHINE_END