diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/spi-generic.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/spi-generic.h b/src/include/spi-generic.h index d0f957f1f9..93704f81d9 100644 --- a/src/include/spi-generic.h +++ b/src/include/spi-generic.h @@ -16,6 +16,15 @@ #ifndef _SPI_GENERIC_H_ #define _SPI_GENERIC_H_ +/* Common parameters -- kind of high, but they should only occur when there + * is a problem (and well your system already is broken), so err on the side + * of caution in case we're dealing with slower SPI buses and/or processors. + */ +#define CONF_SYS_HZ 100 +#define SPI_FLASH_PROG_TIMEOUT (2 * CONF_SYS_HZ) +#define SPI_FLASH_PAGE_ERASE_TIMEOUT (5 * CONF_SYS_HZ) +#define SPI_FLASH_SECTOR_ERASE_TIMEOUT (10 * CONF_SYS_HZ) + #include <commonlib/region.h> #include <stdint.h> #include <stddef.h> |