Skip to content
Snippets Groups Projects
Commit 727e94a4 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

powerpc: freescale: Unify the two get_clocks() calls


Combine the conditions so this appears in the init list only once.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent 11b33e64
No related branches found
No related tags found
No related merge requests found
...@@ -828,16 +828,13 @@ static const init_fnc_t init_sequence_f[] = { ...@@ -828,16 +828,13 @@ static const init_fnc_t init_sequence_f[] = {
#if defined(CONFIG_BOARD_EARLY_INIT_F) #if defined(CONFIG_BOARD_EARLY_INIT_F)
board_early_init_f, board_early_init_f,
#endif #endif
#ifdef CONFIG_PPC #if defined(CONFIG_PPC) || defined(CONFIG_SYS_FSL_CLK) || defined(CONFIG_M68K)
/* get CPU and bus clocks according to the environment variable */ /* get CPU and bus clocks according to the environment variable */
get_clocks, /* get CPU and bus clocks (etc.) */ get_clocks, /* get CPU and bus clocks (etc.) */
#endif #endif
timer_init, /* initialize timer */ timer_init, /* initialize timer */
#if defined(CONFIG_BOARD_POSTCLK_INIT) #if defined(CONFIG_BOARD_POSTCLK_INIT)
board_postclk_init, board_postclk_init,
#endif
#if defined(CONFIG_SYS_FSL_CLK) || defined(CONFIG_M68K)
get_clocks,
#endif #endif
env_init, /* initialize environment */ env_init, /* initialize environment */
init_baud_rate, /* initialze baudrate settings */ init_baud_rate, /* initialze baudrate settings */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment