diff mbox

[U-Boot] doc/README.cfi: Update code snippet for flash_cmd_reset()

Message ID alpine.LFD.2.20.1612290455470.24620@localhost.localdomain
State Superseded
Headers show

Commit Message

Robert P. J. Day Dec. 29, 2016, 9:57 a.m. UTC
Minor update in code snippet in the doc file to match source.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>

---
diff mbox

Patch

diff --git a/doc/README.cfi b/doc/README.cfi
index 81e7cf1..6b8be41 100644
--- a/doc/README.cfi
+++ b/doc/README.cfi
@@ -1,7 +1,7 @@ 
 The common CFI driver provides this weak default implementation for
 flash_cmd_reset():

-void __flash_cmd_reset(flash_info_t *info)
+static void __flash_cmd_reset(flash_info_t *info)
 {
 	/*
 	 * We do not yet know what kind of commandset to use, so we issue
@@ -9,12 +9,12 @@  void __flash_cmd_reset(flash_info_t *info)
 	 * that AMD flash roms ignore the Intel command.
 	 */
 	flash_write_cmd(info, 0, 0, AMD_CMD_RESET);
+	udelay(1);
 	flash_write_cmd(info, 0, 0, FLASH_CMD_RESET);
 }
 void flash_cmd_reset(flash_info_t *info)
 	__attribute__((weak,alias("__flash_cmd_reset")));

-
 Some flash chips seems to have trouble with this reset sequence. In this case
 the board specific code can override this weak default version with a board
 specific function. For example the digsy_mtc board equipped with the M29W128GH