From patchwork Thu Sep 10 20:55:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 53393 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 384EF22B19 for ; Thu, 10 Sep 2015 20:55:29 +0000 (UTC) Received: by wisv5 with SMTP id v5sf11657565wis.0 for ; Thu, 10 Sep 2015 13:55:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=8p6pYz+38VbbNwV8IifVnHN8+50msi7s+hA9mK2W68c=; b=B235QM6LCq8E2bv6VUs9AbXJVeH5dYcdXgR0CwlDdqZ1znIW4Tb8WzDBGvSXgVh1XP hOUFgYYjvxXlblNmjEp95eFy/5RzFizHcDel3tWRXzSfT72k3nsEl1L0YntjCrGNTrix CL6R6EfVGYyt/lM1qu7Zl6kOnYy20faBCAWPd0XfDN1ojustv35qw5HNWFyV5XyxpfR8 vVxZ0uHRdSuZVtXd5H35Akxm0hGIY235l1gzOdb8zVdqdH7wWKKwvhkoVFyR3NeyohFQ iy1KrKDDXZl59vTypOjEFfPaThVIB3A5Ir9IpJnCI51n3Lfx8N1YRShBH13pddNLmMIF jpTA== X-Gm-Message-State: ALoCoQn+wRkPPgujfgtFQWp6OoOh6qRaNCtd4xTOoj5VgiaEgrFDZ7YeFkzqXMw2Wl3m1GUlMtIf X-Received: by 10.152.19.234 with SMTP id i10mr9198491lae.8.1441918528193; Thu, 10 Sep 2015 13:55:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.198.137 with SMTP id jc9ls228952lac.26.gmail; Thu, 10 Sep 2015 13:55:28 -0700 (PDT) X-Received: by 10.152.1.226 with SMTP id 2mr38222708lap.116.1441918528055; Thu, 10 Sep 2015 13:55:28 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id b7si11551847laa.119.2015.09.10.13.55.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2015 13:55:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbcjc2 with SMTP id jc2so29903863lbc.0 for ; Thu, 10 Sep 2015 13:55:28 -0700 (PDT) X-Received: by 10.112.72.97 with SMTP id c1mr24307845lbv.86.1441918527819; Thu, 10 Sep 2015 13:55:27 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1196184lbq; Thu, 10 Sep 2015 13:55:27 -0700 (PDT) X-Received: by 10.194.84.129 with SMTP id z1mr77068326wjy.17.1441918527251; Thu, 10 Sep 2015 13:55:27 -0700 (PDT) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com. [209.85.212.179]) by mx.google.com with ESMTPS id ta5si13781564wic.124.2015.09.10.13.55.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2015 13:55:27 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.212.179 as permitted sender) client-ip=209.85.212.179; Received: by wicfx3 with SMTP id fx3so36934588wic.0 for ; Thu, 10 Sep 2015 13:55:27 -0700 (PDT) X-Received: by 10.194.201.130 with SMTP id ka2mr46589857wjc.79.1441918526972; Thu, 10 Sep 2015 13:55:26 -0700 (PDT) Received: from localhost.localdomain (cpc14-aztw22-2-0-cust189.18-1.cable.virginm.net. [82.45.1.190]) by smtp.gmail.com with ESMTPSA id s9sm17508216wjy.16.2015.09.10.13.55.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Sep 2015 13:55:26 -0700 (PDT) From: Peter Griffin To: u-boot@lists.denx.de, trini@konsulko.com, sjg@chromium.org, albert.u.boot@aribaud.net Cc: Peter Griffin Subject: [PATCH v2 3/8] ARM: hikey: Use linux/sizes.h for malloc size Date: Thu, 10 Sep 2015 21:55:13 +0100 Message-Id: <1441918518-25629-4-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441918518-25629-1-git-send-email-peter.griffin@linaro.org> References: <1441918518-25629-1-git-send-email-peter.griffin@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.griffin@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Use the #defines in linux/sizes for malloc size as it is more readable. Signed-off-by: Peter Griffin Reviewed-by: Simon Glass --- include/configs/hikey.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/configs/hikey.h b/include/configs/hikey.h index 8ff9077..7666bf9 100644 --- a/include/configs/hikey.h +++ b/include/configs/hikey.h @@ -12,6 +12,8 @@ #ifndef __HIKEY_H #define __HIKEY_H +#include + /* We use generic board for hikey */ #define CONFIG_SYS_GENERIC_BOARD #define CONFIG_POWER @@ -55,7 +57,7 @@ #define GICC_BASE 0xf6802000 /* Size of malloc() pool */ -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (8 << 20)) +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + SZ_8M) /* PL011 Serial Configuration */ #define CONFIG_PL011_SERIAL