From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Tue, 30 Dec 2014 14:35:10 +0100 Subject: [U-Boot] [PATCH 3/8] arm: mx6: novena: Define CONFIG_SYS_MALLOC_F_LEN In-Reply-To: <1418735363-5851-3-git-send-email-marex@denx.de> References: <1418735363-5851-1-git-send-email-marex@denx.de> <1418735363-5851-3-git-send-email-marex@denx.de> Message-ID: <54A2AA0E.1090109@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 16/12/2014 14:09, Marek Vasut wrote: > This board uses setup_i2c() in SPL. The setup_i2c() function internally > calls gpio_request(), which in turn internally calls strdup(). The strdup() > requires a running mallocator, so this patch makes the mallocator available. > > Signed-off-by: Marek Vasut > Cc: Igor Grinberg > Cc: Nikita Kiryanov > Cc: Sean Cross > Cc: Simon Glass > Cc: Stefano Babic > Cc: Tim Harvey > --- > include/configs/novena.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/configs/novena.h b/include/configs/novena.h > index 879141a..0f3621a 100644 > --- a/include/configs/novena.h > +++ b/include/configs/novena.h > @@ -115,6 +115,7 @@ > #define CONFIG_SYS_MEMTEST_END 0x20000000 > > #define CONFIG_SYS_MALLOC_LEN (64 * 1024 * 1024) > +#define CONFIG_SYS_MALLOC_F_LEN (1 << 10) > > /* SPL */ > #define CONFIG_SPL_FAT_SUPPORT > Applied to u-boot-imx, thanks ! 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 =====================================================================