From patchwork Wed Dec 26 15:21:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot] mx53loco: Fix PMIC name Date: Wed, 26 Dec 2012 05:21:13 -0000 From: Fabio Estevam X-Patchwork-Id: 208176 Message-Id: To: Robert Nelson Cc: Fabio Estevam , u-boot@lists.denx.de, =?UTF-8?B?TWFyZWsgVmHFoXV0?= Robert, On Wed, Dec 26, 2012 at 1:07 PM, Fabio Estevam wrote: > On Wed, Dec 26, 2012 at 1:02 PM, Fabio Estevam wrote: > >> With the new PMIC framework: is it safe to call the PMIC API from >> board_init function? > > Calling it from board_late_init fixes the issue for me. > > Will send the patch soon. Can you try the patch below? board/freescale/mx53loco/mx53loco.c | 10 ++++++++-- include/configs/mx53loco.h | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c index 2c8cb7a..63a4f8b 100644 --- a/board/freescale/mx53loco/mx53loco.c +++ b/board/freescale/mx53loco/mx53loco.c @@ -462,12 +462,18 @@ int board_init(void) mxc_set_sata_internal_clock(); setup_iomux_i2c(); + + lcd_enable(); + + return 0; +} + +int board_late_init(void) +{ if (!power_init()) clock_1GHz(); print_cpuinfo(); - lcd_enable(); - return 0; } diff --git a/include/configs/mx53loco.h b/include/configs/mx53loco.h index e30502b..c4181bd 100644 --- a/include/configs/mx53loco.h +++ b/include/configs/mx53loco.h @@ -39,6 +39,7 @@ #define CONFIG_SYS_MALLOC_LEN (10 * 1024 * 1024) #define CONFIG_BOARD_EARLY_INIT_F +#define CONFIG_BOARD_LATE_INIT #define CONFIG_MXC_GPIO #define CONFIG_REVISION_TAG