summaryrefslogtreecommitdiff
path: root/include/configs/bmips_common.h
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2019-08-30 11:54:27 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2019-10-25 17:20:43 +0200
commit55daf1c45c6fee60840842f86796368a766c01e9 (patch)
tree95a9200bca5c859957e7fa261f148b403732bf76 /include/configs/bmips_common.h
parent9e484636f1ff5847293c04ceab90358315a42c2a (diff)
bmips: configs: switch to size definitions
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'include/configs/bmips_common.h')
-rw-r--r--include/configs/bmips_common.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/configs/bmips_common.h b/include/configs/bmips_common.h
index ca079fa2e2..3cb2d4050d 100644
--- a/include/configs/bmips_common.h
+++ b/include/configs/bmips_common.h
@@ -6,6 +6,8 @@
#ifndef __CONFIG_BMIPS_COMMON_H
#define __CONFIG_BMIPS_COMMON_H
+#include <linux/sizes.h>
+
/* ETH */
#define CONFIG_PHY_RESET_DELAY 20
#define CONFIG_SYS_RX_ETH_BUFFER 6
@@ -16,9 +18,9 @@
/* Memory usage */
#define CONFIG_SYS_MAXARGS 24
-#define CONFIG_SYS_MALLOC_LEN (2 * 1024 * 1024)
-#define CONFIG_SYS_BOOTPARAMS_LEN (128 * 1024)
-#define CONFIG_SYS_CBSIZE 512
+#define CONFIG_SYS_MALLOC_LEN SZ_2M
+#define CONFIG_SYS_BOOTPARAMS_LEN SZ_128K
+#define CONFIG_SYS_CBSIZE SZ_512
/* U-Boot */
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE