board-n8x0.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. /*
  2. * linux/arch/arm/mach-omap2/board-n8x0.c
  3. *
  4. * Copyright (C) 2005-2009 Nokia Corporation
  5. * Author: Juha Yrjola <juha.yrjola@nokia.com>
  6. *
  7. * Modified from mach-omap2/board-generic.c
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #include <linux/clk.h>
  14. #include <linux/delay.h>
  15. #include <linux/gpio.h>
  16. #include <linux/init.h>
  17. #include <linux/io.h>
  18. #include <linux/stddef.h>
  19. #include <linux/i2c.h>
  20. #include <linux/spi/spi.h>
  21. #include <linux/usb/musb.h>
  22. #include <asm/mach/arch.h>
  23. #include <asm/mach-types.h>
  24. #include <plat/board.h>
  25. #include <plat/common.h>
  26. #include <plat/menelaus.h>
  27. #include <mach/irqs.h>
  28. #include <plat/mcspi.h>
  29. #include <plat/onenand.h>
  30. #include <plat/mmc.h>
  31. #include <plat/serial.h>
  32. static int slot1_cover_open;
  33. static int slot2_cover_open;
  34. static struct device *mmc_device;
  35. #define TUSB6010_ASYNC_CS 1
  36. #define TUSB6010_SYNC_CS 4
  37. #define TUSB6010_GPIO_INT 58
  38. #define TUSB6010_GPIO_ENABLE 0
  39. #define TUSB6010_DMACHAN 0x3f
  40. #if defined(CONFIG_USB_TUSB6010) || \
  41. defined(CONFIG_USB_TUSB6010_MODULE)
  42. /*
  43. * Enable or disable power to TUSB6010. When enabling, turn on 3.3 V and
  44. * 1.5 V voltage regulators of PM companion chip. Companion chip will then
  45. * provide then PGOOD signal to TUSB6010 which will release it from reset.
  46. */
  47. static int tusb_set_power(int state)
  48. {
  49. int i, retval = 0;
  50. if (state) {
  51. gpio_set_value(TUSB6010_GPIO_ENABLE, 1);
  52. msleep(1);
  53. /* Wait until TUSB6010 pulls INT pin down */
  54. i = 100;
  55. while (i && gpio_get_value(TUSB6010_GPIO_INT)) {
  56. msleep(1);
  57. i--;
  58. }
  59. if (!i) {
  60. printk(KERN_ERR "tusb: powerup failed\n");
  61. retval = -ENODEV;
  62. }
  63. } else {
  64. gpio_set_value(TUSB6010_GPIO_ENABLE, 0);
  65. msleep(10);
  66. }
  67. return retval;
  68. }
  69. static struct musb_hdrc_config musb_config = {
  70. .multipoint = 1,
  71. .dyn_fifo = 1,
  72. .num_eps = 16,
  73. .ram_bits = 12,
  74. };
  75. static struct musb_hdrc_platform_data tusb_data = {
  76. #if defined(CONFIG_USB_MUSB_OTG)
  77. .mode = MUSB_OTG,
  78. #elif defined(CONFIG_USB_MUSB_PERIPHERAL)
  79. .mode = MUSB_PERIPHERAL,
  80. #else /* defined(CONFIG_USB_MUSB_HOST) */
  81. .mode = MUSB_HOST,
  82. #endif
  83. .set_power = tusb_set_power,
  84. .min_power = 25, /* x2 = 50 mA drawn from VBUS as peripheral */
  85. .power = 100, /* Max 100 mA VBUS for host mode */
  86. .config = &musb_config,
  87. };
  88. static void __init n8x0_usb_init(void)
  89. {
  90. int ret = 0;
  91. static char announce[] __initdata = KERN_INFO "TUSB 6010\n";
  92. /* PM companion chip power control pin */
  93. ret = gpio_request(TUSB6010_GPIO_ENABLE, "TUSB6010 enable");
  94. if (ret != 0) {
  95. printk(KERN_ERR "Could not get TUSB power GPIO%i\n",
  96. TUSB6010_GPIO_ENABLE);
  97. return;
  98. }
  99. gpio_direction_output(TUSB6010_GPIO_ENABLE, 0);
  100. tusb_set_power(0);
  101. ret = tusb6010_setup_interface(&tusb_data, TUSB6010_REFCLK_19, 2,
  102. TUSB6010_ASYNC_CS, TUSB6010_SYNC_CS,
  103. TUSB6010_GPIO_INT, TUSB6010_DMACHAN);
  104. if (ret != 0)
  105. goto err;
  106. printk(announce);
  107. return;
  108. err:
  109. gpio_free(TUSB6010_GPIO_ENABLE);
  110. }
  111. #else
  112. static void __init n8x0_usb_init(void) {}
  113. #endif /*CONFIG_USB_TUSB6010 */
  114. static struct omap2_mcspi_device_config p54spi_mcspi_config = {
  115. .turbo_mode = 0,
  116. .single_channel = 1,
  117. };
  118. static struct spi_board_info n800_spi_board_info[] __initdata = {
  119. {
  120. .modalias = "p54spi",
  121. .bus_num = 2,
  122. .chip_select = 0,
  123. .max_speed_hz = 48000000,
  124. .controller_data = &p54spi_mcspi_config,
  125. },
  126. };
  127. #if defined(CONFIG_MTD_ONENAND_OMAP2) || \
  128. defined(CONFIG_MTD_ONENAND_OMAP2_MODULE)
  129. static struct mtd_partition onenand_partitions[] = {
  130. {
  131. .name = "bootloader",
  132. .offset = 0,
  133. .size = 0x20000,
  134. .mask_flags = MTD_WRITEABLE, /* Force read-only */
  135. },
  136. {
  137. .name = "config",
  138. .offset = MTDPART_OFS_APPEND,
  139. .size = 0x60000,
  140. },
  141. {
  142. .name = "kernel",
  143. .offset = MTDPART_OFS_APPEND,
  144. .size = 0x200000,
  145. },
  146. {
  147. .name = "initfs",
  148. .offset = MTDPART_OFS_APPEND,
  149. .size = 0x400000,
  150. },
  151. {
  152. .name = "rootfs",
  153. .offset = MTDPART_OFS_APPEND,
  154. .size = MTDPART_SIZ_FULL,
  155. },
  156. };
  157. static struct omap_onenand_platform_data board_onenand_data = {
  158. .cs = 0,
  159. .gpio_irq = 26,
  160. .parts = onenand_partitions,
  161. .nr_parts = ARRAY_SIZE(onenand_partitions),
  162. .flags = ONENAND_SYNC_READ,
  163. };
  164. static void __init n8x0_onenand_init(void)
  165. {
  166. gpmc_onenand_init(&board_onenand_data);
  167. }
  168. #else
  169. static void __init n8x0_onenand_init(void) {}
  170. #endif
  171. #if defined(CONFIG_MENELAUS) && \
  172. (defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE))
  173. /*
  174. * On both N800 and N810, only the first of the two MMC controllers is in use.
  175. * The two MMC slots are multiplexed via Menelaus companion chip over I2C.
  176. * On N800, both slots are powered via Menelaus. On N810, only one of the
  177. * slots is powered via Menelaus. The N810 EMMC is powered via GPIO.
  178. *
  179. * VMMC slot 1 on both N800 and N810
  180. * VDCDC3_APE and VMCS2_APE slot 2 on N800
  181. * GPIO23 and GPIO9 slot 2 EMMC on N810
  182. *
  183. */
  184. #define N8X0_SLOT_SWITCH_GPIO 96
  185. #define N810_EMMC_VSD_GPIO 23
  186. #define NN810_EMMC_VIO_GPIO 9
  187. static int n8x0_mmc_switch_slot(struct device *dev, int slot)
  188. {
  189. #ifdef CONFIG_MMC_DEBUG
  190. dev_dbg(dev, "Choose slot %d\n", slot + 1);
  191. #endif
  192. gpio_set_value(N8X0_SLOT_SWITCH_GPIO, slot);
  193. return 0;
  194. }
  195. static int n8x0_mmc_set_power_menelaus(struct device *dev, int slot,
  196. int power_on, int vdd)
  197. {
  198. int mV;
  199. #ifdef CONFIG_MMC_DEBUG
  200. dev_dbg(dev, "Set slot %d power: %s (vdd %d)\n", slot + 1,
  201. power_on ? "on" : "off", vdd);
  202. #endif
  203. if (slot == 0) {
  204. if (!power_on)
  205. return menelaus_set_vmmc(0);
  206. switch (1 << vdd) {
  207. case MMC_VDD_33_34:
  208. case MMC_VDD_32_33:
  209. case MMC_VDD_31_32:
  210. mV = 3100;
  211. break;
  212. case MMC_VDD_30_31:
  213. mV = 3000;
  214. break;
  215. case MMC_VDD_28_29:
  216. mV = 2800;
  217. break;
  218. case MMC_VDD_165_195:
  219. mV = 1850;
  220. break;
  221. default:
  222. BUG();
  223. }
  224. return menelaus_set_vmmc(mV);
  225. } else {
  226. if (!power_on)
  227. return menelaus_set_vdcdc(3, 0);
  228. switch (1 << vdd) {
  229. case MMC_VDD_33_34:
  230. case MMC_VDD_32_33:
  231. mV = 3300;
  232. break;
  233. case MMC_VDD_30_31:
  234. case MMC_VDD_29_30:
  235. mV = 3000;
  236. break;
  237. case MMC_VDD_28_29:
  238. case MMC_VDD_27_28:
  239. mV = 2800;
  240. break;
  241. case MMC_VDD_24_25:
  242. case MMC_VDD_23_24:
  243. mV = 2400;
  244. break;
  245. case MMC_VDD_22_23:
  246. case MMC_VDD_21_22:
  247. mV = 2200;
  248. break;
  249. case MMC_VDD_20_21:
  250. mV = 2000;
  251. break;
  252. case MMC_VDD_165_195:
  253. mV = 1800;
  254. break;
  255. default:
  256. BUG();
  257. }
  258. return menelaus_set_vdcdc(3, mV);
  259. }
  260. return 0;
  261. }
  262. static void n810_set_power_emmc(struct device *dev,
  263. int power_on)
  264. {
  265. dev_dbg(dev, "Set EMMC power %s\n", power_on ? "on" : "off");
  266. if (power_on) {
  267. gpio_set_value(N810_EMMC_VSD_GPIO, 1);
  268. msleep(1);
  269. gpio_set_value(NN810_EMMC_VIO_GPIO, 1);
  270. msleep(1);
  271. } else {
  272. gpio_set_value(NN810_EMMC_VIO_GPIO, 0);
  273. msleep(50);
  274. gpio_set_value(N810_EMMC_VSD_GPIO, 0);
  275. msleep(50);
  276. }
  277. }
  278. static int n8x0_mmc_set_power(struct device *dev, int slot, int power_on,
  279. int vdd)
  280. {
  281. if (machine_is_nokia_n800() || slot == 0)
  282. return n8x0_mmc_set_power_menelaus(dev, slot, power_on, vdd);
  283. n810_set_power_emmc(dev, power_on);
  284. return 0;
  285. }
  286. static int n8x0_mmc_set_bus_mode(struct device *dev, int slot, int bus_mode)
  287. {
  288. int r;
  289. dev_dbg(dev, "Set slot %d bus mode %s\n", slot + 1,
  290. bus_mode == MMC_BUSMODE_OPENDRAIN ? "open-drain" : "push-pull");
  291. BUG_ON(slot != 0 && slot != 1);
  292. slot++;
  293. switch (bus_mode) {
  294. case MMC_BUSMODE_OPENDRAIN:
  295. r = menelaus_set_mmc_opendrain(slot, 1);
  296. break;
  297. case MMC_BUSMODE_PUSHPULL:
  298. r = menelaus_set_mmc_opendrain(slot, 0);
  299. break;
  300. default:
  301. BUG();
  302. }
  303. if (r != 0 && printk_ratelimit())
  304. dev_err(dev, "MMC: unable to set bus mode for slot %d\n",
  305. slot);
  306. return r;
  307. }
  308. static int n8x0_mmc_get_cover_state(struct device *dev, int slot)
  309. {
  310. slot++;
  311. BUG_ON(slot != 1 && slot != 2);
  312. if (slot == 1)
  313. return slot1_cover_open;
  314. else
  315. return slot2_cover_open;
  316. }
  317. static void n8x0_mmc_callback(void *data, u8 card_mask)
  318. {
  319. int bit, *openp, index;
  320. if (machine_is_nokia_n800()) {
  321. bit = 1 << 1;
  322. openp = &slot2_cover_open;
  323. index = 1;
  324. } else {
  325. bit = 1;
  326. openp = &slot1_cover_open;
  327. index = 0;
  328. }
  329. if (card_mask & bit)
  330. *openp = 1;
  331. else
  332. *openp = 0;
  333. omap_mmc_notify_cover_event(mmc_device, index, *openp);
  334. }
  335. void n8x0_mmc_slot1_cover_handler(void *arg, int closed_state)
  336. {
  337. if (mmc_device == NULL)
  338. return;
  339. slot1_cover_open = !closed_state;
  340. omap_mmc_notify_cover_event(mmc_device, 0, closed_state);
  341. }
  342. static int n8x0_mmc_late_init(struct device *dev)
  343. {
  344. int r, bit, *openp;
  345. int vs2sel;
  346. mmc_device = dev;
  347. r = menelaus_set_slot_sel(1);
  348. if (r < 0)
  349. return r;
  350. if (machine_is_nokia_n800())
  351. vs2sel = 0;
  352. else
  353. vs2sel = 2;
  354. r = menelaus_set_mmc_slot(2, 0, vs2sel, 1);
  355. if (r < 0)
  356. return r;
  357. n8x0_mmc_set_power(dev, 0, MMC_POWER_ON, 16); /* MMC_VDD_28_29 */
  358. n8x0_mmc_set_power(dev, 1, MMC_POWER_ON, 16);
  359. r = menelaus_set_mmc_slot(1, 1, 0, 1);
  360. if (r < 0)
  361. return r;
  362. r = menelaus_set_mmc_slot(2, 1, vs2sel, 1);
  363. if (r < 0)
  364. return r;
  365. r = menelaus_get_slot_pin_states();
  366. if (r < 0)
  367. return r;
  368. if (machine_is_nokia_n800()) {
  369. bit = 1 << 1;
  370. openp = &slot2_cover_open;
  371. } else {
  372. bit = 1;
  373. openp = &slot1_cover_open;
  374. slot2_cover_open = 0;
  375. }
  376. /* All slot pin bits seem to be inversed until first switch change */
  377. if (r == 0xf || r == (0xf & ~bit))
  378. r = ~r;
  379. if (r & bit)
  380. *openp = 1;
  381. else
  382. *openp = 0;
  383. r = menelaus_register_mmc_callback(n8x0_mmc_callback, NULL);
  384. return r;
  385. }
  386. static void n8x0_mmc_shutdown(struct device *dev)
  387. {
  388. int vs2sel;
  389. if (machine_is_nokia_n800())
  390. vs2sel = 0;
  391. else
  392. vs2sel = 2;
  393. menelaus_set_mmc_slot(1, 0, 0, 0);
  394. menelaus_set_mmc_slot(2, 0, vs2sel, 0);
  395. }
  396. static void n8x0_mmc_cleanup(struct device *dev)
  397. {
  398. menelaus_unregister_mmc_callback();
  399. gpio_free(N8X0_SLOT_SWITCH_GPIO);
  400. if (machine_is_nokia_n810()) {
  401. gpio_free(N810_EMMC_VSD_GPIO);
  402. gpio_free(NN810_EMMC_VIO_GPIO);
  403. }
  404. }
  405. /*
  406. * MMC controller1 has two slots that are multiplexed via I2C.
  407. * MMC controller2 is not in use.
  408. */
  409. static struct omap_mmc_platform_data mmc1_data = {
  410. .nr_slots = 2,
  411. .switch_slot = n8x0_mmc_switch_slot,
  412. .init = n8x0_mmc_late_init,
  413. .cleanup = n8x0_mmc_cleanup,
  414. .shutdown = n8x0_mmc_shutdown,
  415. .max_freq = 24000000,
  416. .dma_mask = 0xffffffff,
  417. .slots[0] = {
  418. .wires = 4,
  419. .set_power = n8x0_mmc_set_power,
  420. .set_bus_mode = n8x0_mmc_set_bus_mode,
  421. .get_cover_state = n8x0_mmc_get_cover_state,
  422. .ocr_mask = MMC_VDD_165_195 | MMC_VDD_30_31 |
  423. MMC_VDD_32_33 | MMC_VDD_33_34,
  424. .name = "internal",
  425. },
  426. .slots[1] = {
  427. .set_power = n8x0_mmc_set_power,
  428. .set_bus_mode = n8x0_mmc_set_bus_mode,
  429. .get_cover_state = n8x0_mmc_get_cover_state,
  430. .ocr_mask = MMC_VDD_165_195 | MMC_VDD_20_21 |
  431. MMC_VDD_21_22 | MMC_VDD_22_23 |
  432. MMC_VDD_23_24 | MMC_VDD_24_25 |
  433. MMC_VDD_27_28 | MMC_VDD_28_29 |
  434. MMC_VDD_29_30 | MMC_VDD_30_31 |
  435. MMC_VDD_32_33 | MMC_VDD_33_34,
  436. .name = "external",
  437. },
  438. };
  439. static struct omap_mmc_platform_data *mmc_data[OMAP24XX_NR_MMC];
  440. void __init n8x0_mmc_init(void)
  441. {
  442. int err;
  443. if (machine_is_nokia_n810()) {
  444. mmc1_data.slots[0].name = "external";
  445. /*
  446. * Some Samsung Movinand chips do not like open-ended
  447. * multi-block reads and fall to braind-dead state
  448. * while doing so. Reducing the number of blocks in
  449. * the transfer or delays in clock disable do not help
  450. */
  451. mmc1_data.slots[1].name = "internal";
  452. mmc1_data.slots[1].ban_openended = 1;
  453. }
  454. err = gpio_request(N8X0_SLOT_SWITCH_GPIO, "MMC slot switch");
  455. if (err)
  456. return err;
  457. gpio_direction_output(N8X0_SLOT_SWITCH_GPIO, 0);
  458. if (machine_is_nokia_n810()) {
  459. err = gpio_request(N810_EMMC_VSD_GPIO, "MMC slot 2 Vddf");
  460. if (err) {
  461. gpio_free(N8X0_SLOT_SWITCH_GPIO);
  462. return err;
  463. }
  464. gpio_direction_output(N810_EMMC_VSD_GPIO, 0);
  465. err = gpio_request(NN810_EMMC_VIO_GPIO, "MMC slot 2 Vdd");
  466. if (err) {
  467. gpio_free(N8X0_SLOT_SWITCH_GPIO);
  468. gpio_free(N810_EMMC_VSD_GPIO);
  469. return err;
  470. }
  471. gpio_direction_output(NN810_EMMC_VIO_GPIO, 0);
  472. }
  473. mmc_data[0] = &mmc1_data;
  474. omap2_init_mmc(mmc_data, OMAP24XX_NR_MMC);
  475. }
  476. #else
  477. void __init n8x0_mmc_init(void)
  478. {
  479. }
  480. void n8x0_mmc_slot1_cover_handler(void *arg, int state)
  481. {
  482. }
  483. #endif /* CONFIG_MMC_OMAP */
  484. #ifdef CONFIG_MENELAUS
  485. static int n8x0_auto_sleep_regulators(void)
  486. {
  487. u32 val;
  488. int ret;
  489. val = EN_VPLL_SLEEP | EN_VMMC_SLEEP \
  490. | EN_VAUX_SLEEP | EN_VIO_SLEEP \
  491. | EN_VMEM_SLEEP | EN_DC3_SLEEP \
  492. | EN_VC_SLEEP | EN_DC2_SLEEP;
  493. ret = menelaus_set_regulator_sleep(1, val);
  494. if (ret < 0) {
  495. printk(KERN_ERR "Could not set regulators to sleep on "
  496. "menelaus: %u\n", ret);
  497. return ret;
  498. }
  499. return 0;
  500. }
  501. static int n8x0_auto_voltage_scale(void)
  502. {
  503. int ret;
  504. ret = menelaus_set_vcore_hw(1400, 1050);
  505. if (ret < 0) {
  506. printk(KERN_ERR "Could not set VCORE voltage on "
  507. "menelaus: %u\n", ret);
  508. return ret;
  509. }
  510. return 0;
  511. }
  512. static int n8x0_menelaus_late_init(struct device *dev)
  513. {
  514. int ret;
  515. ret = n8x0_auto_voltage_scale();
  516. if (ret < 0)
  517. return ret;
  518. ret = n8x0_auto_sleep_regulators();
  519. if (ret < 0)
  520. return ret;
  521. return 0;
  522. }
  523. static struct i2c_board_info __initdata n8x0_i2c_board_info_1[] = {
  524. {
  525. I2C_BOARD_INFO("menelaus", 0x72),
  526. .irq = INT_24XX_SYS_NIRQ,
  527. },
  528. };
  529. static struct menelaus_platform_data n8x0_menelaus_platform_data = {
  530. .late_init = n8x0_menelaus_late_init,
  531. };
  532. static void __init n8x0_menelaus_init(void)
  533. {
  534. n8x0_i2c_board_info_1[0].platform_data = &n8x0_menelaus_platform_data;
  535. omap_register_i2c_bus(1, 400, n8x0_i2c_board_info_1,
  536. ARRAY_SIZE(n8x0_i2c_board_info_1));
  537. }
  538. #else
  539. static inline void __init n8x0_menelaus_init(void)
  540. {
  541. }
  542. #endif
  543. static void __init n8x0_map_io(void)
  544. {
  545. omap2_set_globals_242x();
  546. omap242x_map_common_io();
  547. }
  548. static void __init n8x0_init_irq(void)
  549. {
  550. omap2_init_common_hw(NULL, NULL);
  551. omap_init_irq();
  552. omap_gpio_init();
  553. }
  554. static void __init n8x0_init_machine(void)
  555. {
  556. /* FIXME: add n810 spi devices */
  557. spi_register_board_info(n800_spi_board_info,
  558. ARRAY_SIZE(n800_spi_board_info));
  559. omap_serial_init();
  560. n8x0_menelaus_init();
  561. n8x0_onenand_init();
  562. n8x0_mmc_init();
  563. n8x0_usb_init();
  564. }
  565. MACHINE_START(NOKIA_N800, "Nokia N800")
  566. .phys_io = 0x48000000,
  567. .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
  568. .boot_params = 0x80000100,
  569. .map_io = n8x0_map_io,
  570. .init_irq = n8x0_init_irq,
  571. .init_machine = n8x0_init_machine,
  572. .timer = &omap_timer,
  573. MACHINE_END
  574. MACHINE_START(NOKIA_N810, "Nokia N810")
  575. .phys_io = 0x48000000,
  576. .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
  577. .boot_params = 0x80000100,
  578. .map_io = n8x0_map_io,
  579. .init_irq = n8x0_init_irq,
  580. .init_machine = n8x0_init_machine,
  581. .timer = &omap_timer,
  582. MACHINE_END
  583. MACHINE_START(NOKIA_N810_WIMAX, "Nokia N810 WiMAX")
  584. .phys_io = 0x48000000,
  585. .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
  586. .boot_params = 0x80000100,
  587. .map_io = n8x0_map_io,
  588. .init_irq = n8x0_init_irq,
  589. .init_machine = n8x0_init_machine,
  590. .timer = &omap_timer,
  591. MACHINE_END