mach-bast.c 14 KB

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