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>
This commit is contained in:
parent
acbf5bbfe9
commit
c96d709f30
|
|
@ -25,4 +25,11 @@ int tegra_board_id(void);
|
||||||
*/
|
*/
|
||||||
int tegra_lcd_pmic_init(int board_id);
|
int tegra_lcd_pmic_init(int board_id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* nvidia_board_init() - perform any board-specific init
|
||||||
|
*
|
||||||
|
* @return 0 if OK, -ve on error
|
||||||
|
*/
|
||||||
|
int nvidia_board_init(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,11 @@ __weak int tegra_lcd_pmic_init(int board_it)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__weak int nvidia_board_init(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Routine: board_init
|
* Routine: board_init
|
||||||
* Description: Early hardware init.
|
* Description: Early hardware init.
|
||||||
|
|
@ -180,8 +185,7 @@ int board_init(void)
|
||||||
/* prepare the WB code to LP0 location */
|
/* prepare the WB code to LP0 location */
|
||||||
warmboot_prepare_code(TEGRA_LP0_ADDR, TEGRA_LP0_SIZE);
|
warmboot_prepare_code(TEGRA_LP0_ADDR, TEGRA_LP0_SIZE);
|
||||||
#endif
|
#endif
|
||||||
|
return nvidia_board_init();
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_BOARD_EARLY_INIT_F
|
#ifdef CONFIG_BOARD_EARLY_INIT_F
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue