board-sam9261ek.c 15 KB

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