Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions drivers/flash/flash_npcx_fiu_nor.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ LOG_MODULE_REGISTER(flash_npcx_fiu_nor, CONFIG_FLASH_LOG_LEVEL);
#define BLOCK_64K_SIZE KB(64)
#define BLOCK_4K_SIZE KB(4)

#define POLLING_BUSY_SLEEP_TIME_US 100

/* Device config */
struct flash_npcx_nor_config {
/* QSPI bus device for mutex control and bus configuration */
Expand Down Expand Up @@ -153,6 +155,7 @@ static int flash_npcx_nor_wait_until_ready(const struct device *dev)
return 0;
}

k_usleep(POLLING_BUSY_SLEEP_TIME_US);
} while ((k_uptime_get() - st) < config->max_timeout);

return -EBUSY;
Expand Down
Loading