board-omap3pandora.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. /*
  2. * board-omap3pandora.c (Pandora Handheld Console)
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. * General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program; if not, write to the Free Software
  15. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  16. * 02110-1301 USA
  17. *
  18. */
  19. #include <linux/init.h>
  20. #include <linux/kernel.h>
  21. #include <linux/platform_device.h>
  22. #include <linux/spi/spi.h>
  23. #include <linux/spi/ads7846.h>
  24. #include <linux/regulator/machine.h>
  25. #include <linux/i2c/twl.h>
  26. #include <linux/leds.h>
  27. #include <linux/input.h>
  28. #include <linux/input/matrix_keypad.h>
  29. #include <linux/gpio_keys.h>
  30. #include <asm/mach-types.h>
  31. #include <asm/mach/arch.h>
  32. #include <asm/mach/map.h>
  33. #include <plat/board.h>
  34. #include <plat/common.h>
  35. #include <mach/gpio.h>
  36. #include <mach/hardware.h>
  37. #include <plat/mcspi.h>
  38. #include <plat/usb.h>
  39. #include <plat/display.h>
  40. #include "mux.h"
  41. #include "sdram-micron-mt46h32m32lf-6.h"
  42. #include "hsmmc.h"
  43. #define OMAP3_PANDORA_TS_GPIO 94
  44. static struct gpio_led pandora_gpio_leds[] = {
  45. {
  46. .name = "pandora::sd1",
  47. .default_trigger = "mmc0",
  48. .gpio = 128,
  49. }, {
  50. .name = "pandora::sd2",
  51. .default_trigger = "mmc1",
  52. .gpio = 129,
  53. }, {
  54. .name = "pandora::bluetooth",
  55. .gpio = 158,
  56. }, {
  57. .name = "pandora::wifi",
  58. .gpio = 159,
  59. },
  60. };
  61. static struct gpio_led_platform_data pandora_gpio_led_data = {
  62. .leds = pandora_gpio_leds,
  63. .num_leds = ARRAY_SIZE(pandora_gpio_leds),
  64. };
  65. static struct platform_device pandora_leds_gpio = {
  66. .name = "leds-gpio",
  67. .id = -1,
  68. .dev = {
  69. .platform_data = &pandora_gpio_led_data,
  70. },
  71. };
  72. #define GPIO_BUTTON(gpio_num, ev_type, ev_code, act_low, descr) \
  73. { \
  74. .gpio = gpio_num, \
  75. .type = ev_type, \
  76. .code = ev_code, \
  77. .active_low = act_low, \
  78. .debounce_interval = 4, \
  79. .desc = "btn " descr, \
  80. }
  81. #define GPIO_BUTTON_LOW(gpio_num, event_code, description) \
  82. GPIO_BUTTON(gpio_num, EV_KEY, event_code, 1, description)
  83. static struct gpio_keys_button pandora_gpio_keys[] = {
  84. GPIO_BUTTON_LOW(110, KEY_UP, "up"),
  85. GPIO_BUTTON_LOW(103, KEY_DOWN, "down"),
  86. GPIO_BUTTON_LOW(96, KEY_LEFT, "left"),
  87. GPIO_BUTTON_LOW(98, KEY_RIGHT, "right"),
  88. GPIO_BUTTON_LOW(109, KEY_PAGEUP, "game 1"),
  89. GPIO_BUTTON_LOW(111, KEY_END, "game 2"),
  90. GPIO_BUTTON_LOW(106, KEY_PAGEDOWN, "game 3"),
  91. GPIO_BUTTON_LOW(101, KEY_HOME, "game 4"),
  92. GPIO_BUTTON_LOW(102, KEY_RIGHTSHIFT, "l"),
  93. GPIO_BUTTON_LOW(97, KEY_KPPLUS, "l2"),
  94. GPIO_BUTTON_LOW(105, KEY_RIGHTCTRL, "r"),
  95. GPIO_BUTTON_LOW(107, KEY_KPMINUS, "r2"),
  96. GPIO_BUTTON_LOW(104, KEY_LEFTCTRL, "ctrl"),
  97. GPIO_BUTTON_LOW(99, KEY_MENU, "menu"),
  98. GPIO_BUTTON_LOW(176, KEY_COFFEE, "hold"),
  99. GPIO_BUTTON(100, EV_KEY, KEY_LEFTALT, 0, "alt"),
  100. GPIO_BUTTON(108, EV_SW, SW_LID, 1, "lid"),
  101. };
  102. static struct gpio_keys_platform_data pandora_gpio_key_info = {
  103. .buttons = pandora_gpio_keys,
  104. .nbuttons = ARRAY_SIZE(pandora_gpio_keys),
  105. };
  106. static struct platform_device pandora_keys_gpio = {
  107. .name = "gpio-keys",
  108. .id = -1,
  109. .dev = {
  110. .platform_data = &pandora_gpio_key_info,
  111. },
  112. };
  113. static const uint32_t board_keymap[] = {
  114. /* row, col, code */
  115. KEY(0, 0, KEY_9),
  116. KEY(0, 1, KEY_8),
  117. KEY(0, 2, KEY_I),
  118. KEY(0, 3, KEY_J),
  119. KEY(0, 4, KEY_N),
  120. KEY(0, 5, KEY_M),
  121. KEY(1, 0, KEY_0),
  122. KEY(1, 1, KEY_7),
  123. KEY(1, 2, KEY_U),
  124. KEY(1, 3, KEY_H),
  125. KEY(1, 4, KEY_B),
  126. KEY(1, 5, KEY_SPACE),
  127. KEY(2, 0, KEY_BACKSPACE),
  128. KEY(2, 1, KEY_6),
  129. KEY(2, 2, KEY_Y),
  130. KEY(2, 3, KEY_G),
  131. KEY(2, 4, KEY_V),
  132. KEY(2, 5, KEY_FN),
  133. KEY(3, 0, KEY_O),
  134. KEY(3, 1, KEY_5),
  135. KEY(3, 2, KEY_T),
  136. KEY(3, 3, KEY_F),
  137. KEY(3, 4, KEY_C),
  138. KEY(4, 0, KEY_P),
  139. KEY(4, 1, KEY_4),
  140. KEY(4, 2, KEY_R),
  141. KEY(4, 3, KEY_D),
  142. KEY(4, 4, KEY_X),
  143. KEY(5, 0, KEY_K),
  144. KEY(5, 1, KEY_3),
  145. KEY(5, 2, KEY_E),
  146. KEY(5, 3, KEY_S),
  147. KEY(5, 4, KEY_Z),
  148. KEY(6, 0, KEY_L),
  149. KEY(6, 1, KEY_2),
  150. KEY(6, 2, KEY_W),
  151. KEY(6, 3, KEY_A),
  152. KEY(6, 4, KEY_DOT),
  153. KEY(7, 0, KEY_ENTER),
  154. KEY(7, 1, KEY_1),
  155. KEY(7, 2, KEY_Q),
  156. KEY(7, 3, KEY_LEFTSHIFT),
  157. KEY(7, 4, KEY_COMMA),
  158. };
  159. static struct matrix_keymap_data board_map_data = {
  160. .keymap = board_keymap,
  161. .keymap_size = ARRAY_SIZE(board_keymap),
  162. };
  163. static struct twl4030_keypad_data pandora_kp_data = {
  164. .keymap_data = &board_map_data,
  165. .rows = 8,
  166. .cols = 6,
  167. .rep = 1,
  168. };
  169. static struct omap_dss_device pandora_lcd_device = {
  170. .name = "lcd",
  171. .driver_name = "tpo_td043mtea1_panel",
  172. .type = OMAP_DISPLAY_TYPE_DPI,
  173. .phy.dpi.data_lines = 24,
  174. .reset_gpio = 157,
  175. };
  176. static struct omap_dss_device pandora_tv_device = {
  177. .name = "tv",
  178. .driver_name = "venc",
  179. .type = OMAP_DISPLAY_TYPE_VENC,
  180. .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
  181. };
  182. static struct omap_dss_device *pandora_dss_devices[] = {
  183. &pandora_lcd_device,
  184. &pandora_tv_device,
  185. };
  186. static struct omap_dss_board_info pandora_dss_data = {
  187. .num_devices = ARRAY_SIZE(pandora_dss_devices),
  188. .devices = pandora_dss_devices,
  189. .default_device = &pandora_lcd_device,
  190. };
  191. static struct platform_device pandora_dss_device = {
  192. .name = "omapdss",
  193. .id = -1,
  194. .dev = {
  195. .platform_data = &pandora_dss_data,
  196. },
  197. };
  198. static struct omap2_hsmmc_info omap3pandora_mmc[] = {
  199. {
  200. .mmc = 1,
  201. .wires = 4,
  202. .gpio_cd = -EINVAL,
  203. .gpio_wp = 126,
  204. .ext_clock = 0,
  205. },
  206. {
  207. .mmc = 2,
  208. .wires = 4,
  209. .gpio_cd = -EINVAL,
  210. .gpio_wp = 127,
  211. .ext_clock = 1,
  212. .transceiver = true,
  213. },
  214. {
  215. .mmc = 3,
  216. .wires = 4,
  217. .gpio_cd = -EINVAL,
  218. .gpio_wp = -EINVAL,
  219. },
  220. {} /* Terminator */
  221. };
  222. static int omap3pandora_twl_gpio_setup(struct device *dev,
  223. unsigned gpio, unsigned ngpio)
  224. {
  225. /* gpio + {0,1} is "mmc{0,1}_cd" (input/IRQ) */
  226. omap3pandora_mmc[0].gpio_cd = gpio + 0;
  227. omap3pandora_mmc[1].gpio_cd = gpio + 1;
  228. omap2_hsmmc_init(omap3pandora_mmc);
  229. return 0;
  230. }
  231. static struct twl4030_gpio_platform_data omap3pandora_gpio_data = {
  232. .gpio_base = OMAP_MAX_GPIO_LINES,
  233. .irq_base = TWL4030_GPIO_IRQ_BASE,
  234. .irq_end = TWL4030_GPIO_IRQ_END,
  235. .setup = omap3pandora_twl_gpio_setup,
  236. };
  237. static struct regulator_consumer_supply pandora_vmmc1_supply =
  238. REGULATOR_SUPPLY("vmmc", "mmci-omap-hs.0");
  239. static struct regulator_consumer_supply pandora_vmmc2_supply =
  240. REGULATOR_SUPPLY("vmmc", "mmci-omap-hs.1");
  241. static struct regulator_consumer_supply pandora_vdda_dac_supply =
  242. REGULATOR_SUPPLY("vdda_dac", "omapdss");
  243. static struct regulator_consumer_supply pandora_vdds_supplies[] = {
  244. REGULATOR_SUPPLY("vdds_sdi", "omapdss"),
  245. REGULATOR_SUPPLY("vdds_dsi", "omapdss"),
  246. };
  247. static struct regulator_consumer_supply pandora_vcc_lcd_supply =
  248. REGULATOR_SUPPLY("vcc", "display0");
  249. static struct regulator_consumer_supply pandora_usb_phy_supply =
  250. REGULATOR_SUPPLY("hsusb0", "ehci-omap.0");
  251. /* ads7846 on SPI and 2 nub controllers on I2C */
  252. static struct regulator_consumer_supply pandora_vaux4_supplies[] = {
  253. REGULATOR_SUPPLY("vcc", "spi1.0"),
  254. REGULATOR_SUPPLY("vcc", "3-0066"),
  255. REGULATOR_SUPPLY("vcc", "3-0067"),
  256. };
  257. static struct regulator_consumer_supply pandora_adac_supply =
  258. REGULATOR_SUPPLY("vcc", "soc-audio");
  259. /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
  260. static struct regulator_init_data pandora_vmmc1 = {
  261. .constraints = {
  262. .min_uV = 1850000,
  263. .max_uV = 3150000,
  264. .valid_modes_mask = REGULATOR_MODE_NORMAL
  265. | REGULATOR_MODE_STANDBY,
  266. .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
  267. | REGULATOR_CHANGE_MODE
  268. | REGULATOR_CHANGE_STATUS,
  269. },
  270. .num_consumer_supplies = 1,
  271. .consumer_supplies = &pandora_vmmc1_supply,
  272. };
  273. /* VMMC2 for MMC2 pins CMD, CLK, DAT0..DAT3 (max 100 mA) */
  274. static struct regulator_init_data pandora_vmmc2 = {
  275. .constraints = {
  276. .min_uV = 1850000,
  277. .max_uV = 3150000,
  278. .valid_modes_mask = REGULATOR_MODE_NORMAL
  279. | REGULATOR_MODE_STANDBY,
  280. .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
  281. | REGULATOR_CHANGE_MODE
  282. | REGULATOR_CHANGE_STATUS,
  283. },
  284. .num_consumer_supplies = 1,
  285. .consumer_supplies = &pandora_vmmc2_supply,
  286. };
  287. /* VDAC for DSS driving S-Video */
  288. static struct regulator_init_data pandora_vdac = {
  289. .constraints = {
  290. .min_uV = 1800000,
  291. .max_uV = 1800000,
  292. .apply_uV = true,
  293. .valid_modes_mask = REGULATOR_MODE_NORMAL
  294. | REGULATOR_MODE_STANDBY,
  295. .valid_ops_mask = REGULATOR_CHANGE_MODE
  296. | REGULATOR_CHANGE_STATUS,
  297. },
  298. .num_consumer_supplies = 1,
  299. .consumer_supplies = &pandora_vdda_dac_supply,
  300. };
  301. /* VPLL2 for digital video outputs */
  302. static struct regulator_init_data pandora_vpll2 = {
  303. .constraints = {
  304. .min_uV = 1800000,
  305. .max_uV = 1800000,
  306. .apply_uV = true,
  307. .valid_modes_mask = REGULATOR_MODE_NORMAL
  308. | REGULATOR_MODE_STANDBY,
  309. .valid_ops_mask = REGULATOR_CHANGE_MODE
  310. | REGULATOR_CHANGE_STATUS,
  311. },
  312. .num_consumer_supplies = ARRAY_SIZE(pandora_vdds_supplies),
  313. .consumer_supplies = pandora_vdds_supplies,
  314. };
  315. /* VAUX1 for LCD */
  316. static struct regulator_init_data pandora_vaux1 = {
  317. .constraints = {
  318. .min_uV = 3000000,
  319. .max_uV = 3000000,
  320. .apply_uV = true,
  321. .valid_modes_mask = REGULATOR_MODE_NORMAL
  322. | REGULATOR_MODE_STANDBY,
  323. .valid_ops_mask = REGULATOR_CHANGE_MODE
  324. | REGULATOR_CHANGE_STATUS,
  325. },
  326. .num_consumer_supplies = 1,
  327. .consumer_supplies = &pandora_vcc_lcd_supply,
  328. };
  329. /* VAUX2 for USB host PHY */
  330. static struct regulator_init_data pandora_vaux2 = {
  331. .constraints = {
  332. .min_uV = 1800000,
  333. .max_uV = 1800000,
  334. .apply_uV = true,
  335. .valid_modes_mask = REGULATOR_MODE_NORMAL
  336. | REGULATOR_MODE_STANDBY,
  337. .valid_ops_mask = REGULATOR_CHANGE_MODE
  338. | REGULATOR_CHANGE_STATUS,
  339. },
  340. .num_consumer_supplies = 1,
  341. .consumer_supplies = &pandora_usb_phy_supply,
  342. };
  343. /* VAUX4 for ads7846 and nubs */
  344. static struct regulator_init_data pandora_vaux4 = {
  345. .constraints = {
  346. .min_uV = 2800000,
  347. .max_uV = 2800000,
  348. .apply_uV = true,
  349. .valid_modes_mask = REGULATOR_MODE_NORMAL
  350. | REGULATOR_MODE_STANDBY,
  351. .valid_ops_mask = REGULATOR_CHANGE_MODE
  352. | REGULATOR_CHANGE_STATUS,
  353. },
  354. .num_consumer_supplies = ARRAY_SIZE(pandora_vaux4_supplies),
  355. .consumer_supplies = pandora_vaux4_supplies,
  356. };
  357. /* VSIM for audio DAC */
  358. static struct regulator_init_data pandora_vsim = {
  359. .constraints = {
  360. .min_uV = 2800000,
  361. .max_uV = 2800000,
  362. .apply_uV = true,
  363. .valid_modes_mask = REGULATOR_MODE_NORMAL
  364. | REGULATOR_MODE_STANDBY,
  365. .valid_ops_mask = REGULATOR_CHANGE_MODE
  366. | REGULATOR_CHANGE_STATUS,
  367. },
  368. .num_consumer_supplies = 1,
  369. .consumer_supplies = &pandora_adac_supply,
  370. };
  371. static struct twl4030_usb_data omap3pandora_usb_data = {
  372. .usb_mode = T2_USB_MODE_ULPI,
  373. };
  374. static struct twl4030_codec_audio_data omap3pandora_audio_data = {
  375. .audio_mclk = 26000000,
  376. };
  377. static struct twl4030_codec_data omap3pandora_codec_data = {
  378. .audio_mclk = 26000000,
  379. .audio = &omap3pandora_audio_data,
  380. };
  381. static struct twl4030_platform_data omap3pandora_twldata = {
  382. .irq_base = TWL4030_IRQ_BASE,
  383. .irq_end = TWL4030_IRQ_END,
  384. .gpio = &omap3pandora_gpio_data,
  385. .usb = &omap3pandora_usb_data,
  386. .codec = &omap3pandora_codec_data,
  387. .vmmc1 = &pandora_vmmc1,
  388. .vmmc2 = &pandora_vmmc2,
  389. .vdac = &pandora_vdac,
  390. .vpll2 = &pandora_vpll2,
  391. .vaux1 = &pandora_vaux1,
  392. .vaux2 = &pandora_vaux2,
  393. .vaux4 = &pandora_vaux4,
  394. .vsim = &pandora_vsim,
  395. .keypad = &pandora_kp_data,
  396. };
  397. static struct i2c_board_info __initdata omap3pandora_i2c_boardinfo[] = {
  398. {
  399. I2C_BOARD_INFO("tps65950", 0x48),
  400. .flags = I2C_CLIENT_WAKE,
  401. .irq = INT_34XX_SYS_NIRQ,
  402. .platform_data = &omap3pandora_twldata,
  403. },
  404. };
  405. static struct i2c_board_info __initdata omap3pandora_i2c3_boardinfo[] = {
  406. {
  407. I2C_BOARD_INFO("bq27500", 0x55),
  408. .flags = I2C_CLIENT_WAKE,
  409. },
  410. };
  411. static int __init omap3pandora_i2c_init(void)
  412. {
  413. omap_register_i2c_bus(1, 2600, omap3pandora_i2c_boardinfo,
  414. ARRAY_SIZE(omap3pandora_i2c_boardinfo));
  415. /* i2c2 pins are not connected */
  416. omap_register_i2c_bus(3, 100, omap3pandora_i2c3_boardinfo,
  417. ARRAY_SIZE(omap3pandora_i2c3_boardinfo));
  418. return 0;
  419. }
  420. static void __init omap3pandora_ads7846_init(void)
  421. {
  422. int gpio = OMAP3_PANDORA_TS_GPIO;
  423. int ret;
  424. ret = gpio_request(gpio, "ads7846_pen_down");
  425. if (ret < 0) {
  426. printk(KERN_ERR "Failed to request GPIO %d for "
  427. "ads7846 pen down IRQ\n", gpio);
  428. return;
  429. }
  430. gpio_direction_input(gpio);
  431. }
  432. static int ads7846_get_pendown_state(void)
  433. {
  434. return !gpio_get_value(OMAP3_PANDORA_TS_GPIO);
  435. }
  436. static struct ads7846_platform_data ads7846_config = {
  437. .x_max = 0x0fff,
  438. .y_max = 0x0fff,
  439. .x_plate_ohms = 180,
  440. .pressure_max = 255,
  441. .debounce_max = 10,
  442. .debounce_tol = 3,
  443. .debounce_rep = 1,
  444. .get_pendown_state = ads7846_get_pendown_state,
  445. .keep_vref_on = 1,
  446. };
  447. static struct omap2_mcspi_device_config ads7846_mcspi_config = {
  448. .turbo_mode = 0,
  449. .single_channel = 1, /* 0: slave, 1: master */
  450. };
  451. static struct spi_board_info omap3pandora_spi_board_info[] __initdata = {
  452. {
  453. .modalias = "ads7846",
  454. .bus_num = 1,
  455. .chip_select = 0,
  456. .max_speed_hz = 1500000,
  457. .controller_data = &ads7846_mcspi_config,
  458. .irq = OMAP_GPIO_IRQ(OMAP3_PANDORA_TS_GPIO),
  459. .platform_data = &ads7846_config,
  460. }, {
  461. .modalias = "tpo_td043mtea1_panel_spi",
  462. .bus_num = 1,
  463. .chip_select = 1,
  464. .max_speed_hz = 375000,
  465. .platform_data = &pandora_lcd_device,
  466. }
  467. };
  468. static void __init omap3pandora_init_irq(void)
  469. {
  470. omap2_init_common_hw(mt46h32m32lf6_sdrc_params,
  471. mt46h32m32lf6_sdrc_params);
  472. omap_init_irq();
  473. omap_gpio_init();
  474. }
  475. static struct platform_device *omap3pandora_devices[] __initdata = {
  476. &pandora_leds_gpio,
  477. &pandora_keys_gpio,
  478. &pandora_dss_device,
  479. };
  480. static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = {
  481. .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY,
  482. .port_mode[1] = EHCI_HCD_OMAP_MODE_UNKNOWN,
  483. .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
  484. .phy_reset = true,
  485. .reset_gpio_port[0] = 16,
  486. .reset_gpio_port[1] = -EINVAL,
  487. .reset_gpio_port[2] = -EINVAL
  488. };
  489. #ifdef CONFIG_OMAP_MUX
  490. static struct omap_board_mux board_mux[] __initdata = {
  491. { .reg_offset = OMAP_MUX_TERMINATOR },
  492. };
  493. #else
  494. #define board_mux NULL
  495. #endif
  496. static struct omap_musb_board_data musb_board_data = {
  497. .interface_type = MUSB_INTERFACE_ULPI,
  498. .mode = MUSB_OTG,
  499. .power = 100,
  500. };
  501. static void __init omap3pandora_init(void)
  502. {
  503. omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
  504. omap3pandora_i2c_init();
  505. platform_add_devices(omap3pandora_devices,
  506. ARRAY_SIZE(omap3pandora_devices));
  507. omap_serial_init();
  508. spi_register_board_info(omap3pandora_spi_board_info,
  509. ARRAY_SIZE(omap3pandora_spi_board_info));
  510. omap3pandora_ads7846_init();
  511. usb_ehci_init(&ehci_pdata);
  512. usb_musb_init(&musb_board_data);
  513. /* Ensure SDRC pins are mux'd for self-refresh */
  514. omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
  515. omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
  516. }
  517. static void __init omap3pandora_map_io(void)
  518. {
  519. omap2_set_globals_343x();
  520. omap34xx_map_common_io();
  521. }
  522. MACHINE_START(OMAP3_PANDORA, "Pandora Handheld Console")
  523. .phys_io = 0x48000000,
  524. .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
  525. .boot_params = 0x80000100,
  526. .map_io = omap3pandora_map_io,
  527. .init_irq = omap3pandora_init_irq,
  528. .init_machine = omap3pandora_init,
  529. .timer = &omap_timer,
  530. MACHINE_END