Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313453
b: refs/heads/master
c: c554dee
h: refs/heads/master
i:
  313451: 5350cc8
v: v3
  • Loading branch information
Stephen Warren committed Jun 20, 2012
1 parent 3c09db9 commit 8e9f5e2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 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: 98a1405e20ecf261abbc091eabb229d8adfbf62c
refs/heads/master: c554dee35c3e6b0c19db5fb75193d4cd99736c6b
36 changes: 35 additions & 1 deletion trunk/arch/arm/mach-tegra/board-dt-tegra20.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,40 @@ static void __init tegra_dt_init(void)
tegra20_auxdata_lookup, NULL);
}

#ifdef CONFIG_MACH_TRIMSLICE
static void __init trimslice_init(void)
{
int ret;

ret = tegra_pcie_init(true, true);
if (ret)
pr_err("tegra_pci_init() failed: %d\n", ret);
}
#endif

static struct {
char *machine;
void (*init)(void);
} board_init_funcs[] = {
#ifdef CONFIG_MACH_TRIMSLICE
{ "compulab,trimslice", trimslice_init },
#endif
};

static void __init tegra_dt_init_late(void)
{
int i;

tegra_init_late();

for (i = 0; i < ARRAY_SIZE(board_init_funcs); i++) {
if (of_machine_is_compatible(board_init_funcs[i].machine)) {
board_init_funcs[i].init();
break;
}
}
}

static const char *tegra20_dt_board_compat[] = {
"nvidia,tegra20",
NULL
Expand All @@ -110,7 +144,7 @@ DT_MACHINE_START(TEGRA_DT, "nVidia Tegra20 (Flattened Device Tree)")
.handle_irq = gic_handle_irq,
.timer = &tegra_timer,
.init_machine = tegra_dt_init,
.init_late = tegra_init_late,
.init_late = tegra_dt_init_late,
.restart = tegra_assert_system_reset,
.dt_compat = tegra20_dt_board_compat,
MACHINE_END

0 comments on commit 8e9f5e2

Please sign in to comment.