]> git.dujemihanovic.xyz Git - u-boot.git/commit
eeprom: Pull out CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS
authorMarek Vasut <marex@denx.de>
Tue, 10 Nov 2015 19:53:26 +0000 (20:53 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 22 Nov 2015 02:50:24 +0000 (21:50 -0500)
commitd738746cc357e2157fce69f1fd5b25692ac640d1
treeed74e29a3798e3497d634f41eec5ab8a0dc4689c
parent52cd47c9a5b467dd865e872647e9820d85e4292b
eeprom: Pull out CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS

Pull this macro to the beginning of the cmd_eeprom.c and remove
another nasty ifdef from the code. Note that this is legal, since
udelay(0) changes the behavior only such that it pings the WDT if
WDT is enabled and otherwise does not wait.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Heiko Schocher <hs@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
common/cmd_eeprom.c