Skip to content

Commit

Permalink
omap: mux: Add 36xx CBP package support
Browse files Browse the repository at this point in the history
Add 36xx CBP package support

Cc: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Tony Lindgren committed Dec 12, 2009
1 parent 15f45e6 commit 662c8b5
Show file tree
Hide file tree
Showing 6 changed files with 587 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm/mach-omap2/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ config OMAP_PACKAGE_CBB
config OMAP_PACKAGE_CUS
bool

config OMAP_PACKAGE_CBP
bool

comment "OMAP Board Type"
depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP4

Expand Down Expand Up @@ -121,6 +124,7 @@ config MACH_OMAP_ZOOM2
config MACH_OMAP_ZOOM3
bool "OMAP3630 Zoom3 board"
depends on ARCH_OMAP3 && ARCH_OMAP34XX
select OMAP_PACKAGE_CBP

config MACH_CM_T35
bool "CompuLab CM-T35 module"
Expand All @@ -135,6 +139,7 @@ config MACH_IGEP0020
config MACH_OMAP_3630SDP
bool "OMAP3630 SDP board"
depends on ARCH_OMAP3 && ARCH_OMAP34XX
select OMAP_PACKAGE_CBP

config MACH_OMAP_4430SDP
bool "OMAP 4430 SDP board"
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/mach-omap2/board-3630sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,17 @@ static void __init omap_sdp_init_irq(void)
omap_gpio_init();
}

#ifdef CONFIG_OMAP_MUX
static struct omap_board_mux board_mux[] __initdata = {
{ .reg_offset = OMAP_MUX_TERMINATOR },
};
#else
#define board_mux NULL
#endif

static void __init omap_sdp_init(void)
{
omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
zoom_peripherals_init();
board_smc91x_init();
enable_board_wakeup_source();
Expand Down
10 changes: 10 additions & 0 deletions arch/arm/mach-omap2/board-zoom3.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <plat/common.h>
#include <plat/board.h>

#include "mux.h"
#include "sdram-hynix-h8mbx00u0mer-0em.h"

static void __init omap_zoom_map_io(void)
Expand All @@ -42,8 +43,17 @@ static void __init omap_zoom_init_irq(void)
omap_gpio_init();
}

#ifdef CONFIG_OMAP_MUX
static struct omap_board_mux board_mux[] __initdata = {
{ .reg_offset = OMAP_MUX_TERMINATOR },
};
#else
#define board_mux NULL
#endif

static void __init omap_zoom_init(void)
{
omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
zoom_peripherals_init();
zoom_debugboard_init();
}
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-omap2/mux.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

/* Flags for omap_mux_init */
#define OMAP_PACKAGE_MASK 0xffff
#define OMAP_PACKAGE_CBP 4 /* 515-pin 0.40 0.50 */
#define OMAP_PACKAGE_CUS 3 /* 423-pin 0.65 */
#define OMAP_PACKAGE_CBB 2 /* 515-pin 0.40 0.50 */
#define OMAP_PACKAGE_CBC 1 /* 515-pin 0.50 0.65 */
Expand Down
Loading

0 comments on commit 662c8b5

Please sign in to comment.