summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames Miller <jamesmiller@chromium.org>2012-09-28 14:28:00 +0000
committerTom Rini <trini@ti.com>2012-12-19 15:51:23 -0700
commita683c288d46336410ddfa2f5c70046dd1d4a5d1e (patch)
tree5dbf38d6a47020846aa97fb2e3eb9a2219027623 /test
parent095728803eedfce850a2f85828f79500cb09979e (diff)
downloadu-boot-imx-a683c288d46336410ddfa2f5c70046dd1d4a5d1e.zip
u-boot-imx-a683c288d46336410ddfa2f5c70046dd1d4a5d1e.tar.gz
u-boot-imx-a683c288d46336410ddfa2f5c70046dd1d4a5d1e.tar.bz2
spi: Add progress percentage and write speed to `sf update`
Output a progress update only at most 10 times per second, to avoid saturating (and waiting on) the console. Make the summary line to fit on a single line. Make sure that cursor sits at the end of each update line instead of the beginning. Sample output: SF: Detected W25Q32 with page size 4 KiB, total 4 MiB Update SPI 1331200 bytes written, 2863104 bytes skipped in 21.912s, speed 199728 B/s time: 21.919 seconds, 21919 ticks Skipping verify Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: James Miller <jamesmiller@chromium.org> Signed-off-by: Taylor Hutt <thutt@chromium.org> [trini: Drop 'const' from bytes_per_second()] Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions