summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board2.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-06-05 14:39:42 -0600
committerTom Warren <twarren@nvidia.com>2015-06-09 09:56:15 -0700
commitc96d709f30cdf57ba78ef780066784a09276705f (patch)
tree68b066379e2c2645e02b164bf1280230a3b4294e /arch/arm/mach-tegra/board2.c
parentacbf5bbfe9f49ff95d3749944ed26b05f9948142 (diff)
downloadu-boot-imx-c96d709f30cdf57ba78ef780066784a09276705f.zip
u-boot-imx-c96d709f30cdf57ba78ef780066784a09276705f.tar.gz
u-boot-imx-c96d709f30cdf57ba78ef780066784a09276705f.tar.bz2
tegra: Allow board-specific init
Add a hook to allows boards to add their own init to board_init(). Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board2.c')
-rw-r--r--arch/arm/mach-tegra/board2.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board2.c b/arch/arm/mach-tegra/board2.c
index 131802a..ebcee4e 100644
--- a/arch/arm/mach-tegra/board2.c
+++ b/arch/arm/mach-tegra/board2.c
@@ -107,6 +107,11 @@ __weak int tegra_lcd_pmic_init(int board_it)
return 0;
}
+__weak int nvidia_board_init(void)
+{
+ return 0;
+}
+
/*
* Routine: board_init
* Description: Early hardware init.
@@ -180,8 +185,7 @@ int board_init(void)
/* prepare the WB code to LP0 location */
warmboot_prepare_code(TEGRA_LP0_ADDR, TEGRA_LP0_SIZE);
#endif
-
- return 0;
+ return nvidia_board_init();
}
#ifdef CONFIG_BOARD_EARLY_INIT_F