From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Thu, 27 Dec 2012 11:09:39 +0100 Subject: [U-Boot] [PATCH] mx53loco: Call PMIC related functions from board_late_init() In-Reply-To: <1356537020-31114-1-git-send-email-festevam@gmail.com> References: <1356537020-31114-1-git-send-email-festevam@gmail.com> Message-ID: <50DC1E63.1000903@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 26/12/2012 16:50, Fabio Estevam wrote: > From: Fabio Estevam > > Since commit c733681 (pmic: Extend PMIC framework to support multiple instances > of PMIC devices) mx53loco fails to allocate the memory for PMIC: > > U-Boot 2013.01-rc2-dirty (Dec 20 2012 - 15:55:01) > > Board: MX53 LOCO > I2C: ready > DRAM: 1 GiB > pmic_alloc: No available memory for allocation! > pmic_init: POWER allocation error! > CPU: Freescale i.MX53 family rev2.0 at 800 MHz > Reset cause: POR > MMC: FSL_SDHC: 0, FSL_SDHC: 1 > > Calling the PMIC related functions at a later stage, ie, from board_late_init() > fixes the issue. > > Reported-by: Robert Nelson > Signed-off-by: Fabio Estevam > --- Hi Fabio, hi Robert, the new pmic framework calls malloc(), that the reason. It is then safe to call the init from board_late_init(). Tested-by: Stefano Babic Applied to u-boot-imx, thanks. gcc 4.6.4, it boots always here. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================