board-ams-delta.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. /*
  2. * linux/arch/arm/mach-omap1/board-ams-delta.c
  3. *
  4. * Modified from board-generic.c
  5. *
  6. * Board specific inits for the Amstrad E3 (codename Delta) videophone
  7. *
  8. * Copyright (C) 2006 Jonathan McDowell <noodles@earth.li>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #include <linux/basic_mmio_gpio.h>
  15. #include <linux/gpio.h>
  16. #include <linux/kernel.h>
  17. #include <linux/init.h>
  18. #include <linux/input.h>
  19. #include <linux/interrupt.h>
  20. #include <linux/leds.h>
  21. #include <linux/platform_device.h>
  22. #include <linux/regulator/consumer.h>
  23. #include <linux/regulator/fixed.h>
  24. #include <linux/regulator/machine.h>
  25. #include <linux/serial_8250.h>
  26. #include <linux/export.h>
  27. #include <media/soc_camera.h>
  28. #include <asm/serial.h>
  29. #include <mach/hardware.h>
  30. #include <asm/mach-types.h>
  31. #include <asm/mach/arch.h>
  32. #include <asm/mach/map.h>
  33. #include <plat/io.h>
  34. #include <plat/board-ams-delta.h>
  35. #include <plat/keypad.h>
  36. #include <plat/mux.h>
  37. #include <plat/usb.h>
  38. #include <plat/board.h>
  39. #include "common.h"
  40. #include <mach/camera.h>
  41. #include <mach/ams-delta-fiq.h>
  42. static const unsigned int ams_delta_keymap[] = {
  43. KEY(0, 0, KEY_F1), /* Advert */
  44. KEY(0, 3, KEY_COFFEE), /* Games */
  45. KEY(0, 2, KEY_QUESTION), /* Directory */
  46. KEY(2, 3, KEY_CONNECT), /* Internet */
  47. KEY(1, 2, KEY_SHOP), /* Services */
  48. KEY(1, 1, KEY_PHONE), /* VoiceMail */
  49. KEY(0, 1, KEY_DELETE), /* Delete */
  50. KEY(2, 2, KEY_PLAY), /* Play */
  51. KEY(1, 0, KEY_PAGEUP), /* Up */
  52. KEY(1, 3, KEY_PAGEDOWN), /* Down */
  53. KEY(2, 0, KEY_EMAIL), /* ReadEmail */
  54. KEY(2, 1, KEY_STOP), /* Stop */
  55. /* Numeric keypad portion */
  56. KEY(0, 7, KEY_KP1),
  57. KEY(0, 6, KEY_KP2),
  58. KEY(0, 5, KEY_KP3),
  59. KEY(1, 7, KEY_KP4),
  60. KEY(1, 6, KEY_KP5),
  61. KEY(1, 5, KEY_KP6),
  62. KEY(2, 7, KEY_KP7),
  63. KEY(2, 6, KEY_KP8),
  64. KEY(2, 5, KEY_KP9),
  65. KEY(3, 6, KEY_KP0),
  66. KEY(3, 7, KEY_KPASTERISK),
  67. KEY(3, 5, KEY_KPDOT), /* # key */
  68. KEY(7, 2, KEY_NUMLOCK), /* Mute */
  69. KEY(7, 1, KEY_KPMINUS), /* Recall */
  70. KEY(6, 1, KEY_KPPLUS), /* Redial */
  71. KEY(7, 6, KEY_KPSLASH), /* Handsfree */
  72. KEY(6, 0, KEY_ENTER), /* Video */
  73. KEY(7, 4, KEY_CAMERA), /* Photo */
  74. KEY(0, 4, KEY_F2), /* Home */
  75. KEY(1, 4, KEY_F3), /* Office */
  76. KEY(2, 4, KEY_F4), /* Mobile */
  77. KEY(7, 7, KEY_F5), /* SMS */
  78. KEY(7, 5, KEY_F6), /* Email */
  79. /* QWERTY portion of keypad */
  80. KEY(3, 4, KEY_Q),
  81. KEY(3, 3, KEY_W),
  82. KEY(3, 2, KEY_E),
  83. KEY(3, 1, KEY_R),
  84. KEY(3, 0, KEY_T),
  85. KEY(4, 7, KEY_Y),
  86. KEY(4, 6, KEY_U),
  87. KEY(4, 5, KEY_I),
  88. KEY(4, 4, KEY_O),
  89. KEY(4, 3, KEY_P),
  90. KEY(4, 2, KEY_A),
  91. KEY(4, 1, KEY_S),
  92. KEY(4, 0, KEY_D),
  93. KEY(5, 7, KEY_F),
  94. KEY(5, 6, KEY_G),
  95. KEY(5, 5, KEY_H),
  96. KEY(5, 4, KEY_J),
  97. KEY(5, 3, KEY_K),
  98. KEY(5, 2, KEY_L),
  99. KEY(5, 1, KEY_Z),
  100. KEY(5, 0, KEY_X),
  101. KEY(6, 7, KEY_C),
  102. KEY(6, 6, KEY_V),
  103. KEY(6, 5, KEY_B),
  104. KEY(6, 4, KEY_N),
  105. KEY(6, 3, KEY_M),
  106. KEY(6, 2, KEY_SPACE),
  107. KEY(7, 0, KEY_LEFTSHIFT), /* Vol up */
  108. KEY(7, 3, KEY_LEFTCTRL), /* Vol down */
  109. };
  110. #define LATCH1_PHYS 0x01000000
  111. #define LATCH1_VIRT 0xEA000000
  112. #define MODEM_PHYS 0x04000000
  113. #define MODEM_VIRT 0xEB000000
  114. #define LATCH2_PHYS 0x08000000
  115. #define LATCH2_VIRT 0xEC000000
  116. static struct map_desc ams_delta_io_desc[] __initdata = {
  117. /* AMS_DELTA_LATCH1 */
  118. {
  119. .virtual = LATCH1_VIRT,
  120. .pfn = __phys_to_pfn(LATCH1_PHYS),
  121. .length = 0x01000000,
  122. .type = MT_DEVICE
  123. },
  124. /* AMS_DELTA_LATCH2 */
  125. {
  126. .virtual = LATCH2_VIRT,
  127. .pfn = __phys_to_pfn(LATCH2_PHYS),
  128. .length = 0x01000000,
  129. .type = MT_DEVICE
  130. },
  131. /* AMS_DELTA_MODEM */
  132. {
  133. .virtual = MODEM_VIRT,
  134. .pfn = __phys_to_pfn(MODEM_PHYS),
  135. .length = 0x01000000,
  136. .type = MT_DEVICE
  137. }
  138. };
  139. static struct omap_lcd_config ams_delta_lcd_config __initdata = {
  140. .ctrl_name = "internal",
  141. };
  142. static struct omap_usb_config ams_delta_usb_config = {
  143. .register_host = 1,
  144. .hmc_mode = 16,
  145. .pins[0] = 2,
  146. };
  147. static struct omap_board_config_kernel ams_delta_config[] __initdata = {
  148. { OMAP_TAG_LCD, &ams_delta_lcd_config },
  149. };
  150. #define LATCH1_GPIO_BASE 232
  151. #define LATCH1_NGPIO 8
  152. static struct resource latch1_resources[] = {
  153. [0] = {
  154. .name = "dat",
  155. .start = LATCH1_PHYS,
  156. .end = LATCH1_PHYS + (LATCH1_NGPIO - 1) / 8,
  157. .flags = IORESOURCE_MEM,
  158. },
  159. };
  160. static struct bgpio_pdata latch1_pdata = {
  161. .base = LATCH1_GPIO_BASE,
  162. .ngpio = LATCH1_NGPIO,
  163. };
  164. static struct platform_device latch1_gpio_device = {
  165. .name = "basic-mmio-gpio",
  166. .id = 0,
  167. .resource = latch1_resources,
  168. .num_resources = ARRAY_SIZE(latch1_resources),
  169. .dev = {
  170. .platform_data = &latch1_pdata,
  171. },
  172. };
  173. static struct resource latch2_resources[] = {
  174. [0] = {
  175. .name = "dat",
  176. .start = LATCH2_PHYS,
  177. .end = LATCH2_PHYS + (AMS_DELTA_LATCH2_NGPIO - 1) / 8,
  178. .flags = IORESOURCE_MEM,
  179. },
  180. };
  181. static struct bgpio_pdata latch2_pdata = {
  182. .base = AMS_DELTA_LATCH2_GPIO_BASE,
  183. .ngpio = AMS_DELTA_LATCH2_NGPIO,
  184. };
  185. static struct platform_device latch2_gpio_device = {
  186. .name = "basic-mmio-gpio",
  187. .id = 1,
  188. .resource = latch2_resources,
  189. .num_resources = ARRAY_SIZE(latch2_resources),
  190. .dev = {
  191. .platform_data = &latch2_pdata,
  192. },
  193. };
  194. static const struct gpio latch_gpios[] __initconst = {
  195. {
  196. .gpio = LATCH1_GPIO_BASE + 6,
  197. .flags = GPIOF_OUT_INIT_LOW,
  198. .label = "dockit1",
  199. },
  200. {
  201. .gpio = LATCH1_GPIO_BASE + 7,
  202. .flags = GPIOF_OUT_INIT_LOW,
  203. .label = "dockit2",
  204. },
  205. {
  206. .gpio = AMS_DELTA_GPIO_PIN_SCARD_RSTIN,
  207. .flags = GPIOF_OUT_INIT_LOW,
  208. .label = "scard_rstin",
  209. },
  210. {
  211. .gpio = AMS_DELTA_GPIO_PIN_SCARD_CMDVCC,
  212. .flags = GPIOF_OUT_INIT_LOW,
  213. .label = "scard_cmdvcc",
  214. },
  215. {
  216. .gpio = AMS_DELTA_GPIO_PIN_MODEM_CODEC,
  217. .flags = GPIOF_OUT_INIT_LOW,
  218. .label = "modem_codec",
  219. },
  220. {
  221. .gpio = AMS_DELTA_LATCH2_GPIO_BASE + 14,
  222. .flags = GPIOF_OUT_INIT_LOW,
  223. .label = "hookflash1",
  224. },
  225. {
  226. .gpio = AMS_DELTA_LATCH2_GPIO_BASE + 15,
  227. .flags = GPIOF_OUT_INIT_LOW,
  228. .label = "hookflash2",
  229. },
  230. };
  231. static struct regulator_consumer_supply modem_nreset_consumers[] = {
  232. REGULATOR_SUPPLY("RESET#", "serial8250.1"),
  233. REGULATOR_SUPPLY("POR", "cx20442-codec"),
  234. };
  235. static struct regulator_init_data modem_nreset_data = {
  236. .constraints = {
  237. .valid_ops_mask = REGULATOR_CHANGE_STATUS,
  238. .boot_on = 1,
  239. },
  240. .num_consumer_supplies = ARRAY_SIZE(modem_nreset_consumers),
  241. .consumer_supplies = modem_nreset_consumers,
  242. };
  243. static struct fixed_voltage_config modem_nreset_config = {
  244. .supply_name = "modem_nreset",
  245. .microvolts = 3300000,
  246. .gpio = AMS_DELTA_GPIO_PIN_MODEM_NRESET,
  247. .startup_delay = 25000,
  248. .enable_high = 1,
  249. .enabled_at_boot = 1,
  250. .init_data = &modem_nreset_data,
  251. };
  252. static struct platform_device modem_nreset_device = {
  253. .name = "reg-fixed-voltage",
  254. .id = -1,
  255. .dev = {
  256. .platform_data = &modem_nreset_config,
  257. },
  258. };
  259. struct modem_private_data {
  260. struct regulator *regulator;
  261. };
  262. static struct modem_private_data modem_priv;
  263. void ams_delta_latch_write(int base, int ngpio, u16 mask, u16 value)
  264. {
  265. int bit = 0;
  266. u16 bitpos = 1 << bit;
  267. for (; bit < ngpio; bit++, bitpos = bitpos << 1) {
  268. if (!(mask & bitpos))
  269. continue;
  270. else
  271. gpio_set_value(base + bit, (value & bitpos) != 0);
  272. }
  273. }
  274. EXPORT_SYMBOL(ams_delta_latch_write);
  275. static struct resource ams_delta_nand_resources[] = {
  276. [0] = {
  277. .start = OMAP1_MPUIO_BASE,
  278. .end = OMAP1_MPUIO_BASE +
  279. OMAP_MPUIO_IO_CNTL + sizeof(u32) - 1,
  280. .flags = IORESOURCE_MEM,
  281. },
  282. };
  283. static struct platform_device ams_delta_nand_device = {
  284. .name = "ams-delta-nand",
  285. .id = -1,
  286. .num_resources = ARRAY_SIZE(ams_delta_nand_resources),
  287. .resource = ams_delta_nand_resources,
  288. };
  289. static struct resource ams_delta_kp_resources[] = {
  290. [0] = {
  291. .start = INT_KEYBOARD,
  292. .end = INT_KEYBOARD,
  293. .flags = IORESOURCE_IRQ,
  294. },
  295. };
  296. static const struct matrix_keymap_data ams_delta_keymap_data = {
  297. .keymap = ams_delta_keymap,
  298. .keymap_size = ARRAY_SIZE(ams_delta_keymap),
  299. };
  300. static struct omap_kp_platform_data ams_delta_kp_data = {
  301. .rows = 8,
  302. .cols = 8,
  303. .keymap_data = &ams_delta_keymap_data,
  304. .delay = 9,
  305. };
  306. static struct platform_device ams_delta_kp_device = {
  307. .name = "omap-keypad",
  308. .id = -1,
  309. .dev = {
  310. .platform_data = &ams_delta_kp_data,
  311. },
  312. .num_resources = ARRAY_SIZE(ams_delta_kp_resources),
  313. .resource = ams_delta_kp_resources,
  314. };
  315. static struct platform_device ams_delta_lcd_device = {
  316. .name = "lcd_ams_delta",
  317. .id = -1,
  318. };
  319. static const struct gpio_led gpio_leds[] __initconst = {
  320. {
  321. .name = "camera",
  322. .gpio = LATCH1_GPIO_BASE + 0,
  323. .default_state = LEDS_GPIO_DEFSTATE_OFF,
  324. #ifdef CONFIG_LEDS_TRIGGERS
  325. .default_trigger = "ams_delta_camera",
  326. #endif
  327. },
  328. {
  329. .name = "advert",
  330. .gpio = LATCH1_GPIO_BASE + 1,
  331. .default_state = LEDS_GPIO_DEFSTATE_OFF,
  332. },
  333. {
  334. .name = "email",
  335. .gpio = LATCH1_GPIO_BASE + 2,
  336. .default_state = LEDS_GPIO_DEFSTATE_OFF,
  337. },
  338. {
  339. .name = "handsfree",
  340. .gpio = LATCH1_GPIO_BASE + 3,
  341. .default_state = LEDS_GPIO_DEFSTATE_OFF,
  342. },
  343. {
  344. .name = "voicemail",
  345. .gpio = LATCH1_GPIO_BASE + 4,
  346. .default_state = LEDS_GPIO_DEFSTATE_OFF,
  347. },
  348. {
  349. .name = "voice",
  350. .gpio = LATCH1_GPIO_BASE + 5,
  351. .default_state = LEDS_GPIO_DEFSTATE_OFF,
  352. },
  353. };
  354. static const struct gpio_led_platform_data leds_pdata __initconst = {
  355. .leds = gpio_leds,
  356. .num_leds = ARRAY_SIZE(gpio_leds),
  357. };
  358. static struct i2c_board_info ams_delta_camera_board_info[] = {
  359. {
  360. I2C_BOARD_INFO("ov6650", 0x60),
  361. },
  362. };
  363. #ifdef CONFIG_LEDS_TRIGGERS
  364. DEFINE_LED_TRIGGER(ams_delta_camera_led_trigger);
  365. static int ams_delta_camera_power(struct device *dev, int power)
  366. {
  367. /*
  368. * turn on camera LED
  369. */
  370. if (power)
  371. led_trigger_event(ams_delta_camera_led_trigger, LED_FULL);
  372. else
  373. led_trigger_event(ams_delta_camera_led_trigger, LED_OFF);
  374. return 0;
  375. }
  376. #else
  377. #define ams_delta_camera_power NULL
  378. #endif
  379. static struct soc_camera_link ams_delta_iclink = {
  380. .bus_id = 0, /* OMAP1 SoC camera bus */
  381. .i2c_adapter_id = 1,
  382. .board_info = &ams_delta_camera_board_info[0],
  383. .module_name = "ov6650",
  384. .power = ams_delta_camera_power,
  385. };
  386. static struct platform_device ams_delta_camera_device = {
  387. .name = "soc-camera-pdrv",
  388. .id = 0,
  389. .dev = {
  390. .platform_data = &ams_delta_iclink,
  391. },
  392. };
  393. static struct omap1_cam_platform_data ams_delta_camera_platform_data = {
  394. .camexclk_khz = 12000, /* default 12MHz clock, no extra DPLL */
  395. .lclk_khz_max = 1334, /* results in 5fps CIF, 10fps QCIF */
  396. };
  397. static struct platform_device *ams_delta_devices[] __initdata = {
  398. &latch1_gpio_device,
  399. &latch2_gpio_device,
  400. &ams_delta_kp_device,
  401. &ams_delta_camera_device,
  402. };
  403. static struct platform_device *late_devices[] __initdata = {
  404. &ams_delta_nand_device,
  405. &ams_delta_lcd_device,
  406. };
  407. static void __init ams_delta_init(void)
  408. {
  409. /* mux pins for uarts */
  410. omap_cfg_reg(UART1_TX);
  411. omap_cfg_reg(UART1_RTS);
  412. /* parallel camera interface */
  413. omap_cfg_reg(H19_1610_CAM_EXCLK);
  414. omap_cfg_reg(J15_1610_CAM_LCLK);
  415. omap_cfg_reg(L18_1610_CAM_VS);
  416. omap_cfg_reg(L15_1610_CAM_HS);
  417. omap_cfg_reg(L19_1610_CAM_D0);
  418. omap_cfg_reg(K14_1610_CAM_D1);
  419. omap_cfg_reg(K15_1610_CAM_D2);
  420. omap_cfg_reg(K19_1610_CAM_D3);
  421. omap_cfg_reg(K18_1610_CAM_D4);
  422. omap_cfg_reg(J14_1610_CAM_D5);
  423. omap_cfg_reg(J19_1610_CAM_D6);
  424. omap_cfg_reg(J18_1610_CAM_D7);
  425. omap_board_config = ams_delta_config;
  426. omap_board_config_size = ARRAY_SIZE(ams_delta_config);
  427. omap_serial_init();
  428. omap_register_i2c_bus(1, 100, NULL, 0);
  429. omap1_usb_init(&ams_delta_usb_config);
  430. omap1_set_camera_info(&ams_delta_camera_platform_data);
  431. #ifdef CONFIG_LEDS_TRIGGERS
  432. led_trigger_register_simple("ams_delta_camera",
  433. &ams_delta_camera_led_trigger);
  434. #endif
  435. gpio_led_register_device(-1, &leds_pdata);
  436. platform_add_devices(ams_delta_devices, ARRAY_SIZE(ams_delta_devices));
  437. ams_delta_init_fiq();
  438. omap_writew(omap_readw(ARM_RSTCT1) | 0x0004, ARM_RSTCT1);
  439. }
  440. static void modem_pm(struct uart_port *port, unsigned int state, unsigned old)
  441. {
  442. struct modem_private_data *priv = port->private_data;
  443. if (IS_ERR(priv->regulator))
  444. return;
  445. if (state == old)
  446. return;
  447. if (state == 0)
  448. regulator_enable(priv->regulator);
  449. else if (old == 0)
  450. regulator_disable(priv->regulator);
  451. }
  452. static struct plat_serial8250_port ams_delta_modem_ports[] = {
  453. {
  454. .membase = IOMEM(MODEM_VIRT),
  455. .mapbase = MODEM_PHYS,
  456. .irq = -EINVAL, /* changed later */
  457. .flags = UPF_BOOT_AUTOCONF,
  458. .irqflags = IRQF_TRIGGER_RISING,
  459. .iotype = UPIO_MEM,
  460. .regshift = 1,
  461. .uartclk = BASE_BAUD * 16,
  462. .pm = modem_pm,
  463. .private_data = &modem_priv,
  464. },
  465. { },
  466. };
  467. static struct platform_device ams_delta_modem_device = {
  468. .name = "serial8250",
  469. .id = PLAT8250_DEV_PLATFORM1,
  470. .dev = {
  471. .platform_data = ams_delta_modem_ports,
  472. },
  473. };
  474. static int __init late_init(void)
  475. {
  476. int err;
  477. if (!machine_is_ams_delta())
  478. return -ENODEV;
  479. err = gpio_request_array(latch_gpios, ARRAY_SIZE(latch_gpios));
  480. if (err) {
  481. pr_err("Couldn't take over latch1/latch2 GPIO pins\n");
  482. return err;
  483. }
  484. platform_add_devices(late_devices, ARRAY_SIZE(late_devices));
  485. err = platform_device_register(&modem_nreset_device);
  486. if (err) {
  487. pr_err("Couldn't register the modem regulator device\n");
  488. return err;
  489. }
  490. omap_cfg_reg(M14_1510_GPIO2);
  491. ams_delta_modem_ports[0].irq =
  492. gpio_to_irq(AMS_DELTA_GPIO_PIN_MODEM_IRQ);
  493. err = gpio_request(AMS_DELTA_GPIO_PIN_MODEM_IRQ, "modem");
  494. if (err) {
  495. pr_err("Couldn't request gpio pin for modem\n");
  496. return err;
  497. }
  498. gpio_direction_input(AMS_DELTA_GPIO_PIN_MODEM_IRQ);
  499. /* Initialize the modem_nreset regulator consumer before use */
  500. modem_priv.regulator = ERR_PTR(-ENODEV);
  501. ams_delta_latch2_write(AMS_DELTA_LATCH2_MODEM_CODEC,
  502. AMS_DELTA_LATCH2_MODEM_CODEC);
  503. err = platform_device_register(&ams_delta_modem_device);
  504. if (err)
  505. goto gpio_free;
  506. /*
  507. * Once the modem device is registered, the modem_nreset
  508. * regulator can be requested on behalf of that device.
  509. */
  510. modem_priv.regulator = regulator_get(&ams_delta_modem_device.dev,
  511. "RESET#");
  512. if (IS_ERR(modem_priv.regulator)) {
  513. err = PTR_ERR(modem_priv.regulator);
  514. goto unregister;
  515. }
  516. return 0;
  517. unregister:
  518. platform_device_unregister(&ams_delta_modem_device);
  519. gpio_free:
  520. gpio_free(AMS_DELTA_GPIO_PIN_MODEM_IRQ);
  521. return err;
  522. }
  523. late_initcall(late_init);
  524. static void __init ams_delta_map_io(void)
  525. {
  526. omap15xx_map_io();
  527. iotable_init(ams_delta_io_desc, ARRAY_SIZE(ams_delta_io_desc));
  528. }
  529. MACHINE_START(AMS_DELTA, "Amstrad E3 (Delta)")
  530. /* Maintainer: Jonathan McDowell <noodles@earth.li> */
  531. .atag_offset = 0x100,
  532. .map_io = ams_delta_map_io,
  533. .init_early = omap1_init_early,
  534. .reserve = omap_reserve,
  535. .init_irq = omap1_init_irq,
  536. .init_machine = ams_delta_init,
  537. .timer = &omap1_timer,
  538. .restart = omap1_restart,
  539. MACHINE_END