board-sam9261ek.c 15 KB

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