From patchwork Thu Oct 2 03:43:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 395750 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 D759414017E for ; Thu, 2 Oct 2014 13:52:25 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2C6454B5FB; Thu, 2 Oct 2014 05:52:24 +0200 (CEST) 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 ur5gR-io7qJT; Thu, 2 Oct 2014 05:52:23 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 797174B5FD; Thu, 2 Oct 2014 05:52:23 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B0205A73E5 for ; Thu, 2 Oct 2014 05:52:18 +0200 (CEST) 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 6lEzbAwDSVmm for ; Thu, 2 Oct 2014 05:52:18 +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-ig0-f202.google.com (mail-ig0-f202.google.com [209.85.213.202]) by theia.denx.de (Postfix) with ESMTPS id 372074B5FB for ; Thu, 2 Oct 2014 05:52:14 +0200 (CEST) Received: by mail-ig0-f202.google.com with SMTP id r10so262914igi.3 for ; Wed, 01 Oct 2014 20:52:13 -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=ItS1LIyfi/nkNf8hb6MFdOSl1x+7uOTwNVnf2VLnWXY=; b=AVFnOB0igDLuKykgdmfCGAx8mLj8jQ5R9BpA/AjShKeQL1F+XsYXePJ7J4gLxHUYw8 +UbZX3flSwizqAF8Jq24DwUQQJ8SMQy9cmLzb5j+Uzs/DZtLtxDJJThRQ8GkldNZRogU 1Hr+NOVtzG29HVI8TJdcbuRPSR5QnqQD0QjdAtd4LofpV8mmfckUlWYRvUz/2U30hcQ/ rSNHPRsKcYDqpHQcdWtYvLVMRoC0RQkyYmQ4S2M3KoN1Hq37/n/MILH7huFUS1lkyuyb DnPO277HFgAOBBC1oouB+8/FRS6EUdqG7PK11fPBvrZ6gKToCi3AlIsTc9p9evf32F6D 4FcA== X-Gm-Message-State: ALoCoQk5LQl9LxlvB6bal7gD0GS3wuSnpknlDHpFgHhs/0EdudTv7+EWHR3TWdLiZQqYe+knpYXZ X-Received: by 10.43.71.81 with SMTP id yj17mr1356632icb.26.1412221933473; Wed, 01 Oct 2014 20:52:13 -0700 (PDT) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id j25si120030yhb.0.2014.10.01.20.52.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Oct 2014 20:52:13 -0700 (PDT) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id nWfDv3vz.1; Wed, 01 Oct 2014 20:52:13 -0700 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 150C0222077; Wed, 1 Oct 2014 21:44:42 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Wed, 1 Oct 2014 21:43:43 -0600 Message-Id: <1412221423-10752-16-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1412221423-10752-1-git-send-email-sjg@chromium.org> References: <1412221423-10752-1-git-send-email-sjg@chromium.org> Cc: Chander Kashyap , Przemyslaw Marczak , Ajay Kumar Subject: [U-Boot] [PATCH v5 15/15] exynos: Enable pre-relocation malloc() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 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 v5: None Changes in v4: None 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 54b61d7..371f32d 100644 --- a/include/configs/exynos-common.h +++ b/include/configs/exynos-common.h @@ -38,8 +38,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 7bba3c5..197afc6 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 eebe378..dc83812 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 */