diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-03-25 14:31:35 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-03-25 14:31:35 -0400 |
commit | 8937b7349ca9e25a02b2a72ccb7fba404ddedc5b (patch) | |
tree | 434ffe23d318f8af55850a26c3431ce8b82ab6f4 /arch/arm/mach-omap2/board-h4.c | |
parent | 997302259f386bca8fe1db67c50296ca426c438f (diff) | |
parent | ffe7f95bb1a4d1e9ca5d252445dc38476e1a208e (diff) |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 into devel
Diffstat (limited to 'arch/arm/mach-omap2/board-h4.c')
-rw-r--r-- | arch/arm/mach-omap2/board-h4.c | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index ef55b45ab769..a0267a9ab466 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -47,6 +47,8 @@ | |||
47 | #define H4_FLASH_CS 0 | 47 | #define H4_FLASH_CS 0 |
48 | #define H4_SMC91X_CS 1 | 48 | #define H4_SMC91X_CS 1 |
49 | 49 | ||
50 | #define H4_ETHR_GPIO_IRQ 92 | ||
51 | |||
50 | static unsigned int row_gpios[6] = { 88, 89, 124, 11, 6, 96 }; | 52 | static unsigned int row_gpios[6] = { 88, 89, 124, 11, 6, 96 }; |
51 | static unsigned int col_gpios[7] = { 90, 91, 100, 36, 12, 97, 98 }; | 53 | static unsigned int col_gpios[7] = { 90, 91, 100, 36, 12, 97, 98 }; |
52 | 54 | ||
@@ -341,7 +343,7 @@ static inline void __init h4_init_debug(void) | |||
341 | udelay(100); | 343 | udelay(100); |
342 | 344 | ||
343 | omap_cfg_reg(M15_24XX_GPIO92); | 345 | omap_cfg_reg(M15_24XX_GPIO92); |
344 | if (debug_card_init(cs_mem_base, OMAP24XX_ETHR_GPIO_IRQ) < 0) | 346 | if (debug_card_init(cs_mem_base, H4_ETHR_GPIO_IRQ) < 0) |
345 | gpmc_cs_free(eth_cs); | 347 | gpmc_cs_free(eth_cs); |
346 | 348 | ||
347 | out: | 349 | out: |
@@ -377,6 +379,39 @@ static struct omap_lcd_config h4_lcd_config __initdata = { | |||
377 | .ctrl_name = "internal", | 379 | .ctrl_name = "internal", |
378 | }; | 380 | }; |
379 | 381 | ||
382 | static struct omap_usb_config h4_usb_config __initdata = { | ||
383 | #ifdef CONFIG_MACH_OMAP2_H4_USB1 | ||
384 | /* NOTE: usb1 could also be used with 3 wire signaling */ | ||
385 | .pins[1] = 4, | ||
386 | #endif | ||
387 | |||
388 | #ifdef CONFIG_MACH_OMAP_H4_OTG | ||
389 | /* S1.10 ON -- USB OTG port | ||
390 | * usb0 switched to Mini-AB port and isp1301 transceiver; | ||
391 | * S2.POS3 = OFF, S2.POS4 = ON ... to allow battery charging | ||
392 | */ | ||
393 | .otg = 1, | ||
394 | .pins[0] = 4, | ||
395 | #ifdef CONFIG_USB_GADGET_OMAP | ||
396 | /* use OTG cable, or standard A-to-MiniB */ | ||
397 | .hmc_mode = 0x14, /* 0:dev/otg 1:host 2:disable */ | ||
398 | #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | ||
399 | /* use OTG cable, or NONSTANDARD (B-to-MiniB) */ | ||
400 | .hmc_mode = 0x11, /* 0:host 1:host 2:disable */ | ||
401 | #endif /* XX */ | ||
402 | |||
403 | #else | ||
404 | /* S1.10 OFF -- usb "download port" | ||
405 | * usb0 switched to Mini-B port and isp1105 transceiver; | ||
406 | * S2.POS3 = ON, S2.POS4 = OFF ... to enable battery charging | ||
407 | */ | ||
408 | .register_dev = 1, | ||
409 | .pins[0] = 3, | ||
410 | /* .hmc_mode = 0x14,*/ /* 0:dev 1:host 2:disable */ | ||
411 | .hmc_mode = 0x00, /* 0:dev|otg 1:disable 2:disable */ | ||
412 | #endif | ||
413 | }; | ||
414 | |||
380 | static struct omap_board_config_kernel h4_config[] = { | 415 | static struct omap_board_config_kernel h4_config[] = { |
381 | { OMAP_TAG_UART, &h4_uart_config }, | 416 | { OMAP_TAG_UART, &h4_uart_config }, |
382 | { OMAP_TAG_LCD, &h4_lcd_config }, | 417 | { OMAP_TAG_LCD, &h4_lcd_config }, |
@@ -428,6 +463,7 @@ static void __init omap_h4_init(void) | |||
428 | platform_add_devices(h4_devices, ARRAY_SIZE(h4_devices)); | 463 | platform_add_devices(h4_devices, ARRAY_SIZE(h4_devices)); |
429 | omap_board_config = h4_config; | 464 | omap_board_config = h4_config; |
430 | omap_board_config_size = ARRAY_SIZE(h4_config); | 465 | omap_board_config_size = ARRAY_SIZE(h4_config); |
466 | omap_usb_init(&h4_usb_config); | ||
431 | omap_serial_init(); | 467 | omap_serial_init(); |
432 | } | 468 | } |
433 | 469 | ||