diff options
author | Simon Glass | 2015-04-14 21:03:27 -0600 |
---|---|---|
committer | Tom Warren | 2015-05-13 09:24:08 -0700 |
commit | 8277636420970777310c467b554c39d171ef969b (patch) | |
tree | 3c99d8aaa3b4d06adf805013e68f7935b1d79cb2 /board | |
parent | d55b7d4c53c78d4a4fbe28b65e8d50f184b53ce9 (diff) |
tegra: Provide a function to allow LCD PMIC setup
Some LCDs require a PMIC to be set up - add a function for this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/nvidia/common/board.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index b5a69dfbbcd..4cc23ef6167 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia/common/board.c @@ -100,6 +100,11 @@ int checkboard(void) } #endif /* CONFIG_DISPLAY_BOARDINFO */ +__weak int tegra_lcd_pmic_init(int board_it) +{ + return 0; +} + /* * Routine: board_init * Description: Early hardware init. @@ -107,6 +112,7 @@ int checkboard(void) int board_init(void) { __maybe_unused int err; + __maybe_unused int board_id; /* Do clocks and UART first so that printf() works */ clock_init(); @@ -147,6 +153,10 @@ int board_init(void) #endif #ifdef CONFIG_LCD + board_id = tegra_board_id(); + err = tegra_lcd_pmic_init(board_id); + if (err) + return err; tegra_lcd_check_next_stage(gd->fdt_blob, 0); #endif |