Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184719
b: refs/heads/master
c: 321cfc8
h: refs/heads/master
i:
  184717: c755c80
  184715: 6afd85d
  184711: 80b4d79
  184703: abdd891
v: v3
  • Loading branch information
Tony Lindgren committed Feb 15, 2010
1 parent cbfadac commit 2fedde2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b702b1060ab1c29ac08b904a0c188c61cda880eb
refs/heads/master: 321cfc851dbb866e4d5efd555eca5919895324ca
46 changes: 34 additions & 12 deletions trunk/arch/arm/mach-omap2/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,38 @@ static void __init omap_mux_init_list(struct omap_mux *superset)
}
}

#ifdef CONFIG_OMAP_MUX

static void omap_mux_init_package(struct omap_mux *superset,
struct omap_mux *package_subset,
struct omap_ball *package_balls)
{
if (package_subset)
omap_mux_package_fixup(package_subset, superset);
if (package_balls)
omap_mux_package_init_balls(package_balls, superset);
}

static void omap_mux_init_signals(struct omap_board_mux *board_mux)
{
omap_mux_set_cmdline_signals();
omap_mux_write_array(board_mux);
}

#else

static void omap_mux_init_package(struct omap_mux *superset,
struct omap_mux *package_subset,
struct omap_ball *package_balls)
{
}

static void omap_mux_init_signals(struct omap_board_mux *board_mux)
{
}

#endif

int __init omap_mux_init(u32 mux_pbase, u32 mux_size,
struct omap_mux *superset,
struct omap_mux *package_subset,
Expand All @@ -1001,19 +1033,9 @@ int __init omap_mux_init(u32 mux_pbase, u32 mux_size,
return -ENODEV;
}

#ifdef CONFIG_OMAP_MUX
if (package_subset)
omap_mux_package_fixup(package_subset, superset);
if (package_balls)
omap_mux_package_init_balls(package_balls, superset);
#endif

omap_mux_init_package(superset, package_subset, package_balls);
omap_mux_init_list(superset);

#ifdef CONFIG_OMAP_MUX
omap_mux_set_cmdline_signals();
omap_mux_write_array(board_mux);
#endif
omap_mux_init_signals(board_mux);

return 0;
}
Expand Down

0 comments on commit 2fedde2

Please sign in to comment.