mach-bast.c 14 KB

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