board-sam9261ek.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  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/board.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. .flags = IORESOURCE_IRQ
  77. | IORESOURCE_IRQ_LOWEDGE | IORESOURCE_IRQ_HIGHEDGE,
  78. }
  79. };
  80. static struct dm9000_plat_data dm9000_platdata = {
  81. .flags = DM9000_PLATF_16BITONLY | DM9000_PLATF_NO_EEPROM,
  82. };
  83. static struct platform_device dm9000_device = {
  84. .name = "dm9000",
  85. .id = 0,
  86. .num_resources = ARRAY_SIZE(dm9000_resource),
  87. .resource = dm9000_resource,
  88. .dev = {
  89. .platform_data = &dm9000_platdata,
  90. }
  91. };
  92. /*
  93. * SMC timings for the DM9000.
  94. * Note: These timings were calculated for MASTER_CLOCK = 100000000 according to the DM9000 timings.
  95. */
  96. static struct sam9_smc_config __initdata dm9000_smc_config = {
  97. .ncs_read_setup = 0,
  98. .nrd_setup = 2,
  99. .ncs_write_setup = 0,
  100. .nwe_setup = 2,
  101. .ncs_read_pulse = 8,
  102. .nrd_pulse = 4,
  103. .ncs_write_pulse = 8,
  104. .nwe_pulse = 4,
  105. .read_cycle = 16,
  106. .write_cycle = 16,
  107. .mode = AT91_SMC_READMODE | AT91_SMC_WRITEMODE | AT91_SMC_EXNWMODE_DISABLE | AT91_SMC_BAT_WRITE | AT91_SMC_DBW_16,
  108. .tdf_cycles = 1,
  109. };
  110. static void __init ek_add_device_dm9000(void)
  111. {
  112. struct resource *r = &dm9000_resource[2];
  113. /* Configure chip-select 2 (DM9000) */
  114. sam9_smc_configure(0, 2, &dm9000_smc_config);
  115. /* Configure Reset signal as output */
  116. at91_set_gpio_output(AT91_PIN_PC10, 0);
  117. /* Configure Interrupt pin as input, no pull-up */
  118. at91_set_gpio_input(AT91_PIN_PC11, 0);
  119. r->start = r->end = gpio_to_irq(AT91_PIN_PC11);
  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. .vbus_pin = {-EINVAL, -EINVAL},
  131. .overcurrent_pin= {-EINVAL, -EINVAL},
  132. };
  133. /*
  134. * USB Device Port
  135. */
  136. static struct at91_udc_data __initdata ek_udc_data = {
  137. .vbus_pin = AT91_PIN_PB29,
  138. .pullup_pin = -EINVAL, /* pull-up driven by UDC */
  139. };
  140. /*
  141. * NAND flash
  142. */
  143. static struct mtd_partition __initdata ek_nand_partition[] = {
  144. {
  145. .name = "Partition 1",
  146. .offset = 0,
  147. .size = SZ_256K,
  148. },
  149. {
  150. .name = "Partition 2",
  151. .offset = MTDPART_OFS_NXTBLK,
  152. .size = MTDPART_SIZ_FULL,
  153. },
  154. };
  155. static struct atmel_nand_data __initdata ek_nand_data = {
  156. .ale = 22,
  157. .cle = 21,
  158. .det_pin = -EINVAL,
  159. .rdy_pin = AT91_PIN_PC15,
  160. .enable_pin = AT91_PIN_PC14,
  161. .ecc_mode = NAND_ECC_SOFT,
  162. .on_flash_bbt = 1,
  163. .parts = ek_nand_partition,
  164. .num_parts = ARRAY_SIZE(ek_nand_partition),
  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(0, 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. .det_pin = -EINVAL,
  303. .wp_pin = -EINVAL,
  304. .vcc_pin = -EINVAL,
  305. };
  306. #endif /* CONFIG_SPI_ATMEL_* */
  307. /*
  308. * LCD Controller
  309. */
  310. #if defined(CONFIG_FB_ATMEL) || defined(CONFIG_FB_ATMEL_MODULE)
  311. #if defined(CONFIG_FB_ATMEL_STN)
  312. /* STN */
  313. static struct fb_videomode at91_stn_modes[] = {
  314. {
  315. .name = "SP06Q002 @ 75",
  316. .refresh = 75,
  317. .xres = 320, .yres = 240,
  318. .pixclock = KHZ2PICOS(1440),
  319. .left_margin = 1, .right_margin = 1,
  320. .upper_margin = 0, .lower_margin = 0,
  321. .hsync_len = 1, .vsync_len = 1,
  322. .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
  323. .vmode = FB_VMODE_NONINTERLACED,
  324. },
  325. };
  326. static struct fb_monspecs at91fb_default_stn_monspecs = {
  327. .manufacturer = "HIT",
  328. .monitor = "SP06Q002",
  329. .modedb = at91_stn_modes,
  330. .modedb_len = ARRAY_SIZE(at91_stn_modes),
  331. .hfmin = 15000,
  332. .hfmax = 64000,
  333. .vfmin = 50,
  334. .vfmax = 150,
  335. };
  336. #define AT91SAM9261_DEFAULT_STN_LCDCON2 (ATMEL_LCDC_MEMOR_LITTLE \
  337. | ATMEL_LCDC_DISTYPE_STNMONO \
  338. | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE \
  339. | ATMEL_LCDC_IFWIDTH_4 \
  340. | ATMEL_LCDC_SCANMOD_SINGLE)
  341. static void at91_lcdc_stn_power_control(int on)
  342. {
  343. /* backlight */
  344. if (on) { /* power up */
  345. at91_set_gpio_value(AT91_PIN_PC14, 0);
  346. at91_set_gpio_value(AT91_PIN_PC15, 0);
  347. } else { /* power down */
  348. at91_set_gpio_value(AT91_PIN_PC14, 1);
  349. at91_set_gpio_value(AT91_PIN_PC15, 1);
  350. }
  351. }
  352. static struct atmel_lcdfb_info __initdata ek_lcdc_data = {
  353. .default_bpp = 1,
  354. .default_dmacon = ATMEL_LCDC_DMAEN,
  355. .default_lcdcon2 = AT91SAM9261_DEFAULT_STN_LCDCON2,
  356. .default_monspecs = &at91fb_default_stn_monspecs,
  357. .atmel_lcdfb_power_control = at91_lcdc_stn_power_control,
  358. .guard_time = 1,
  359. #if defined(CONFIG_MACH_AT91SAM9G10EK)
  360. .lcd_wiring_mode = ATMEL_LCDC_WIRING_RGB,
  361. #endif
  362. };
  363. #else
  364. /* TFT */
  365. static struct fb_videomode at91_tft_vga_modes[] = {
  366. {
  367. .name = "TX09D50VM1CCA @ 60",
  368. .refresh = 60,
  369. .xres = 240, .yres = 320,
  370. .pixclock = KHZ2PICOS(4965),
  371. .left_margin = 1, .right_margin = 33,
  372. .upper_margin = 1, .lower_margin = 0,
  373. .hsync_len = 5, .vsync_len = 1,
  374. .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
  375. .vmode = FB_VMODE_NONINTERLACED,
  376. },
  377. };
  378. static struct fb_monspecs at91fb_default_tft_monspecs = {
  379. .manufacturer = "HIT",
  380. .monitor = "TX09D50VM1CCA",
  381. .modedb = at91_tft_vga_modes,
  382. .modedb_len = ARRAY_SIZE(at91_tft_vga_modes),
  383. .hfmin = 15000,
  384. .hfmax = 64000,
  385. .vfmin = 50,
  386. .vfmax = 150,
  387. };
  388. #define AT91SAM9261_DEFAULT_TFT_LCDCON2 (ATMEL_LCDC_MEMOR_LITTLE \
  389. | ATMEL_LCDC_DISTYPE_TFT \
  390. | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE)
  391. static void at91_lcdc_tft_power_control(int on)
  392. {
  393. if (on)
  394. at91_set_gpio_value(AT91_PIN_PA12, 0); /* power up */
  395. else
  396. at91_set_gpio_value(AT91_PIN_PA12, 1); /* power down */
  397. }
  398. static struct atmel_lcdfb_info __initdata ek_lcdc_data = {
  399. .lcdcon_is_backlight = true,
  400. .default_bpp = 16,
  401. .default_dmacon = ATMEL_LCDC_DMAEN,
  402. .default_lcdcon2 = AT91SAM9261_DEFAULT_TFT_LCDCON2,
  403. .default_monspecs = &at91fb_default_tft_monspecs,
  404. .atmel_lcdfb_power_control = at91_lcdc_tft_power_control,
  405. .guard_time = 1,
  406. #if defined(CONFIG_MACH_AT91SAM9G10EK)
  407. .lcd_wiring_mode = ATMEL_LCDC_WIRING_RGB,
  408. #endif
  409. };
  410. #endif
  411. #else
  412. static struct atmel_lcdfb_info __initdata ek_lcdc_data;
  413. #endif
  414. /*
  415. * GPIO Buttons
  416. */
  417. #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
  418. static struct gpio_keys_button ek_buttons[] = {
  419. {
  420. .gpio = AT91_PIN_PA27,
  421. .code = BTN_0,
  422. .desc = "Button 0",
  423. .active_low = 1,
  424. .wakeup = 1,
  425. },
  426. {
  427. .gpio = AT91_PIN_PA26,
  428. .code = BTN_1,
  429. .desc = "Button 1",
  430. .active_low = 1,
  431. .wakeup = 1,
  432. },
  433. {
  434. .gpio = AT91_PIN_PA25,
  435. .code = BTN_2,
  436. .desc = "Button 2",
  437. .active_low = 1,
  438. .wakeup = 1,
  439. },
  440. {
  441. .gpio = AT91_PIN_PA24,
  442. .code = BTN_3,
  443. .desc = "Button 3",
  444. .active_low = 1,
  445. .wakeup = 1,
  446. }
  447. };
  448. static struct gpio_keys_platform_data ek_button_data = {
  449. .buttons = ek_buttons,
  450. .nbuttons = ARRAY_SIZE(ek_buttons),
  451. };
  452. static struct platform_device ek_button_device = {
  453. .name = "gpio-keys",
  454. .id = -1,
  455. .num_resources = 0,
  456. .dev = {
  457. .platform_data = &ek_button_data,
  458. }
  459. };
  460. static void __init ek_add_device_buttons(void)
  461. {
  462. at91_set_gpio_input(AT91_PIN_PA27, 1); /* btn0 */
  463. at91_set_deglitch(AT91_PIN_PA27, 1);
  464. at91_set_gpio_input(AT91_PIN_PA26, 1); /* btn1 */
  465. at91_set_deglitch(AT91_PIN_PA26, 1);
  466. at91_set_gpio_input(AT91_PIN_PA25, 1); /* btn2 */
  467. at91_set_deglitch(AT91_PIN_PA25, 1);
  468. at91_set_gpio_input(AT91_PIN_PA24, 1); /* btn3 */
  469. at91_set_deglitch(AT91_PIN_PA24, 1);
  470. platform_device_register(&ek_button_device);
  471. }
  472. #else
  473. static void __init ek_add_device_buttons(void) {}
  474. #endif
  475. /*
  476. * LEDs
  477. */
  478. static struct gpio_led ek_leds[] = {
  479. { /* "bottom" led, green, userled1 to be defined */
  480. .name = "ds7",
  481. .gpio = AT91_PIN_PA14,
  482. .active_low = 1,
  483. .default_trigger = "none",
  484. },
  485. { /* "top" led, green, userled2 to be defined */
  486. .name = "ds8",
  487. .gpio = AT91_PIN_PA13,
  488. .active_low = 1,
  489. .default_trigger = "none",
  490. },
  491. { /* "power" led, yellow */
  492. .name = "ds1",
  493. .gpio = AT91_PIN_PA23,
  494. .default_trigger = "heartbeat",
  495. }
  496. };
  497. static void __init ek_board_init(void)
  498. {
  499. /* Serial */
  500. at91_add_device_serial();
  501. /* USB Host */
  502. at91_add_device_usbh(&ek_usbh_data);
  503. /* USB Device */
  504. at91_add_device_udc(&ek_udc_data);
  505. /* I2C */
  506. at91_add_device_i2c(NULL, 0);
  507. /* NAND */
  508. ek_add_device_nand();
  509. /* DM9000 ethernet */
  510. ek_add_device_dm9000();
  511. /* spi0 and mmc/sd share the same PIO pins */
  512. #if defined(CONFIG_SPI_ATMEL) || defined(CONFIG_SPI_ATMEL_MODULE)
  513. /* SPI */
  514. at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices));
  515. /* Touchscreen */
  516. ek_add_device_ts();
  517. /* SSC (to AT73C213) */
  518. at73c213_set_clk(&at73c213_data);
  519. at91_add_device_ssc(AT91SAM9261_ID_SSC1, ATMEL_SSC_TX);
  520. #else
  521. /* MMC */
  522. at91_add_device_mmc(0, &ek_mmc_data);
  523. #endif
  524. /* LCD Controller */
  525. at91_add_device_lcdc(&ek_lcdc_data);
  526. /* Push Buttons */
  527. ek_add_device_buttons();
  528. /* LEDs */
  529. at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds));
  530. }
  531. #if defined(CONFIG_MACH_AT91SAM9261EK)
  532. MACHINE_START(AT91SAM9261EK, "Atmel AT91SAM9261-EK")
  533. #else
  534. MACHINE_START(AT91SAM9G10EK, "Atmel AT91SAM9G10-EK")
  535. #endif
  536. /* Maintainer: Atmel */
  537. .timer = &at91sam926x_timer,
  538. .map_io = at91_map_io,
  539. .init_early = ek_init_early,
  540. .init_irq = at91_init_irq_default,
  541. .init_machine = ek_board_init,
  542. MACHINE_END