board-osk.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  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/smc91x.h>
  36. #include <linux/mtd/mtd.h>
  37. #include <linux/mtd/partitions.h>
  38. #include <linux/mtd/physmap.h>
  39. #include <linux/i2c/tps65010.h>
  40. #include <mach/hardware.h>
  41. #include <asm/gpio.h>
  42. #include <asm/mach-types.h>
  43. #include <asm/mach/arch.h>
  44. #include <asm/mach/map.h>
  45. #include <plat/flash.h>
  46. #include <plat/usb.h>
  47. #include <plat/mux.h>
  48. #include <plat/tc.h>
  49. #include <plat/common.h>
  50. /* At OMAP5912 OSK the Ethernet is directly connected to CS1 */
  51. #define OMAP_OSK_ETHR_START 0x04800300
  52. /* TPS65010 has four GPIOs. nPG and LED2 can be treated like GPIOs with
  53. * alternate pin configurations for hardware-controlled blinking.
  54. */
  55. #define OSK_TPS_GPIO_BASE (OMAP_MAX_GPIO_LINES + 16 /* MPUIO */)
  56. # define OSK_TPS_GPIO_USB_PWR_EN (OSK_TPS_GPIO_BASE + 0)
  57. # define OSK_TPS_GPIO_LED_D3 (OSK_TPS_GPIO_BASE + 1)
  58. # define OSK_TPS_GPIO_LAN_RESET (OSK_TPS_GPIO_BASE + 2)
  59. # define OSK_TPS_GPIO_DSP_PWR_EN (OSK_TPS_GPIO_BASE + 3)
  60. # define OSK_TPS_GPIO_LED_D9 (OSK_TPS_GPIO_BASE + 4)
  61. # define OSK_TPS_GPIO_LED_D2 (OSK_TPS_GPIO_BASE + 5)
  62. static struct mtd_partition osk_partitions[] = {
  63. /* bootloader (U-Boot, etc) in first sector */
  64. {
  65. .name = "bootloader",
  66. .offset = 0,
  67. .size = SZ_128K,
  68. .mask_flags = MTD_WRITEABLE, /* force read-only */
  69. },
  70. /* bootloader params in the next sector */
  71. {
  72. .name = "params",
  73. .offset = MTDPART_OFS_APPEND,
  74. .size = SZ_128K,
  75. .mask_flags = 0,
  76. }, {
  77. .name = "kernel",
  78. .offset = MTDPART_OFS_APPEND,
  79. .size = SZ_2M,
  80. .mask_flags = 0
  81. }, {
  82. .name = "filesystem",
  83. .offset = MTDPART_OFS_APPEND,
  84. .size = MTDPART_SIZ_FULL,
  85. .mask_flags = 0
  86. }
  87. };
  88. static struct physmap_flash_data osk_flash_data = {
  89. .width = 2,
  90. .set_vpp = omap1_set_vpp,
  91. .parts = osk_partitions,
  92. .nr_parts = ARRAY_SIZE(osk_partitions),
  93. };
  94. static struct resource osk_flash_resource = {
  95. /* this is on CS3, wherever it's mapped */
  96. .flags = IORESOURCE_MEM,
  97. };
  98. static struct platform_device osk5912_flash_device = {
  99. .name = "physmap-flash",
  100. .id = 0,
  101. .dev = {
  102. .platform_data = &osk_flash_data,
  103. },
  104. .num_resources = 1,
  105. .resource = &osk_flash_resource,
  106. };
  107. static struct smc91x_platdata osk5912_smc91x_info = {
  108. .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
  109. .leda = RPC_LED_100_10,
  110. .ledb = RPC_LED_TX_RX,
  111. };
  112. static struct resource osk5912_smc91x_resources[] = {
  113. [0] = {
  114. .start = OMAP_OSK_ETHR_START, /* Physical */
  115. .end = OMAP_OSK_ETHR_START + 0xf,
  116. .flags = IORESOURCE_MEM,
  117. },
  118. [1] = {
  119. .start = OMAP_GPIO_IRQ(0),
  120. .end = OMAP_GPIO_IRQ(0),
  121. .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
  122. },
  123. };
  124. static struct platform_device osk5912_smc91x_device = {
  125. .name = "smc91x",
  126. .id = -1,
  127. .dev = {
  128. .platform_data = &osk5912_smc91x_info,
  129. },
  130. .num_resources = ARRAY_SIZE(osk5912_smc91x_resources),
  131. .resource = osk5912_smc91x_resources,
  132. };
  133. static struct resource osk5912_cf_resources[] = {
  134. [0] = {
  135. .start = OMAP_GPIO_IRQ(62),
  136. .end = OMAP_GPIO_IRQ(62),
  137. .flags = IORESOURCE_IRQ,
  138. },
  139. };
  140. static struct platform_device osk5912_cf_device = {
  141. .name = "omap_cf",
  142. .id = -1,
  143. .dev = {
  144. .platform_data = (void *) 2 /* CS2 */,
  145. },
  146. .num_resources = ARRAY_SIZE(osk5912_cf_resources),
  147. .resource = osk5912_cf_resources,
  148. };
  149. static struct platform_device *osk5912_devices[] __initdata = {
  150. &osk5912_flash_device,
  151. &osk5912_smc91x_device,
  152. &osk5912_cf_device,
  153. };
  154. static struct gpio_led tps_leds[] = {
  155. /* NOTE: D9 and D2 have hardware blink support.
  156. * Also, D9 requires non-battery power.
  157. */
  158. { .gpio = OSK_TPS_GPIO_LED_D9, .name = "d9",
  159. .default_trigger = "ide-disk", },
  160. { .gpio = OSK_TPS_GPIO_LED_D2, .name = "d2", },
  161. { .gpio = OSK_TPS_GPIO_LED_D3, .name = "d3", .active_low = 1,
  162. .default_trigger = "heartbeat", },
  163. };
  164. static struct gpio_led_platform_data tps_leds_data = {
  165. .num_leds = 3,
  166. .leds = tps_leds,
  167. };
  168. static struct platform_device osk5912_tps_leds = {
  169. .name = "leds-gpio",
  170. .id = 0,
  171. .dev.platform_data = &tps_leds_data,
  172. };
  173. static int osk_tps_setup(struct i2c_client *client, void *context)
  174. {
  175. /* Set GPIO 1 HIGH to disable VBUS power supply;
  176. * OHCI driver powers it up/down as needed.
  177. */
  178. gpio_request(OSK_TPS_GPIO_USB_PWR_EN, "n_vbus_en");
  179. gpio_direction_output(OSK_TPS_GPIO_USB_PWR_EN, 1);
  180. /* Set GPIO 2 high so LED D3 is off by default */
  181. tps65010_set_gpio_out_value(GPIO2, HIGH);
  182. /* Set GPIO 3 low to take ethernet out of reset */
  183. gpio_request(OSK_TPS_GPIO_LAN_RESET, "smc_reset");
  184. gpio_direction_output(OSK_TPS_GPIO_LAN_RESET, 0);
  185. /* GPIO4 is VDD_DSP */
  186. gpio_request(OSK_TPS_GPIO_DSP_PWR_EN, "dsp_power");
  187. gpio_direction_output(OSK_TPS_GPIO_DSP_PWR_EN, 1);
  188. /* REVISIT if DSP support isn't configured, power it off ... */
  189. /* Let LED1 (D9) blink; leds-gpio may override it */
  190. tps65010_set_led(LED1, BLINK);
  191. /* Set LED2 off by default */
  192. tps65010_set_led(LED2, OFF);
  193. /* Enable LOW_PWR handshake */
  194. tps65010_set_low_pwr(ON);
  195. /* Switch VLDO2 to 3.0V for AIC23 */
  196. tps65010_config_vregs1(TPS_LDO2_ENABLE | TPS_VLDO2_3_0V
  197. | TPS_LDO1_ENABLE);
  198. /* register these three LEDs */
  199. osk5912_tps_leds.dev.parent = &client->dev;
  200. platform_device_register(&osk5912_tps_leds);
  201. return 0;
  202. }
  203. static struct tps65010_board tps_board = {
  204. .base = OSK_TPS_GPIO_BASE,
  205. .outmask = 0x0f,
  206. .setup = osk_tps_setup,
  207. };
  208. static struct i2c_board_info __initdata osk_i2c_board_info[] = {
  209. {
  210. I2C_BOARD_INFO("tps65010", 0x48),
  211. .irq = OMAP_GPIO_IRQ(OMAP_MPUIO(1)),
  212. .platform_data = &tps_board,
  213. },
  214. {
  215. I2C_BOARD_INFO("tlv320aic23", 0x1B),
  216. },
  217. /* TODO when driver support is ready:
  218. * - optionally on Mistral, ov9640 camera sensor at 0x30
  219. */
  220. };
  221. static void __init osk_init_smc91x(void)
  222. {
  223. u32 l;
  224. if ((gpio_request(0, "smc_irq")) < 0) {
  225. printk("Error requesting gpio 0 for smc91x irq\n");
  226. return;
  227. }
  228. /* Check EMIFS wait states to fix errors with SMC_GET_PKT_HDR */
  229. l = omap_readl(EMIFS_CCS(1));
  230. l |= 0x3;
  231. omap_writel(l, EMIFS_CCS(1));
  232. }
  233. static void __init osk_init_cf(void)
  234. {
  235. omap_cfg_reg(M7_1610_GPIO62);
  236. if ((gpio_request(62, "cf_irq")) < 0) {
  237. printk("Error requesting gpio 62 for CF irq\n");
  238. return;
  239. }
  240. /* the CF I/O IRQ is really active-low */
  241. set_irq_type(gpio_to_irq(62), IRQ_TYPE_EDGE_FALLING);
  242. }
  243. static void __init osk_init_irq(void)
  244. {
  245. omap1_init_common_hw();
  246. omap_init_irq();
  247. omap_gpio_init();
  248. osk_init_smc91x();
  249. osk_init_cf();
  250. }
  251. static struct omap_usb_config osk_usb_config __initdata = {
  252. /* has usb host connector (A) ... for development it can also
  253. * be used, with a NONSTANDARD gender-bending cable/dongle, as
  254. * a peripheral.
  255. */
  256. #ifdef CONFIG_USB_GADGET_OMAP
  257. .register_dev = 1,
  258. .hmc_mode = 0,
  259. #else
  260. .register_host = 1,
  261. .hmc_mode = 16,
  262. .rwc = 1,
  263. #endif
  264. .pins[0] = 2,
  265. };
  266. #ifdef CONFIG_OMAP_OSK_MISTRAL
  267. static struct omap_lcd_config osk_lcd_config __initdata = {
  268. .ctrl_name = "internal",
  269. };
  270. #endif
  271. static struct omap_board_config_kernel osk_config[] __initdata = {
  272. #ifdef CONFIG_OMAP_OSK_MISTRAL
  273. { OMAP_TAG_LCD, &osk_lcd_config },
  274. #endif
  275. };
  276. #ifdef CONFIG_OMAP_OSK_MISTRAL
  277. #include <linux/input.h>
  278. #include <linux/i2c/at24.h>
  279. #include <linux/spi/spi.h>
  280. #include <linux/spi/ads7846.h>
  281. #include <plat/keypad.h>
  282. static struct at24_platform_data at24c04 = {
  283. .byte_len = SZ_4K / 8,
  284. .page_size = 16,
  285. };
  286. static struct i2c_board_info __initdata mistral_i2c_board_info[] = {
  287. {
  288. /* NOTE: powered from LCD supply */
  289. I2C_BOARD_INFO("24c04", 0x50),
  290. .platform_data = &at24c04,
  291. },
  292. /* TODO when driver support is ready:
  293. * - optionally ov9640 camera sensor at 0x30
  294. */
  295. };
  296. static const int osk_keymap[] = {
  297. /* KEY(col, row, code) */
  298. KEY(0, 0, KEY_F1), /* SW4 */
  299. KEY(0, 3, KEY_UP), /* (sw2/up) */
  300. KEY(1, 1, KEY_LEFTCTRL), /* SW5 */
  301. KEY(1, 2, KEY_LEFT), /* (sw2/left) */
  302. KEY(2, 0, KEY_SPACE), /* SW3 */
  303. KEY(2, 1, KEY_ESC), /* SW6 */
  304. KEY(2, 2, KEY_DOWN), /* (sw2/down) */
  305. KEY(3, 2, KEY_ENTER), /* (sw2/select) */
  306. KEY(3, 3, KEY_RIGHT), /* (sw2/right) */
  307. 0
  308. };
  309. static struct omap_kp_platform_data osk_kp_data = {
  310. .rows = 8,
  311. .cols = 8,
  312. .keymap = (int *) osk_keymap,
  313. .keymapsize = ARRAY_SIZE(osk_keymap),
  314. .delay = 9,
  315. };
  316. static struct resource osk5912_kp_resources[] = {
  317. [0] = {
  318. .start = INT_KEYBOARD,
  319. .end = INT_KEYBOARD,
  320. .flags = IORESOURCE_IRQ,
  321. },
  322. };
  323. static struct platform_device osk5912_kp_device = {
  324. .name = "omap-keypad",
  325. .id = -1,
  326. .dev = {
  327. .platform_data = &osk_kp_data,
  328. },
  329. .num_resources = ARRAY_SIZE(osk5912_kp_resources),
  330. .resource = osk5912_kp_resources,
  331. };
  332. static struct omap_backlight_config mistral_bl_data = {
  333. .default_intensity = 0xa0,
  334. };
  335. static struct platform_device mistral_bl_device = {
  336. .name = "omap-bl",
  337. .id = -1,
  338. .dev = {
  339. .platform_data = &mistral_bl_data,
  340. },
  341. };
  342. static struct platform_device osk5912_lcd_device = {
  343. .name = "lcd_osk",
  344. .id = -1,
  345. };
  346. static struct platform_device *mistral_devices[] __initdata = {
  347. &osk5912_kp_device,
  348. &mistral_bl_device,
  349. &osk5912_lcd_device,
  350. };
  351. static int mistral_get_pendown_state(void)
  352. {
  353. return !gpio_get_value(4);
  354. }
  355. static const struct ads7846_platform_data mistral_ts_info = {
  356. .model = 7846,
  357. .vref_delay_usecs = 100, /* internal, no capacitor */
  358. .x_plate_ohms = 419,
  359. .y_plate_ohms = 486,
  360. .get_pendown_state = mistral_get_pendown_state,
  361. };
  362. static struct spi_board_info __initdata mistral_boardinfo[] = { {
  363. /* MicroWire (bus 2) CS0 has an ads7846e */
  364. .modalias = "ads7846",
  365. .platform_data = &mistral_ts_info,
  366. .irq = OMAP_GPIO_IRQ(4),
  367. .max_speed_hz = 120000 /* max sample rate at 3V */
  368. * 26 /* command + data + overhead */,
  369. .bus_num = 2,
  370. .chip_select = 0,
  371. } };
  372. #ifdef CONFIG_PM
  373. static irqreturn_t
  374. osk_mistral_wake_interrupt(int irq, void *ignored)
  375. {
  376. return IRQ_HANDLED;
  377. }
  378. #endif
  379. static void __init osk_mistral_init(void)
  380. {
  381. /* NOTE: we could actually tell if there's a Mistral board
  382. * attached, e.g. by trying to read something from the ads7846.
  383. * But this arch_init() code is too early for that, since we
  384. * can't talk to the ads or even the i2c eeprom.
  385. */
  386. /* parallel camera interface */
  387. omap_cfg_reg(J15_1610_CAM_LCLK);
  388. omap_cfg_reg(J18_1610_CAM_D7);
  389. omap_cfg_reg(J19_1610_CAM_D6);
  390. omap_cfg_reg(J14_1610_CAM_D5);
  391. omap_cfg_reg(K18_1610_CAM_D4);
  392. omap_cfg_reg(K19_1610_CAM_D3);
  393. omap_cfg_reg(K15_1610_CAM_D2);
  394. omap_cfg_reg(K14_1610_CAM_D1);
  395. omap_cfg_reg(L19_1610_CAM_D0);
  396. omap_cfg_reg(L18_1610_CAM_VS);
  397. omap_cfg_reg(L15_1610_CAM_HS);
  398. omap_cfg_reg(M19_1610_CAM_RSTZ);
  399. omap_cfg_reg(Y15_1610_CAM_OUTCLK);
  400. /* serial camera interface */
  401. omap_cfg_reg(H19_1610_CAM_EXCLK);
  402. omap_cfg_reg(W13_1610_CCP_CLKM);
  403. omap_cfg_reg(Y12_1610_CCP_CLKP);
  404. /* CCP_DATAM CONFLICTS WITH UART1.TX (and serial console) */
  405. /* omap_cfg_reg(Y14_1610_CCP_DATAM); */
  406. omap_cfg_reg(W14_1610_CCP_DATAP);
  407. /* CAM_PWDN */
  408. if (gpio_request(11, "cam_pwdn") == 0) {
  409. omap_cfg_reg(N20_1610_GPIO11);
  410. gpio_direction_output(11, 0);
  411. } else
  412. pr_debug("OSK+Mistral: CAM_PWDN is awol\n");
  413. /* omap_cfg_reg(P19_1610_GPIO6); */ /* BUSY */
  414. gpio_request(6, "ts_busy");
  415. gpio_direction_input(6);
  416. omap_cfg_reg(P20_1610_GPIO4); /* PENIRQ */
  417. gpio_request(4, "ts_int");
  418. gpio_direction_input(4);
  419. set_irq_type(gpio_to_irq(4), IRQ_TYPE_EDGE_FALLING);
  420. spi_register_board_info(mistral_boardinfo,
  421. ARRAY_SIZE(mistral_boardinfo));
  422. /* the sideways button (SW1) is for use as a "wakeup" button
  423. *
  424. * NOTE: The Mistral board has the wakeup button (SW1) wired
  425. * to the LCD 3.3V rail, which is powered down during suspend.
  426. * To allow this button to wake up the omap, work around this
  427. * HW bug by rewiring SW1 to use the main 3.3V rail.
  428. */
  429. omap_cfg_reg(N15_1610_MPUIO2);
  430. if (gpio_request(OMAP_MPUIO(2), "wakeup") == 0) {
  431. int ret = 0;
  432. int irq = gpio_to_irq(OMAP_MPUIO(2));
  433. gpio_direction_input(OMAP_MPUIO(2));
  434. set_irq_type(irq, IRQ_TYPE_EDGE_RISING);
  435. #ifdef CONFIG_PM
  436. /* share the IRQ in case someone wants to use the
  437. * button for more than wakeup from system sleep.
  438. */
  439. ret = request_irq(irq,
  440. &osk_mistral_wake_interrupt,
  441. IRQF_SHARED, "mistral_wakeup",
  442. &osk_mistral_wake_interrupt);
  443. if (ret != 0) {
  444. gpio_free(OMAP_MPUIO(2));
  445. printk(KERN_ERR "OSK+Mistral: no wakeup irq, %d?\n",
  446. ret);
  447. } else
  448. enable_irq_wake(irq);
  449. #endif
  450. } else
  451. printk(KERN_ERR "OSK+Mistral: wakeup button is awol\n");
  452. /* LCD: backlight, and power; power controls other devices on the
  453. * board, like the touchscreen, EEPROM, and wakeup (!) switch.
  454. */
  455. omap_cfg_reg(PWL);
  456. if (gpio_request(2, "lcd_pwr") == 0)
  457. gpio_direction_output(2, 1);
  458. i2c_register_board_info(1, mistral_i2c_board_info,
  459. ARRAY_SIZE(mistral_i2c_board_info));
  460. platform_add_devices(mistral_devices, ARRAY_SIZE(mistral_devices));
  461. }
  462. #else
  463. static void __init osk_mistral_init(void) { }
  464. #endif
  465. #define EMIFS_CS3_VAL (0x88013141)
  466. static void __init osk_init(void)
  467. {
  468. u32 l;
  469. /* Workaround for wrong CS3 (NOR flash) timing
  470. * There are some U-Boot versions out there which configure
  471. * wrong CS3 memory timings. This mainly leads to CRC
  472. * or similar errors if you use NOR flash (e.g. with JFFS2)
  473. */
  474. l = omap_readl(EMIFS_CCS(3));
  475. if (l != EMIFS_CS3_VAL)
  476. omap_writel(EMIFS_CS3_VAL, EMIFS_CCS(3));
  477. osk_flash_resource.end = osk_flash_resource.start = omap_cs3_phys();
  478. osk_flash_resource.end += SZ_32M - 1;
  479. platform_add_devices(osk5912_devices, ARRAY_SIZE(osk5912_devices));
  480. omap_board_config = osk_config;
  481. omap_board_config_size = ARRAY_SIZE(osk_config);
  482. l = omap_readl(USB_TRANSCEIVER_CTRL);
  483. l |= (3 << 1);
  484. omap_writel(l, USB_TRANSCEIVER_CTRL);
  485. omap1_usb_init(&osk_usb_config);
  486. /* irq for tps65010 chip */
  487. /* bootloader effectively does: omap_cfg_reg(U19_1610_MPUIO1); */
  488. if (gpio_request(OMAP_MPUIO(1), "tps65010") == 0)
  489. gpio_direction_input(OMAP_MPUIO(1));
  490. omap_serial_init();
  491. omap_register_i2c_bus(1, 400, osk_i2c_board_info,
  492. ARRAY_SIZE(osk_i2c_board_info));
  493. osk_mistral_init();
  494. }
  495. static void __init osk_map_io(void)
  496. {
  497. omap1_map_common_io();
  498. }
  499. MACHINE_START(OMAP_OSK, "TI-OSK")
  500. /* Maintainer: Dirk Behme <dirk.behme@de.bosch.com> */
  501. .phys_io = 0xfff00000,
  502. .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc,
  503. .boot_params = 0x10000100,
  504. .map_io = osk_map_io,
  505. .reserve = omap_reserve,
  506. .init_irq = osk_init_irq,
  507. .init_machine = osk_init,
  508. .timer = &omap_timer,
  509. MACHINE_END