Commit 5aeeabf4 authored by Thomas Chou's avatar Thomas Chou Committed by Stefan Roese

cfi_flash: give default CONFIG_SYS_MAX_FLASH_SECT in flash.h

Give default CONFIG_SYS_MAX_FLASH_SECT in flash.h, so that
the header can be included regardless of the present of flash.
The value 512 is the most used.
Signed-off-by: default avatarThomas Chou <>
Signed-off-by: default avatarStefan Roese <>
parent fa8883a1
......@@ -8,7 +8,10 @@
#ifndef _FLASH_H_
#define _FLASH_H_
* FLASH Info: contains chip specific data, per FLASH bank
......@@ -503,6 +506,4 @@ extern flash_info_t *flash_get_info(ulong base);
#define FLASH_ERASE_TIMEOUT 120000 /* timeout for erasing in ms */
#define FLASH_WRITE_TIMEOUT 500 /* timeout for writes in ms */
#endif /* !CONFIG_SYS_NO_FLASH */
#endif /* _FLASH_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment