diff options
Diffstat (limited to 'include/system-constants.h')
-rw-r--r-- | include/system-constants.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/system-constants.h b/include/system-constants.h index 59371568d1e..e09fc418a47 100644 --- a/include/system-constants.h +++ b/include/system-constants.h @@ -3,6 +3,8 @@ #ifndef __SYSTEM_CONSTANTS_H__ #define __SYSTEM_CONSTANTS_H__ +#include <config.h> + /* * The most common case for our initial stack pointer address is to * say that we have defined a static intiial ram address location and @@ -41,4 +43,8 @@ #define SPL_PAYLOAD_ARGS_ADDR 0 #endif +/* Number of pages per block */ +#define SYS_NAND_BLOCK_PAGES \ + (CONFIG_SYS_NAND_BLOCK_SIZE / CONFIG_SYS_NAND_PAGE_SIZE) + #endif |