From patchwork Tue Sep 23 18:59:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 392639 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 587661400A3 for ; Wed, 24 Sep 2014 05:09:29 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 84F6BA74F9; Tue, 23 Sep 2014 21:09:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7Awd1q4dxps1; Tue, 23 Sep 2014 21:09:25 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1A44FA7478; Tue, 23 Sep 2014 21:09:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4ED30A73EB for ; Tue, 23 Sep 2014 21:09:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2cFi5UQ6qmOO for ; Tue, 23 Sep 2014 21:09:06 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ie0-f202.google.com (mail-ie0-f202.google.com [209.85.223.202]) by theia.denx.de (Postfix) with ESMTPS id 2D054A73E2 for ; Tue, 23 Sep 2014 21:09:03 +0200 (CEST) Received: by mail-ie0-f202.google.com with SMTP id tr6so1271018ieb.3 for ; Tue, 23 Sep 2014 12:09:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bBctqdUIUDKIlkJctOUIZB6pSWlmKO3HNHRoHLxN5sM=; b=BtyBPLPXuSRmIkZmEn1OcwCiselHOxvmPJzio2E41ac5wc5/PR2y3h5CH8TmKYG/M6 8P7wE7+n4JeBr6S/VAQwuKEYJx8JjW7DjyEfxn1b5+Txj6EpTYFWpliPuQX2vXRcyww2 I8WnX7uxLcTnU1ExBnGLcDynSbKAjjHWvBxaihqvSlxbGkxXK/EhKezfG5rh6ONkvbMR 6kcTvqeTlM97l3yRA1l09IWjPQGuRjMuER18SXKbl0u7zwXggpfEX627DPEDJTdW6YG5 NN/XUeIlZ2zx6bcA7kMLOv29DqpdVKtfHtwCxvz4SdwAZfdvJG1+/mi6s2rXH44/Zncn 3BHg== X-Gm-Message-State: ALoCoQmbsit5wrinau7Ajq3FwoCTCIEpCYUSY+DF79u+N0V6UjeKfQDIiezXzaquDnRk/f1UkYp4 X-Received: by 10.182.22.201 with SMTP id g9mr1419990obf.18.1411499341897; Tue, 23 Sep 2014 12:09:01 -0700 (PDT) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id n22si688289yhd.1.2014.09.23.12.09.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Sep 2014 12:09:01 -0700 (PDT) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id Xq9hpLMU.1; Tue, 23 Sep 2014 12:09:01 -0700 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id CBD31221207; Tue, 23 Sep 2014 13:00:22 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Tue, 23 Sep 2014 12:59:37 -0600 Message-Id: <1411498777-10833-16-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1411498777-10833-1-git-send-email-sjg@chromium.org> References: <1411498777-10833-1-git-send-email-sjg@chromium.org> Cc: Chander Kashyap , Przemyslaw Marczak , Ajay Kumar Subject: [U-Boot] [PATCH v3 15/15] exynos: Enable pre-relocation malloc() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Enable this feature to support driver model before relocation. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/configs/exynos-common.h | 5 +++-- include/configs/odroid.h | 2 -- include/configs/s5p_goni.h | 5 +++-- include/configs/smdkc100.h | 4 ++++ 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/include/configs/exynos-common.h b/include/configs/exynos-common.h index 1e0ceab..98ea46f 100644 --- a/include/configs/exynos-common.h +++ b/include/configs/exynos-common.h @@ -40,8 +40,9 @@ #define CONFIG_CMDLINE_EDITING #define CONFIG_ENV_OVERWRITE -/* Size of malloc() pool */ -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (80 * SZ_1M)) +/* Size of malloc() pool before and after relocation */ +#define CONFIG_SYS_MALLOC_F_LEN (1 << 10) +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (80 << 20)) /* select serial console configuration */ #define CONFIG_BAUDRATE 115200 diff --git a/include/configs/odroid.h b/include/configs/odroid.h index 3309469..cecee68 100644 --- a/include/configs/odroid.h +++ b/include/configs/odroid.h @@ -39,8 +39,6 @@ #define CONFIG_SYS_TEXT_BASE 0x43e00000 #include -/* Size of malloc() pool */ -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (80 * SZ_1M)) /* select serial console configuration */ #define CONFIG_SERIAL1 diff --git a/include/configs/s5p_goni.h b/include/configs/s5p_goni.h index b22ac18..ec78b6e 100644 --- a/include/configs/s5p_goni.h +++ b/include/configs/s5p_goni.h @@ -39,8 +39,9 @@ #define CONFIG_INITRD_TAG #define CONFIG_CMDLINE_EDITING -/* Size of malloc() pool.*/ -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 80 * SZ_1M) +/* Size of malloc() pool before and after relocation */ +#define CONFIG_SYS_MALLOC_F_LEN (1 << 10) +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (80 << 20)) /* * select serial console configuration diff --git a/include/configs/smdkc100.h b/include/configs/smdkc100.h index 1623963..2ccae5c 100644 --- a/include/configs/smdkc100.h +++ b/include/configs/smdkc100.h @@ -47,6 +47,10 @@ * 1MB = 0x100000, 0x100000 = 1024 * 1024 */ #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (1 << 20)) + +/* Small malloc pool before relocation */ +#define CONFIG_SYS_MALLOC_F_LEN (1 << 10) + /* * select serial console configuration */