summaryrefslogtreecommitdiff
path: root/include/configs/kb9202.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-05-04 21:34:23 +0200
committerWolfgang Denk <wd@denx.de>2008-05-04 21:34:23 +0200
commitb83dcc13ae7b2dab394bfef6f699750d11490ee2 (patch)
tree37d2863a9c7efe06b57ef4e0762828b10045b9bd /include/configs/kb9202.h
parent6adf61dc4cb5c53a2df990cbc8df2bceacbfd869 (diff)
downloadu-boot-imx-b83dcc13ae7b2dab394bfef6f699750d11490ee2.zip
u-boot-imx-b83dcc13ae7b2dab394bfef6f699750d11490ee2.tar.gz
u-boot-imx-b83dcc13ae7b2dab394bfef6f699750d11490ee2.tar.bz2
kb9202 board: fix build problem.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include/configs/kb9202.h')
-rw-r--r--include/configs/kb9202.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/configs/kb9202.h b/include/configs/kb9202.h
index 75d9c3b..7dcce83 100644
--- a/include/configs/kb9202.h
+++ b/include/configs/kb9202.h
@@ -54,10 +54,13 @@
#define CFG_LONGHELP
+#ifndef roundup
+#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
+#endif
/*
* Size of malloc() pool
*/
-#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024)
+#define CFG_MALLOC_LEN (roundup(CFG_ENV_SIZE,4096) + 128*1024)
#define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
#define CONFIG_BAUDRATE 115200