board-ams-delta.c 15 KB

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