board-sam9261ek.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. /*
  2. * linux/arch/arm/mach-at91/board-sam9261ek.c
  3. *
  4. * Copyright (C) 2005 SAN People
  5. * Copyright (C) 2006 Atmel
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. #include <linux/types.h>
  22. #include <linux/init.h>
  23. #include <linux/mm.h>
  24. #include <linux/module.h>
  25. #include <linux/platform_device.h>
  26. #include <linux/spi/spi.h>
  27. #include <linux/spi/ads7846.h>
  28. #include <linux/spi/at73c213.h>
  29. #include <linux/clk.h>
  30. #include <linux/dm9000.h>
  31. #include <linux/fb.h>
  32. #include <linux/gpio_keys.h>
  33. #include <linux/input.h>
  34. #include <video/atmel_lcdc.h>
  35. #include <asm/setup.h>
  36. #include <asm/mach-types.h>
  37. #include <asm/irq.h>
  38. #include <asm/mach/arch.h>
  39. #include <asm/mach/map.h>
  40. #include <asm/mach/irq.h>
  41. #include <mach/hardware.h>
  42. #include <mach/board.h>
  43. #include <mach/gpio.h>
  44. #include <mach/at91sam9_smc.h>
  45. #include <mach/at91_shdwc.h>
  46. #include <mach/system_rev.h>
  47. #include "sam9_smc.h"
  48. #include "generic.h"
  49. static void __init ek_init_early(void)
  50. {
  51. /* Initialize processor: 18.432 MHz crystal */
  52. at91_initialize(18432000);
  53. /* Setup the LEDs */
  54. at91_init_leds(AT91_PIN_PA13, AT91_PIN_PA14);
  55. /* DBGU on ttyS0. (Rx & Tx only) */
  56. at91_register_uart(0, 0, 0);
  57. /* set serial console to ttyS0 (ie, DBGU) */
  58. at91_set_serial_console(0);
  59. }
  60. /*
  61. * DM9000 ethernet device
  62. */
  63. #if defined(CONFIG_DM9000)
  64. static struct resource dm9000_resource[] = {
  65. [0] = {
  66. .start = AT91_CHIPSELECT_2,
  67. .end = AT91_CHIPSELECT_2 + 3,
  68. .flags = IORESOURCE_MEM
  69. },
  70. [1] = {
  71. .start = AT91_CHIPSELECT_2 + 0x44,
  72. .end = AT91_CHIPSELECT_2 + 0xFF,
  73. .flags = IORESOURCE_MEM
  74. },
  75. [2] = {
  76. .start = AT91_PIN_PC11,
  77. .end = AT91_PIN_PC11,
  78. .flags = IORESOURCE_IRQ
  79. | IORESOURCE_IRQ_LOWEDGE | IORESOURCE_IRQ_HIGHEDGE,
  80. }
  81. };
  82. static struct dm9000_plat_data dm9000_platdata = {
  83. .flags = DM9000_PLATF_16BITONLY | DM9000_PLATF_NO_EEPROM,
  84. };
  85. static struct platform_device dm9000_device = {
  86. .name = "dm9000",
  87. .id = 0,
  88. .num_resources = ARRAY_SIZE(dm9000_resource),
  89. .resource = dm9000_resource,
  90. .dev = {
  91. .platform_data = &dm9000_platdata,
  92. }
  93. };
  94. /*
  95. * SMC timings for the DM9000.
  96. * Note: These timings were calculated for MASTER_CLOCK = 100000000 according to the DM9000 timings.
  97. */
  98. static struct sam9_smc_config __initdata dm9000_smc_config = {
  99. .ncs_read_setup = 0,
  100. .nrd_setup = 2,
  101. .ncs_write_setup = 0,
  102. .nwe_setup = 2,
  103. .ncs_read_pulse = 8,
  104. .nrd_pulse = 4,
  105. .ncs_write_pulse = 8,
  106. .nwe_pulse = 4,
  107. .read_cycle = 16,
  108. .write_cycle = 16,
  109. .mode = AT91_SMC_READMODE | AT91_SMC_WRITEMODE | AT91_SMC_EXNWMODE_DISABLE | AT91_SMC_BAT_WRITE | AT91_SMC_DBW_16,
  110. .tdf_cycles = 1,
  111. };
  112. static void __init ek_add_device_dm9000(void)
  113. {
  114. /* Configure chip-select 2 (DM9000) */
  115. sam9_smc_configure(2, &dm9000_smc_config);
  116. /* Configure Reset signal as output */
  117. at91_set_gpio_output(AT91_PIN_PC10, 0);
  118. /* Configure Interrupt pin as input, no pull-up */
  119. at91_set_gpio_input(AT91_PIN_PC11, 0);
  120. platform_device_register(&dm9000_device);
  121. }
  122. #else
  123. static void __init ek_add_device_dm9000(void) {}
  124. #endif /* CONFIG_DM9000 */
  125. /*
  126. * USB Host Port
  127. */
  128. static struct at91_usbh_data __initdata ek_usbh_data = {
  129. .ports = 2,
  130. };
  131. /*
  132. * USB Device Port
  133. */
  134. static struct at91_udc_data __initdata ek_udc_data = {
  135. .vbus_pin = AT91_PIN_PB29,
  136. .pullup_pin = 0, /* pull-up driven by UDC */
  137. };
  138. /*
  139. * NAND flash
  140. */
  141. static struct mtd_partition __initdata ek_nand_partition[] = {
  142. {
  143. .name = "Partition 1",
  144. .offset = 0,
  145. .size = SZ_256K,
  146. },
  147. {
  148. .name = "Partition 2",
  149. .offset = MTDPART_OFS_NXTBLK,
  150. .size = MTDPART_SIZ_FULL,
  151. },
  152. };
  153. static struct mtd_partition * __init nand_partitions(int size, int *num_partitions)
  154. {
  155. *num_partitions = ARRAY_SIZE(ek_nand_partition);
  156. return ek_nand_partition;
  157. }
  158. static struct atmel_nand_data __initdata ek_nand_data = {
  159. .ale = 22,
  160. .cle = 21,
  161. // .det_pin = ... not connected
  162. .rdy_pin = AT91_PIN_PC15,
  163. .enable_pin = AT91_PIN_PC14,
  164. .partition_info = nand_partitions,
  165. };
  166. static struct sam9_smc_config __initdata ek_nand_smc_config = {
  167. .ncs_read_setup = 0,
  168. .nrd_setup = 1,
  169. .ncs_write_setup = 0,
  170. .nwe_setup = 1,
  171. .ncs_read_pulse = 3,
  172. .nrd_pulse = 3,
  173. .ncs_write_pulse = 3,
  174. .nwe_pulse = 3,
  175. .read_cycle = 5,
  176. .write_cycle = 5,
  177. .mode = AT91_SMC_READMODE | AT91_SMC_WRITEMODE | AT91_SMC_EXNWMODE_DISABLE,
  178. .tdf_cycles = 2,
  179. };
  180. static void __init ek_add_device_nand(void)
  181. {
  182. ek_nand_data.bus_width_16 = board_have_nand_16bit();
  183. /* setup bus-width (8 or 16) */
  184. if (ek_nand_data.bus_width_16)
  185. ek_nand_smc_config.mode |= AT91_SMC_DBW_16;
  186. else
  187. ek_nand_smc_config.mode |= AT91_SMC_DBW_8;
  188. /* configure chip-select 3 (NAND) */
  189. sam9_smc_configure(3, &ek_nand_smc_config);
  190. at91_add_device_nand(&ek_nand_data);
  191. }
  192. /*
  193. * SPI related devices
  194. */
  195. #if defined(CONFIG_SPI_ATMEL) || defined(CONFIG_SPI_ATMEL_MODULE)
  196. /*
  197. * ADS7846 Touchscreen
  198. */
  199. #if defined(CONFIG_TOUCHSCREEN_ADS7846) || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE)
  200. static int ads7843_pendown_state(void)
  201. {
  202. return !at91_get_gpio_value(AT91_PIN_PC2); /* Touchscreen PENIRQ */
  203. }
  204. static struct ads7846_platform_data ads_info = {
  205. .model = 7843,
  206. .x_min = 150,
  207. .x_max = 3830,
  208. .y_min = 190,
  209. .y_max = 3830,
  210. .vref_delay_usecs = 100,
  211. .x_plate_ohms = 450,
  212. .y_plate_ohms = 250,
  213. .pressure_max = 15000,
  214. .debounce_max = 1,
  215. .debounce_rep = 0,
  216. .debounce_tol = (~0),
  217. .get_pendown_state = ads7843_pendown_state,
  218. };
  219. static void __init ek_add_device_ts(void)
  220. {
  221. at91_set_B_periph(AT91_PIN_PC2, 1); /* External IRQ0, with pullup */
  222. at91_set_gpio_input(AT91_PIN_PA11, 1); /* Touchscreen BUSY signal */
  223. }
  224. #else
  225. static void __init ek_add_device_ts(void) {}
  226. #endif
  227. /*
  228. * Audio
  229. */
  230. static struct at73c213_board_info at73c213_data = {
  231. .ssc_id = 1,
  232. #if defined(CONFIG_MACH_AT91SAM9261EK)
  233. .shortname = "AT91SAM9261-EK external DAC",
  234. #else
  235. .shortname = "AT91SAM9G10-EK external DAC",
  236. #endif
  237. };
  238. #if defined(CONFIG_SND_AT73C213) || defined(CONFIG_SND_AT73C213_MODULE)
  239. static void __init at73c213_set_clk(struct at73c213_board_info *info)
  240. {
  241. struct clk *pck2;
  242. struct clk *plla;
  243. pck2 = clk_get(NULL, "pck2");
  244. plla = clk_get(NULL, "plla");
  245. /* AT73C213 MCK Clock */
  246. at91_set_B_periph(AT91_PIN_PB31, 0); /* PCK2 */
  247. clk_set_parent(pck2, plla);
  248. clk_put(plla);
  249. info->dac_clk = pck2;
  250. }
  251. #else
  252. static void __init at73c213_set_clk(struct at73c213_board_info *info) {}
  253. #endif
  254. /*
  255. * SPI devices
  256. */
  257. static struct spi_board_info ek_spi_devices[] = {
  258. { /* DataFlash chip */
  259. .modalias = "mtd_dataflash",
  260. .chip_select = 0,
  261. .max_speed_hz = 15 * 1000 * 1000,
  262. .bus_num = 0,
  263. },
  264. #if defined(CONFIG_TOUCHSCREEN_ADS7846) || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE)
  265. {
  266. .modalias = "ads7846",
  267. .chip_select = 2,
  268. .max_speed_hz = 125000 * 26, /* (max sample rate @ 3V) * (cmd + data + overhead) */
  269. .bus_num = 0,
  270. .platform_data = &ads_info,
  271. .irq = AT91SAM9261_ID_IRQ0,
  272. .controller_data = (void *) AT91_PIN_PA28, /* CS pin */
  273. },
  274. #endif
  275. #if defined(CONFIG_MTD_AT91_DATAFLASH_CARD)
  276. { /* DataFlash card - jumper (J12) configurable to CS3 or CS0 */
  277. .modalias = "mtd_dataflash",
  278. .chip_select = 3,
  279. .max_speed_hz = 15 * 1000 * 1000,
  280. .bus_num = 0,
  281. },
  282. #elif defined(CONFIG_SND_AT73C213) || defined(CONFIG_SND_AT73C213_MODULE)
  283. { /* AT73C213 DAC */
  284. .modalias = "at73c213",
  285. .chip_select = 3,
  286. .max_speed_hz = 10 * 1000 * 1000,
  287. .bus_num = 0,
  288. .mode = SPI_MODE_1,
  289. .platform_data = &at73c213_data,
  290. .controller_data = (void*) AT91_PIN_PA29, /* default for CS3 is PA6, but it must be PA29 */
  291. },
  292. #endif
  293. };
  294. #else /* CONFIG_SPI_ATMEL_* */
  295. /* spi0 and mmc/sd share the same PIO pins: cannot be used at the same time */
  296. /*
  297. * MCI (SD/MMC)
  298. * det_pin, wp_pin and vcc_pin are not connected
  299. */
  300. static struct at91_mmc_data __initdata ek_mmc_data = {
  301. .wire4 = 1,
  302. };
  303. #endif /* CONFIG_SPI_ATMEL_* */
  304. /*
  305. * LCD Controller
  306. */
  307. #if defined(CONFIG_FB_ATMEL) || defined(CONFIG_FB_ATMEL_MODULE)
  308. #if defined(CONFIG_FB_ATMEL_STN)
  309. /* STN */
  310. static struct fb_videomode at91_stn_modes[] = {
  311. {
  312. .name = "SP06Q002 @ 75",
  313. .refresh = 75,
  314. .xres = 320, .yres = 240,
  315. .pixclock = KHZ2PICOS(1440),
  316. .left_margin = 1, .right_margin = 1,
  317. .upper_margin = 0, .lower_margin = 0,
  318. .hsync_len = 1, .vsync_len = 1,
  319. .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
  320. .vmode = FB_VMODE_NONINTERLACED,
  321. },
  322. };
  323. static struct fb_monspecs at91fb_default_stn_monspecs = {
  324. .manufacturer = "HIT",
  325. .monitor = "SP06Q002",
  326. .modedb = at91_stn_modes,
  327. .modedb_len = ARRAY_SIZE(at91_stn_modes),
  328. .hfmin = 15000,
  329. .hfmax = 64000,
  330. .vfmin = 50,
  331. .vfmax = 150,
  332. };
  333. #define AT91SAM9261_DEFAULT_STN_LCDCON2 (ATMEL_LCDC_MEMOR_LITTLE \
  334. | ATMEL_LCDC_DISTYPE_STNMONO \
  335. | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE \
  336. | ATMEL_LCDC_IFWIDTH_4 \
  337. | ATMEL_LCDC_SCANMOD_SINGLE)
  338. static void at91_lcdc_stn_power_control(int on)
  339. {
  340. /* backlight */
  341. if (on) { /* power up */
  342. at91_set_gpio_value(AT91_PIN_PC14, 0);
  343. at91_set_gpio_value(AT91_PIN_PC15, 0);
  344. } else { /* power down */
  345. at91_set_gpio_value(AT91_PIN_PC14, 1);
  346. at91_set_gpio_value(AT91_PIN_PC15, 1);
  347. }
  348. }
  349. static struct atmel_lcdfb_info __initdata ek_lcdc_data = {
  350. .default_bpp = 1,
  351. .default_dmacon = ATMEL_LCDC_DMAEN,
  352. .default_lcdcon2 = AT91SAM9261_DEFAULT_STN_LCDCON2,
  353. .default_monspecs = &at91fb_default_stn_monspecs,
  354. .atmel_lcdfb_power_control = at91_lcdc_stn_power_control,
  355. .guard_time = 1,
  356. #if defined(CONFIG_MACH_AT91SAM9G10EK)
  357. .lcd_wiring_mode = ATMEL_LCDC_WIRING_RGB,
  358. #endif
  359. };
  360. #else
  361. /* TFT */
  362. static struct fb_videomode at91_tft_vga_modes[] = {
  363. {
  364. .name = "TX09D50VM1CCA @ 60",
  365. .refresh = 60,
  366. .xres = 240, .yres = 320,
  367. .pixclock = KHZ2PICOS(4965),
  368. .left_margin = 1, .right_margin = 33,
  369. .upper_margin = 1, .lower_margin = 0,
  370. .hsync_len = 5, .vsync_len = 1,
  371. .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
  372. .vmode = FB_VMODE_NONINTERLACED,
  373. },
  374. };
  375. static struct fb_monspecs at91fb_default_tft_monspecs = {
  376. .manufacturer = "HIT",
  377. .monitor = "TX09D50VM1CCA",
  378. .modedb = at91_tft_vga_modes,
  379. .modedb_len = ARRAY_SIZE(at91_tft_vga_modes),
  380. .hfmin = 15000,
  381. .hfmax = 64000,
  382. .vfmin = 50,
  383. .vfmax = 150,
  384. };
  385. #define AT91SAM9261_DEFAULT_TFT_LCDCON2 (ATMEL_LCDC_MEMOR_LITTLE \
  386. | ATMEL_LCDC_DISTYPE_TFT \
  387. | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE)
  388. static void at91_lcdc_tft_power_control(int on)
  389. {
  390. if (on)
  391. at91_set_gpio_value(AT91_PIN_PA12, 0); /* power up */
  392. else
  393. at91_set_gpio_value(AT91_PIN_PA12, 1); /* power down */
  394. }
  395. static struct atmel_lcdfb_info __initdata ek_lcdc_data = {
  396. .lcdcon_is_backlight = true,
  397. .default_bpp = 16,
  398. .default_dmacon = ATMEL_LCDC_DMAEN,
  399. .default_lcdcon2 = AT91SAM9261_DEFAULT_TFT_LCDCON2,
  400. .default_monspecs = &at91fb_default_tft_monspecs,
  401. .atmel_lcdfb_power_control = at91_lcdc_tft_power_control,
  402. .guard_time = 1,
  403. #if defined(CONFIG_MACH_AT91SAM9G10EK)
  404. .lcd_wiring_mode = ATMEL_LCDC_WIRING_RGB,
  405. #endif
  406. };
  407. #endif
  408. #else
  409. static struct atmel_lcdfb_info __initdata ek_lcdc_data;
  410. #endif
  411. /*
  412. * GPIO Buttons
  413. */
  414. #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
  415. static struct gpio_keys_button ek_buttons[] = {
  416. {
  417. .gpio = AT91_PIN_PA27,
  418. .code = BTN_0,
  419. .desc = "Button 0",
  420. .active_low = 1,
  421. .wakeup = 1,
  422. },
  423. {
  424. .gpio = AT91_PIN_PA26,
  425. .code = BTN_1,
  426. .desc = "Button 1",
  427. .active_low = 1,
  428. .wakeup = 1,
  429. },
  430. {
  431. .gpio = AT91_PIN_PA25,
  432. .code = BTN_2,
  433. .desc = "Button 2",
  434. .active_low = 1,
  435. .wakeup = 1,
  436. },
  437. {
  438. .gpio = AT91_PIN_PA24,
  439. .code = BTN_3,
  440. .desc = "Button 3",
  441. .active_low = 1,
  442. .wakeup = 1,
  443. }
  444. };
  445. static struct gpio_keys_platform_data ek_button_data = {
  446. .buttons = ek_buttons,
  447. .nbuttons = ARRAY_SIZE(ek_buttons),
  448. };
  449. static struct platform_device ek_button_device = {
  450. .name = "gpio-keys",
  451. .id = -1,
  452. .num_resources = 0,
  453. .dev = {
  454. .platform_data = &ek_button_data,
  455. }
  456. };
  457. static void __init ek_add_device_buttons(void)
  458. {
  459. at91_set_gpio_input(AT91_PIN_PA27, 1); /* btn0 */
  460. at91_set_deglitch(AT91_PIN_PA27, 1);
  461. at91_set_gpio_input(AT91_PIN_PA26, 1); /* btn1 */
  462. at91_set_deglitch(AT91_PIN_PA26, 1);
  463. at91_set_gpio_input(AT91_PIN_PA25, 1); /* btn2 */
  464. at91_set_deglitch(AT91_PIN_PA25, 1);
  465. at91_set_gpio_input(AT91_PIN_PA24, 1); /* btn3 */
  466. at91_set_deglitch(AT91_PIN_PA24, 1);
  467. platform_device_register(&ek_button_device);
  468. }
  469. #else
  470. static void __init ek_add_device_buttons(void) {}
  471. #endif
  472. /*
  473. * LEDs
  474. */
  475. static struct gpio_led ek_leds[] = {
  476. { /* "bottom" led, green, userled1 to be defined */
  477. .name = "ds7",
  478. .gpio = AT91_PIN_PA14,
  479. .active_low = 1,
  480. .default_trigger = "none",
  481. },
  482. { /* "top" led, green, userled2 to be defined */
  483. .name = "ds8",
  484. .gpio = AT91_PIN_PA13,
  485. .active_low = 1,
  486. .default_trigger = "none",
  487. },
  488. { /* "power" led, yellow */
  489. .name = "ds1",
  490. .gpio = AT91_PIN_PA23,
  491. .default_trigger = "heartbeat",
  492. }
  493. };
  494. static void __init ek_board_init(void)
  495. {
  496. /* Serial */
  497. at91_add_device_serial();
  498. /* USB Host */
  499. at91_add_device_usbh(&ek_usbh_data);
  500. /* USB Device */
  501. at91_add_device_udc(&ek_udc_data);
  502. /* I2C */
  503. at91_add_device_i2c(NULL, 0);
  504. /* NAND */
  505. ek_add_device_nand();
  506. /* DM9000 ethernet */
  507. ek_add_device_dm9000();
  508. /* spi0 and mmc/sd share the same PIO pins */
  509. #if defined(CONFIG_SPI_ATMEL) || defined(CONFIG_SPI_ATMEL_MODULE)
  510. /* SPI */
  511. at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices));
  512. /* Touchscreen */
  513. ek_add_device_ts();
  514. /* SSC (to AT73C213) */
  515. at73c213_set_clk(&at73c213_data);
  516. at91_add_device_ssc(AT91SAM9261_ID_SSC1, ATMEL_SSC_TX);
  517. #else
  518. /* MMC */
  519. at91_add_device_mmc(0, &ek_mmc_data);
  520. #endif
  521. /* LCD Controller */
  522. at91_add_device_lcdc(&ek_lcdc_data);
  523. /* Push Buttons */
  524. ek_add_device_buttons();
  525. /* LEDs */
  526. at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds));
  527. }
  528. #if defined(CONFIG_MACH_AT91SAM9261EK)
  529. MACHINE_START(AT91SAM9261EK, "Atmel AT91SAM9261-EK")
  530. #else
  531. MACHINE_START(AT91SAM9G10EK, "Atmel AT91SAM9G10-EK")
  532. #endif
  533. /* Maintainer: Atmel */
  534. .timer = &at91sam926x_timer,
  535. .map_io = at91_map_io,
  536. .init_early = ek_init_early,
  537. .init_irq = at91_init_irq_default,
  538. .init_machine = ek_board_init,
  539. MACHINE_END