U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Griffin <peter.griffin@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/8] ARM: hikey: Use linux/sizes.h for malloc size
Date: Thu, 10 Sep 2015 21:55:13 +0100	[thread overview]
Message-ID: <1441918518-25629-4-git-send-email-peter.griffin@linaro.org> (raw)
In-Reply-To: <1441918518-25629-1-git-send-email-peter.griffin@linaro.org>

Use the #defines in linux/sizes for malloc size as it is
more readable.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
---
 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 <linux/sizes.h>
+
 /* 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
-- 
1.9.1

  parent reply	other threads:[~2015-09-10 20:55 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10 20:55 [U-Boot] [PATCH v2 0/8] arm: hikey: hi6220: Various fixups Peter Griffin
2015-09-10 20:55 ` [U-Boot] [PATCH v2 1/8] ARM: hikey: Update README with various corrections Peter Griffin
2015-09-28 21:07   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-09-10 20:55 ` [U-Boot] [PATCH v2 2/8] ARM: hikey: Add ATF makefile referenced by README Peter Griffin
2015-09-24 21:09   ` Tom Rini
2015-09-28 21:07   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-09-10 20:55 ` Peter Griffin [this message]
2015-09-18  4:03   ` [U-Boot] [PATCH v2 3/8] ARM: hikey: Use linux/sizes.h for malloc size Simon Glass
2015-09-28 21:07   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-09-10 20:55 ` [U-Boot] [PATCH v2 4/8] ARM: hi6220: Add UART0 and UART3 base addresses Peter Griffin
2015-09-18  4:03   ` Simon Glass
2015-09-28 21:07   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-09-10 20:55 ` [U-Boot] [PATCH v2 5/8] ARM: hikey: Remove resetting gd->flags in board_init() Peter Griffin
2015-09-18  4:04   ` Simon Glass
2015-09-28 21:08   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-09-10 20:55 ` [U-Boot] [PATCH v2 6/8] ARM: hikey: Select DM, DM_GPIO from Kconfig Peter Griffin
2015-09-18  4:04   ` Simon Glass
2015-09-28 21:08   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-09-10 20:55 ` [U-Boot] [PATCH v2 7/8] ARM: hikey: hi6220: Migrate over to DM_SERIAL and use UART3 by default Peter Griffin
2015-09-18  4:04   ` Simon Glass
2015-09-28 21:08   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-09-10 20:55 ` [U-Boot] [PATCH v2 8/8] ARM: hikey: Adjust SDRAM_1_SIZE to 0x3EFFFFFF Peter Griffin
2015-09-18  4:04   ` Simon Glass
2015-09-28 21:08   ` [U-Boot] [U-Boot, v2, " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1441918518-25629-4-git-send-email-peter.griffin@linaro.org \
    --to=peter.griffin@linaro.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox