From 3a5571da6389e637407b3fa0ffa805b0bbcaa85d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 29 Dec 2014 09:50:36 -0600 Subject: [PATCH] stm32f429i-disco: change ltdc initializing during boot up. This moves initializing of the ili9341 lcd and ltdc driver to the board specific initializing routine. Signed-off-by: Marco Krahl --- configs/stm32f429i-disco/ltdc/defconfig | 2 +- configs/stm32f429i-disco/src/stm32_boot.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configs/stm32f429i-disco/ltdc/defconfig b/configs/stm32f429i-disco/ltdc/defconfig index bd117f55e4..1014b1d9d0 100644 --- a/configs/stm32f429i-disco/ltdc/defconfig +++ b/configs/stm32f429i-disco/ltdc/defconfig @@ -547,7 +547,7 @@ CONFIG_NAME_MAX=32 # # RTOS hooks # -# CONFIG_BOARD_INITIALIZE is not set +CONFIG_BOARD_INITIALIZE=y # CONFIG_SCHED_STARTHOOK is not set # CONFIG_SCHED_ATEXIT is not set # CONFIG_SCHED_ONEXIT is not set diff --git a/configs/stm32f429i-disco/src/stm32_boot.c b/configs/stm32f429i-disco/src/stm32_boot.c index 2640c1d4bb..fb17f1ca79 100644 --- a/configs/stm32f429i-disco/src/stm32_boot.c +++ b/configs/stm32f429i-disco/src/stm32_boot.c @@ -104,10 +104,6 @@ void stm32_boardinitialize(void) #ifdef CONFIG_STM32_FSMC stm32_enablefsmc(); #endif - -#ifdef CONFIG_STM32_LTDC - up_fbinitialize(); -#endif } /**************************************************************************** @@ -126,6 +122,10 @@ void stm32_boardinitialize(void) #ifdef CONFIG_BOARD_INITIALIZE void board_initialize(void) { +#ifdef CONFIG_STM32_LTDC + up_fbinitialize(); +#endif + /* Perform NSH initialization here instead of from the NSH. This * alternative NSH initialization is necessary when NSH is ran in user-space * but the initialization function must run in kernel space.