diff options
author | Tony Lindgren <tony@atomide.com> | 2009-12-11 19:16:32 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-12-11 19:16:32 -0500 |
commit | ca5742bdb58ebb74499731855dccf8f8a858b2e4 (patch) | |
tree | 081a83ab562edc561487c24ca889d133750790e2 /arch/arm/mach-omap2/board-am3517evm.c | |
parent | ddaa912a2164d7ce7a03fcb384ed37e712bb4549 (diff) |
omap: mux: Add new style init functions to omap3 board-*.c files
Add new style mux init functions to omap3 board-*.c files
So far Beagle has been confirmed to be a CBB package,
and CM-T35 a CUS package.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-am3517evm.c')
-rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 415a13d767cc..b4e6eca0e8a9 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -30,6 +30,8 @@ | |||
30 | #include <plat/common.h> | 30 | #include <plat/common.h> |
31 | #include <plat/usb.h> | 31 | #include <plat/usb.h> |
32 | 32 | ||
33 | #include "mux.h" | ||
34 | |||
33 | /* | 35 | /* |
34 | * Board initialization | 36 | * Board initialization |
35 | */ | 37 | */ |
@@ -60,8 +62,17 @@ static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = { | |||
60 | .reset_gpio_port[2] = -EINVAL | 62 | .reset_gpio_port[2] = -EINVAL |
61 | }; | 63 | }; |
62 | 64 | ||
65 | #ifdef CONFIG_OMAP_MUX | ||
66 | static struct omap_board_mux board_mux[] __initdata = { | ||
67 | { .reg_offset = OMAP_MUX_TERMINATOR }, | ||
68 | }; | ||
69 | #else | ||
70 | #define board_mux NULL | ||
71 | #endif | ||
72 | |||
63 | static void __init am3517_evm_init(void) | 73 | static void __init am3517_evm_init(void) |
64 | { | 74 | { |
75 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | ||
65 | platform_add_devices(am3517_evm_devices, | 76 | platform_add_devices(am3517_evm_devices, |
66 | ARRAY_SIZE(am3517_evm_devices)); | 77 | ARRAY_SIZE(am3517_evm_devices)); |
67 | 78 | ||