board-sam9261ek.c 15 KB

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