diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-12-14 03:16:49 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-14 03:16:49 -0500 |
commit | cc0104e877fff32865a67b256d3a9ce52ff15790 (patch) | |
tree | 18779442274e81607822ecb0905c55ac4ce6a163 /arch/arm/mach-omap2/board-omap3evm.c | |
parent | 16620e0f1990fa6d896a639449c4b3d678458464 (diff) | |
parent | f40542532e96dda5506eb76badea322f2ae4731c (diff) |
Merge branch 'linus' into tracing/urgent
Conflicts:
kernel/trace/trace_kprobe.c
Merge reason: resolve the conflict.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3evm.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3evm.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 5efc2e9068db..18913e96e34d 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -38,11 +38,11 @@ | |||
38 | #include <asm/mach/map.h> | 38 | #include <asm/mach/map.h> |
39 | 39 | ||
40 | #include <plat/board.h> | 40 | #include <plat/board.h> |
41 | #include <plat/mux.h> | ||
42 | #include <plat/usb.h> | 41 | #include <plat/usb.h> |
43 | #include <plat/common.h> | 42 | #include <plat/common.h> |
44 | #include <plat/mcspi.h> | 43 | #include <plat/mcspi.h> |
45 | 44 | ||
45 | #include "mux.h" | ||
46 | #include "sdram-micron-mt46h32m32lf-6.h" | 46 | #include "sdram-micron-mt46h32m32lf-6.h" |
47 | #include "mmc-twl4030.h" | 47 | #include "mmc-twl4030.h" |
48 | 48 | ||
@@ -223,7 +223,7 @@ static int omap3evm_twl_gpio_setup(struct device *dev, | |||
223 | unsigned gpio, unsigned ngpio) | 223 | unsigned gpio, unsigned ngpio) |
224 | { | 224 | { |
225 | /* gpio + 0 is "mmc0_cd" (input/IRQ) */ | 225 | /* gpio + 0 is "mmc0_cd" (input/IRQ) */ |
226 | omap_cfg_reg(L8_34XX_GPIO63); | 226 | omap_mux_init_gpio(63, OMAP_PIN_INPUT); |
227 | mmc[0].gpio_cd = gpio + 0; | 227 | mmc[0].gpio_cd = gpio + 0; |
228 | twl4030_mmc_init(mmc); | 228 | twl4030_mmc_init(mmc); |
229 | 229 | ||
@@ -422,9 +422,18 @@ static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { | |||
422 | .reset_gpio_port[2] = -EINVAL | 422 | .reset_gpio_port[2] = -EINVAL |
423 | }; | 423 | }; |
424 | 424 | ||
425 | #ifdef CONFIG_OMAP_MUX | ||
426 | static struct omap_board_mux board_mux[] __initdata = { | ||
427 | { .reg_offset = OMAP_MUX_TERMINATOR }, | ||
428 | }; | ||
429 | #else | ||
430 | #define board_mux NULL | ||
431 | #endif | ||
432 | |||
425 | static void __init omap3_evm_init(void) | 433 | static void __init omap3_evm_init(void) |
426 | { | 434 | { |
427 | omap3_evm_get_revision(); | 435 | omap3_evm_get_revision(); |
436 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | ||
428 | 437 | ||
429 | omap3_evm_i2c_init(); | 438 | omap3_evm_i2c_init(); |
430 | 439 | ||
@@ -440,24 +449,24 @@ static void __init omap3_evm_init(void) | |||
440 | #endif | 449 | #endif |
441 | if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) { | 450 | if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) { |
442 | /* enable EHCI VBUS using GPIO22 */ | 451 | /* enable EHCI VBUS using GPIO22 */ |
443 | omap_cfg_reg(AF9_34XX_GPIO22); | 452 | omap_mux_init_gpio(22, OMAP_PIN_INPUT_PULLUP); |
444 | gpio_request(OMAP3_EVM_EHCI_VBUS, "enable EHCI VBUS"); | 453 | gpio_request(OMAP3_EVM_EHCI_VBUS, "enable EHCI VBUS"); |
445 | gpio_direction_output(OMAP3_EVM_EHCI_VBUS, 0); | 454 | gpio_direction_output(OMAP3_EVM_EHCI_VBUS, 0); |
446 | gpio_set_value(OMAP3_EVM_EHCI_VBUS, 1); | 455 | gpio_set_value(OMAP3_EVM_EHCI_VBUS, 1); |
447 | 456 | ||
448 | /* Select EHCI port on main board */ | 457 | /* Select EHCI port on main board */ |
449 | omap_cfg_reg(U3_34XX_GPIO61); | 458 | omap_mux_init_gpio(61, OMAP_PIN_INPUT_PULLUP); |
450 | gpio_request(OMAP3_EVM_EHCI_SELECT, "select EHCI port"); | 459 | gpio_request(OMAP3_EVM_EHCI_SELECT, "select EHCI port"); |
451 | gpio_direction_output(OMAP3_EVM_EHCI_SELECT, 0); | 460 | gpio_direction_output(OMAP3_EVM_EHCI_SELECT, 0); |
452 | gpio_set_value(OMAP3_EVM_EHCI_SELECT, 0); | 461 | gpio_set_value(OMAP3_EVM_EHCI_SELECT, 0); |
453 | 462 | ||
454 | /* setup EHCI phy reset config */ | 463 | /* setup EHCI phy reset config */ |
455 | omap_cfg_reg(AH14_34XX_GPIO21); | 464 | omap_mux_init_gpio(21, OMAP_PIN_INPUT_PULLUP); |
456 | ehci_pdata.reset_gpio_port[1] = 21; | 465 | ehci_pdata.reset_gpio_port[1] = 21; |
457 | 466 | ||
458 | } else { | 467 | } else { |
459 | /* setup EHCI phy reset on MDC */ | 468 | /* setup EHCI phy reset on MDC */ |
460 | omap_cfg_reg(AF4_34XX_GPIO135_OUT); | 469 | omap_mux_init_gpio(135, OMAP_PIN_OUTPUT); |
461 | ehci_pdata.reset_gpio_port[1] = 135; | 470 | ehci_pdata.reset_gpio_port[1] = 135; |
462 | } | 471 | } |
463 | usb_musb_init(); | 472 | usb_musb_init(); |