From patchwork Wed Sep 9 21:13:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 53344 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id 3D4B422B05 for ; Wed, 9 Sep 2015 21:14:09 +0000 (UTC) Received: by lbbti1 with SMTP id ti1sf7630230lbb.3 for ; Wed, 09 Sep 2015 14:14:07 -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=nOcK93kvy3HcK7TizApqULWZbbHew0xMxNQ9lUvIME0=; b=C9aJq6LXRGDnxJ2EbrsOA9WFPqu89KuzyFQshS4nns1rwBxvM7lXCkHEr5fmHhuGBI 8myZhfFifeNqPb1XCL2xFRjWMMHfeY9KdGibEb+yxnuOL6rAzZ8onmzRNaoN2kIgcHd4 NIvMeGuBZGGrQJsy6Z1f3y0LQwrL7MYiBo5tQFnb2XwPPEfW7Kx+q8q0FFcWASn/8/Cu xzGsUAF41mFcGm6X5MUoMxzUPRw5+6ZVE1EgUIQSvLWOdtnfjuHWsDjxpGCe1lfbpMl9 XU7TwuuTIJ2Livmd9v6elxn3sZZAk3jkcKqubTZUOhpli/4j+NZIwiRd+PGWiwKIdq1V ei2w== X-Gm-Message-State: ALoCoQm9i+0RfNdPmRrQhLBGB7BEVwgiUu3WnQz/QULzbKR0QfUIODJTSi4RbR26DvtwPqQIJx/J X-Received: by 10.112.17.106 with SMTP id n10mr8925353lbd.18.1441833247957; Wed, 09 Sep 2015 14:14:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.100 with SMTP id s4ls109915lag.83.gmail; Wed, 09 Sep 2015 14:14:07 -0700 (PDT) X-Received: by 10.112.125.134 with SMTP id mq6mr20283952lbb.19.1441833247805; Wed, 09 Sep 2015 14:14:07 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id f10si7924104lae.88.2015.09.09.14.14.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 14:14:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by lanb10 with SMTP id b10so15273920lan.3 for ; Wed, 09 Sep 2015 14:14:07 -0700 (PDT) X-Received: by 10.152.43.137 with SMTP id w9mr6844770lal.56.1441833247709; Wed, 09 Sep 2015 14:14:07 -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 w3csp561080lbq; Wed, 9 Sep 2015 14:14:07 -0700 (PDT) X-Received: by 10.180.105.135 with SMTP id gm7mr16365455wib.18.1441833244652; Wed, 09 Sep 2015 14:14:04 -0700 (PDT) Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com. [209.85.212.169]) by mx.google.com with ESMTPS id gi4si14867361wjc.108.2015.09.09.14.14.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 14:14:04 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.212.169 as permitted sender) client-ip=209.85.212.169; Received: by wicge5 with SMTP id ge5so1460789wic.0 for ; Wed, 09 Sep 2015 14:14:04 -0700 (PDT) X-Received: by 10.194.82.37 with SMTP id f5mr66966451wjy.36.1441833244347; Wed, 09 Sep 2015 14:14:04 -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 p20sm5797427wie.5.2015.09.09.14.14.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Sep 2015 14:14:03 -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 3/8] ARM: hikey: Use linux/sizes.h for malloc size Date: Wed, 9 Sep 2015 22:13:50 +0100 Message-Id: <1441833235-2359-4-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441833235-2359-1-git-send-email-peter.griffin@linaro.org> References: <1441833235-2359-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.215.53 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 --- 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..d909518 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 SZ_8M /* PL011 Serial Configuration */ #define CONFIG_PL011_SERIAL