diff options
author | Alexey Brodkin <Alexey.Brodkin@synopsys.com> | 2015-12-14 18:45:34 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-12-16 10:31:31 -0500 |
commit | 52bc7c7e2b31d6ba8d394f3d22b551abfa365363 (patch) | |
tree | f3fbd32b245109c86c23850fc564d16ad9d827d4 /doc/DocBook | |
parent | 2e680f92b888b4cb2fde2b0c77cbde22b48933f5 (diff) | |
download | u-boot-imx-52bc7c7e2b31d6ba8d394f3d22b551abfa365363.zip u-boot-imx-52bc7c7e2b31d6ba8d394f3d22b551abfa365363.tar.gz u-boot-imx-52bc7c7e2b31d6ba8d394f3d22b551abfa365363.tar.bz2 |
eeprom: fix eeprom write procedure
This fixes commit 1a37889b0ad084a740b4f785031d7ae9955d947b:
----------------------->8--------------------
eeprom: Pull out the RW loop
Unify the code for doing read/write into single function, since the
code for both the read and write is almost identical. This again
trims down the code duplication.
----------------------->8--------------------
where the same one routine is utilized for both EEPROM writing and
reading. The only difference was supposed to be a "read" flag which
in both cases was set with 1 somehow.
That lead to a missing delay in case of writing which lead to write
failure (in my case no data was written).
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Acked-by: Marek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'doc/DocBook')
0 files changed, 0 insertions, 0 deletions