board-osk.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. /*
  2. * linux/arch/arm/mach-omap1/board-osk.c
  3. *
  4. * Board specific init for OMAP5912 OSK
  5. *
  6. * Written by Dirk Behme <dirk.behme@de.bosch.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. *
  13. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  14. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  15. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  16. * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  17. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  18. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  20. * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  21. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  22. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  23. *
  24. * You should have received a copy of the GNU General Public License along
  25. * with this program; if not, write to the Free Software Foundation, Inc.,
  26. * 675 Mass Ave, Cambridge, MA 02139, USA.
  27. */
  28. #include <linux/kernel.h>
  29. #include <linux/init.h>
  30. #include <linux/platform_device.h>
  31. #include <linux/interrupt.h>
  32. #include <linux/irq.h>
  33. #include <linux/i2c.h>
  34. #include <linux/leds.h>
  35. #include <linux/mtd/mtd.h>
  36. #include <linux/mtd/partitions.h>
  37. #include <linux/i2c/tps65010.h>
  38. #include <mach/hardware.h>
  39. #include <asm/gpio.h>
  40. #include <asm/mach-types.h>
  41. #include <asm/mach/arch.h>
  42. #include <asm/mach/map.h>
  43. #include <asm/mach/flash.h>
  44. #include <mach/usb.h>
  45. #include <mach/mux.h>
  46. #include <mach/tc.h>
  47. #include <mach/common.h>
  48. #include <mach/mcbsp.h>
  49. #include <mach/omap-alsa.h>
  50. static struct mtd_partition osk_partitions[] = {
  51. /* bootloader (U-Boot, etc) in first sector */
  52. {
  53. .name = "bootloader",
  54. .offset = 0,
  55. .size = SZ_128K,
  56. .mask_flags = MTD_WRITEABLE, /* force read-only */
  57. },
  58. /* bootloader params in the next sector */
  59. {
  60. .name = "params",
  61. .offset = MTDPART_OFS_APPEND,
  62. .size = SZ_128K,
  63. .mask_flags = 0,
  64. }, {
  65. .name = "kernel",
  66. .offset = MTDPART_OFS_APPEND,
  67. .size = SZ_2M,
  68. .mask_flags = 0
  69. }, {
  70. .name = "filesystem",
  71. .offset = MTDPART_OFS_APPEND,
  72. .size = MTDPART_SIZ_FULL,
  73. .mask_flags = 0
  74. }
  75. };
  76. static struct flash_platform_data osk_flash_data = {
  77. .map_name = "cfi_probe",
  78. .width = 2,
  79. .parts = osk_partitions,
  80. .nr_parts = ARRAY_SIZE(osk_partitions),
  81. };
  82. static struct resource osk_flash_resource = {
  83. /* this is on CS3, wherever it's mapped */
  84. .flags = IORESOURCE_MEM,
  85. };
  86. static struct platform_device osk5912_flash_device = {
  87. .name = "omapflash",
  88. .id = 0,
  89. .dev = {
  90. .platform_data = &osk_flash_data,
  91. },
  92. .num_resources = 1,
  93. .resource = &osk_flash_resource,
  94. };
  95. static struct resource osk5912_smc91x_resources[] = {
  96. [0] = {
  97. .start = OMAP_OSK_ETHR_START, /* Physical */
  98. .end = OMAP_OSK_ETHR_START + 0xf,
  99. .flags = IORESOURCE_MEM,
  100. },
  101. [1] = {
  102. .start = OMAP_GPIO_IRQ(0),
  103. .end = OMAP_GPIO_IRQ(0),
  104. .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
  105. },
  106. };
  107. static struct platform_device osk5912_smc91x_device = {
  108. .name = "smc91x",
  109. .id = -1,
  110. .num_resources = ARRAY_SIZE(osk5912_smc91x_resources),
  111. .resource = osk5912_smc91x_resources,
  112. };
  113. static struct resource osk5912_cf_resources[] = {
  114. [0] = {
  115. .start = OMAP_GPIO_IRQ(62),
  116. .end = OMAP_GPIO_IRQ(62),
  117. .flags = IORESOURCE_IRQ,
  118. },
  119. };
  120. static struct platform_device osk5912_cf_device = {
  121. .name = "omap_cf",
  122. .id = -1,
  123. .dev = {
  124. .platform_data = (void *) 2 /* CS2 */,
  125. },
  126. .num_resources = ARRAY_SIZE(osk5912_cf_resources),
  127. .resource = osk5912_cf_resources,
  128. };
  129. #define DEFAULT_BITPERSAMPLE 16
  130. static struct omap_mcbsp_reg_cfg mcbsp_regs = {
  131. .spcr2 = FREE | FRST | GRST | XRST | XINTM(3),
  132. .spcr1 = RINTM(3) | RRST,
  133. .rcr2 = RPHASE | RFRLEN2(OMAP_MCBSP_WORD_8) |
  134. RWDLEN2(OMAP_MCBSP_WORD_16) | RDATDLY(0),
  135. .rcr1 = RFRLEN1(OMAP_MCBSP_WORD_8) | RWDLEN1(OMAP_MCBSP_WORD_16),
  136. .xcr2 = XPHASE | XFRLEN2(OMAP_MCBSP_WORD_8) |
  137. XWDLEN2(OMAP_MCBSP_WORD_16) | XDATDLY(0) | XFIG,
  138. .xcr1 = XFRLEN1(OMAP_MCBSP_WORD_8) | XWDLEN1(OMAP_MCBSP_WORD_16),
  139. .srgr1 = FWID(DEFAULT_BITPERSAMPLE - 1),
  140. .srgr2 = GSYNC | CLKSP | FSGM | FPER(DEFAULT_BITPERSAMPLE * 2 - 1),
  141. /*.pcr0 = FSXM | FSRM | CLKXM | CLKRM | CLKXP | CLKRP,*/ /* mcbsp: master */
  142. .pcr0 = CLKXP | CLKRP, /* mcbsp: slave */
  143. };
  144. static struct omap_alsa_codec_config alsa_config = {
  145. .name = "OSK AIC23",
  146. .mcbsp_regs_alsa = &mcbsp_regs,
  147. .codec_configure_dev = NULL, /* aic23_configure, */
  148. .codec_set_samplerate = NULL, /* aic23_set_samplerate, */
  149. .codec_clock_setup = NULL, /* aic23_clock_setup, */
  150. .codec_clock_on = NULL, /* aic23_clock_on, */
  151. .codec_clock_off = NULL, /* aic23_clock_off, */
  152. .get_default_samplerate = NULL, /* aic23_get_default_samplerate, */
  153. };
  154. static struct platform_device osk5912_mcbsp1_device = {
  155. .name = "omap_alsa_mcbsp",
  156. .id = 1,
  157. .dev = {
  158. .platform_data = &alsa_config,
  159. },
  160. };
  161. static struct platform_device *osk5912_devices[] __initdata = {
  162. &osk5912_flash_device,
  163. &osk5912_smc91x_device,
  164. &osk5912_cf_device,
  165. &osk5912_mcbsp1_device,
  166. };
  167. static struct gpio_led tps_leds[] = {
  168. /* NOTE: D9 and D2 have hardware blink support.
  169. * Also, D9 requires non-battery power.
  170. */
  171. { .gpio = OSK_TPS_GPIO_LED_D9, .name = "d9", },
  172. { .gpio = OSK_TPS_GPIO_LED_D2, .name = "d2", },
  173. { .gpio = OSK_TPS_GPIO_LED_D3, .name = "d3", .active_low = 1,
  174. .default_trigger = "heartbeat", },
  175. };
  176. static struct gpio_led_platform_data tps_leds_data = {
  177. .num_leds = 3,
  178. .leds = tps_leds,
  179. };
  180. static struct platform_device osk5912_tps_leds = {
  181. .name = "leds-gpio",
  182. .id = 0,
  183. .dev.platform_data = &tps_leds_data,
  184. };
  185. static int osk_tps_setup(struct i2c_client *client, void *context)
  186. {
  187. /* Set GPIO 1 HIGH to disable VBUS power supply;
  188. * OHCI driver powers it up/down as needed.
  189. */
  190. gpio_request(OSK_TPS_GPIO_USB_PWR_EN, "n_vbus_en");
  191. gpio_direction_output(OSK_TPS_GPIO_USB_PWR_EN, 1);
  192. /* Set GPIO 2 high so LED D3 is off by default */
  193. tps65010_set_gpio_out_value(GPIO2, HIGH);
  194. /* Set GPIO 3 low to take ethernet out of reset */
  195. gpio_request(OSK_TPS_GPIO_LAN_RESET, "smc_reset");
  196. gpio_direction_output(OSK_TPS_GPIO_LAN_RESET, 0);
  197. /* GPIO4 is VDD_DSP */
  198. gpio_request(OSK_TPS_GPIO_DSP_PWR_EN, "dsp_power");
  199. gpio_direction_output(OSK_TPS_GPIO_DSP_PWR_EN, 1);
  200. /* REVISIT if DSP support isn't configured, power it off ... */
  201. /* Let LED1 (D9) blink; leds-gpio may override it */
  202. tps65010_set_led(LED1, BLINK);
  203. /* Set LED2 off by default */
  204. tps65010_set_led(LED2, OFF);
  205. /* Enable LOW_PWR handshake */
  206. tps65010_set_low_pwr(ON);
  207. /* Switch VLDO2 to 3.0V for AIC23 */
  208. tps65010_config_vregs1(TPS_LDO2_ENABLE | TPS_VLDO2_3_0V
  209. | TPS_LDO1_ENABLE);
  210. /* register these three LEDs */
  211. osk5912_tps_leds.dev.parent = &client->dev;
  212. platform_device_register(&osk5912_tps_leds);
  213. return 0;
  214. }
  215. static struct tps65010_board tps_board = {
  216. .base = OSK_TPS_GPIO_BASE,
  217. .outmask = 0x0f,
  218. .setup = osk_tps_setup,
  219. };
  220. static struct i2c_board_info __initdata osk_i2c_board_info[] = {
  221. {
  222. I2C_BOARD_INFO("tps65010", 0x48),
  223. .irq = OMAP_GPIO_IRQ(OMAP_MPUIO(1)),
  224. .platform_data = &tps_board,
  225. },
  226. /* TODO when driver support is ready:
  227. * - aic23 audio chip at 0x1a
  228. * - on Mistral, 24c04 eeprom at 0x50
  229. * - optionally on Mistral, ov9640 camera sensor at 0x30
  230. */
  231. };
  232. static void __init osk_init_smc91x(void)
  233. {
  234. u32 l;
  235. if ((gpio_request(0, "smc_irq")) < 0) {
  236. printk("Error requesting gpio 0 for smc91x irq\n");
  237. return;
  238. }
  239. /* Check EMIFS wait states to fix errors with SMC_GET_PKT_HDR */
  240. l = omap_readl(EMIFS_CCS(1));
  241. l |= 0x3;
  242. omap_writel(l, EMIFS_CCS(1));
  243. }
  244. static void __init osk_init_cf(void)
  245. {
  246. omap_cfg_reg(M7_1610_GPIO62);
  247. if ((gpio_request(62, "cf_irq")) < 0) {
  248. printk("Error requesting gpio 62 for CF irq\n");
  249. return;
  250. }
  251. /* the CF I/O IRQ is really active-low */
  252. set_irq_type(OMAP_GPIO_IRQ(62), IRQ_TYPE_EDGE_FALLING);
  253. }
  254. static void __init osk_init_irq(void)
  255. {
  256. omap1_init_common_hw();
  257. omap_init_irq();
  258. omap_gpio_init();
  259. osk_init_smc91x();
  260. osk_init_cf();
  261. }
  262. static struct omap_usb_config osk_usb_config __initdata = {
  263. /* has usb host connector (A) ... for development it can also
  264. * be used, with a NONSTANDARD gender-bending cable/dongle, as
  265. * a peripheral.
  266. */
  267. #ifdef CONFIG_USB_GADGET_OMAP
  268. .register_dev = 1,
  269. .hmc_mode = 0,
  270. #else
  271. .register_host = 1,
  272. .hmc_mode = 16,
  273. .rwc = 1,
  274. #endif
  275. .pins[0] = 2,
  276. };
  277. static struct omap_uart_config osk_uart_config __initdata = {
  278. .enabled_uarts = (1 << 0),
  279. };
  280. #ifdef CONFIG_OMAP_OSK_MISTRAL
  281. static struct omap_lcd_config osk_lcd_config __initdata = {
  282. .ctrl_name = "internal",
  283. };
  284. #endif
  285. static struct omap_board_config_kernel osk_config[] __initdata = {
  286. { OMAP_TAG_USB, &osk_usb_config },
  287. { OMAP_TAG_UART, &osk_uart_config },
  288. #ifdef CONFIG_OMAP_OSK_MISTRAL
  289. { OMAP_TAG_LCD, &osk_lcd_config },
  290. #endif
  291. };
  292. #ifdef CONFIG_OMAP_OSK_MISTRAL
  293. #include <linux/input.h>
  294. #include <linux/spi/spi.h>
  295. #include <linux/spi/ads7846.h>
  296. #include <mach/keypad.h>
  297. static const int osk_keymap[] = {
  298. /* KEY(col, row, code) */
  299. KEY(0, 0, KEY_F1), /* SW4 */
  300. KEY(0, 3, KEY_UP), /* (sw2/up) */
  301. KEY(1, 1, KEY_LEFTCTRL), /* SW5 */
  302. KEY(1, 2, KEY_LEFT), /* (sw2/left) */
  303. KEY(2, 0, KEY_SPACE), /* SW3 */
  304. KEY(2, 1, KEY_ESC), /* SW6 */
  305. KEY(2, 2, KEY_DOWN), /* (sw2/down) */
  306. KEY(3, 2, KEY_ENTER), /* (sw2/select) */
  307. KEY(3, 3, KEY_RIGHT), /* (sw2/right) */
  308. 0
  309. };
  310. static struct omap_kp_platform_data osk_kp_data = {
  311. .rows = 8,
  312. .cols = 8,
  313. .keymap = (int *) osk_keymap,
  314. .keymapsize = ARRAY_SIZE(osk_keymap),
  315. .delay = 9,
  316. };
  317. static struct resource osk5912_kp_resources[] = {
  318. [0] = {
  319. .start = INT_KEYBOARD,
  320. .end = INT_KEYBOARD,
  321. .flags = IORESOURCE_IRQ,
  322. },
  323. };
  324. static struct platform_device osk5912_kp_device = {
  325. .name = "omap-keypad",
  326. .id = -1,
  327. .dev = {
  328. .platform_data = &osk_kp_data,
  329. },
  330. .num_resources = ARRAY_SIZE(osk5912_kp_resources),
  331. .resource = osk5912_kp_resources,
  332. };
  333. static struct omap_backlight_config mistral_bl_data = {
  334. .default_intensity = 0xa0,
  335. };
  336. static struct platform_device mistral_bl_device = {
  337. .name = "omap-bl",
  338. .id = -1,
  339. .dev = {
  340. .platform_data = &mistral_bl_data,
  341. },
  342. };
  343. static struct platform_device osk5912_lcd_device = {
  344. .name = "lcd_osk",
  345. .id = -1,
  346. };
  347. static struct platform_device *mistral_devices[] __initdata = {
  348. &osk5912_kp_device,
  349. &mistral_bl_device,
  350. &osk5912_lcd_device,
  351. };
  352. static int mistral_get_pendown_state(void)
  353. {
  354. return !gpio_get_value(4);
  355. }
  356. static const struct ads7846_platform_data mistral_ts_info = {
  357. .model = 7846,
  358. .vref_delay_usecs = 100, /* internal, no capacitor */
  359. .x_plate_ohms = 419,
  360. .y_plate_ohms = 486,
  361. .get_pendown_state = mistral_get_pendown_state,
  362. };
  363. static struct spi_board_info __initdata mistral_boardinfo[] = { {
  364. /* MicroWire (bus 2) CS0 has an ads7846e */
  365. .modalias = "ads7846",
  366. .platform_data = &mistral_ts_info,
  367. .irq = OMAP_GPIO_IRQ(4),
  368. .max_speed_hz = 120000 /* max sample rate at 3V */
  369. * 26 /* command + data + overhead */,
  370. .bus_num = 2,
  371. .chip_select = 0,
  372. } };
  373. #ifdef CONFIG_PM
  374. static irqreturn_t
  375. osk_mistral_wake_interrupt(int irq, void *ignored)
  376. {
  377. return IRQ_HANDLED;
  378. }
  379. #endif
  380. static void __init osk_mistral_init(void)
  381. {
  382. /* NOTE: we could actually tell if there's a Mistral board
  383. * attached, e.g. by trying to read something from the ads7846.
  384. * But this arch_init() code is too early for that, since we
  385. * can't talk to the ads or even the i2c eeprom.
  386. */
  387. /* parallel camera interface */
  388. omap_cfg_reg(J15_1610_CAM_LCLK);
  389. omap_cfg_reg(J18_1610_CAM_D7);
  390. omap_cfg_reg(J19_1610_CAM_D6);
  391. omap_cfg_reg(J14_1610_CAM_D5);
  392. omap_cfg_reg(K18_1610_CAM_D4);
  393. omap_cfg_reg(K19_1610_CAM_D3);
  394. omap_cfg_reg(K15_1610_CAM_D2);
  395. omap_cfg_reg(K14_1610_CAM_D1);
  396. omap_cfg_reg(L19_1610_CAM_D0);
  397. omap_cfg_reg(L18_1610_CAM_VS);
  398. omap_cfg_reg(L15_1610_CAM_HS);
  399. omap_cfg_reg(M19_1610_CAM_RSTZ);
  400. omap_cfg_reg(Y15_1610_CAM_OUTCLK);
  401. /* serial camera interface */
  402. omap_cfg_reg(H19_1610_CAM_EXCLK);
  403. omap_cfg_reg(W13_1610_CCP_CLKM);
  404. omap_cfg_reg(Y12_1610_CCP_CLKP);
  405. /* CCP_DATAM CONFLICTS WITH UART1.TX (and serial console) */
  406. /* omap_cfg_reg(Y14_1610_CCP_DATAM); */
  407. omap_cfg_reg(W14_1610_CCP_DATAP);
  408. /* CAM_PWDN */
  409. if (gpio_request(11, "cam_pwdn") == 0) {
  410. omap_cfg_reg(N20_1610_GPIO11);
  411. gpio_direction_output(11, 0);
  412. } else
  413. pr_debug("OSK+Mistral: CAM_PWDN is awol\n");
  414. /* omap_cfg_reg(P19_1610_GPIO6); */ /* BUSY */
  415. gpio_request(6, "ts_busy");
  416. gpio_direction_input(6);
  417. omap_cfg_reg(P20_1610_GPIO4); /* PENIRQ */
  418. gpio_request(4, "ts_int");
  419. gpio_direction_input(4);
  420. set_irq_type(OMAP_GPIO_IRQ(4), IRQ_TYPE_EDGE_FALLING);
  421. spi_register_board_info(mistral_boardinfo,
  422. ARRAY_SIZE(mistral_boardinfo));
  423. /* the sideways button (SW1) is for use as a "wakeup" button */
  424. omap_cfg_reg(N15_1610_MPUIO2);
  425. if (gpio_request(OMAP_MPUIO(2), "wakeup") == 0) {
  426. int ret = 0;
  427. gpio_direction_input(OMAP_MPUIO(2));
  428. set_irq_type(OMAP_GPIO_IRQ(OMAP_MPUIO(2)), IRQ_TYPE_EDGE_RISING);
  429. #ifdef CONFIG_PM
  430. /* share the IRQ in case someone wants to use the
  431. * button for more than wakeup from system sleep.
  432. */
  433. ret = request_irq(OMAP_GPIO_IRQ(OMAP_MPUIO(2)),
  434. &osk_mistral_wake_interrupt,
  435. IRQF_SHARED, "mistral_wakeup",
  436. &osk_mistral_wake_interrupt);
  437. if (ret != 0) {
  438. gpio_free(OMAP_MPUIO(2));
  439. printk(KERN_ERR "OSK+Mistral: no wakeup irq, %d?\n",
  440. ret);
  441. } else
  442. enable_irq_wake(OMAP_GPIO_IRQ(OMAP_MPUIO(2)));
  443. #endif
  444. } else
  445. printk(KERN_ERR "OSK+Mistral: wakeup button is awol\n");
  446. /* LCD: backlight, and power; power controls other devices on the
  447. * board, like the touchscreen, EEPROM, and wakeup (!) switch.
  448. */
  449. omap_cfg_reg(PWL);
  450. if (gpio_request(2, "lcd_pwr") == 0)
  451. gpio_direction_output(2, 1);
  452. platform_add_devices(mistral_devices, ARRAY_SIZE(mistral_devices));
  453. }
  454. #else
  455. static void __init osk_mistral_init(void) { }
  456. #endif
  457. #define EMIFS_CS3_VAL (0x88013141)
  458. static void __init osk_init(void)
  459. {
  460. u32 l;
  461. /* Workaround for wrong CS3 (NOR flash) timing
  462. * There are some U-Boot versions out there which configure
  463. * wrong CS3 memory timings. This mainly leads to CRC
  464. * or similar errors if you use NOR flash (e.g. with JFFS2)
  465. */
  466. l = omap_readl(EMIFS_CCS(3));
  467. if (l != EMIFS_CS3_VAL)
  468. omap_writel(EMIFS_CS3_VAL, EMIFS_CCS(3));
  469. osk_flash_resource.end = osk_flash_resource.start = omap_cs3_phys();
  470. osk_flash_resource.end += SZ_32M - 1;
  471. platform_add_devices(osk5912_devices, ARRAY_SIZE(osk5912_devices));
  472. omap_board_config = osk_config;
  473. omap_board_config_size = ARRAY_SIZE(osk_config);
  474. l = omap_readl(USB_TRANSCEIVER_CTRL);
  475. l |= (3 << 1);
  476. omap_writel(l, USB_TRANSCEIVER_CTRL);
  477. /* irq for tps65010 chip */
  478. /* bootloader effectively does: omap_cfg_reg(U19_1610_MPUIO1); */
  479. if (gpio_request(OMAP_MPUIO(1), "tps65010") == 0)
  480. gpio_direction_input(OMAP_MPUIO(1));
  481. omap_serial_init();
  482. omap_register_i2c_bus(1, 400, osk_i2c_board_info,
  483. ARRAY_SIZE(osk_i2c_board_info));
  484. osk_mistral_init();
  485. }
  486. static void __init osk_map_io(void)
  487. {
  488. omap1_map_common_io();
  489. }
  490. MACHINE_START(OMAP_OSK, "TI-OSK")
  491. /* Maintainer: Dirk Behme <dirk.behme@de.bosch.com> */
  492. .phys_io = 0xfff00000,
  493. .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc,
  494. .boot_params = 0x10000100,
  495. .map_io = osk_map_io,
  496. .init_irq = osk_init_irq,
  497. .init_machine = osk_init,
  498. .timer = &omap_timer,
  499. MACHINE_END