Files
u-boot-bpi-r3/common
James Miller a683c288d4 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>
2012-12-19 15:51:23 -07:00
..
2012-12-05 17:30:22 +01:00
2012-11-04 11:00:35 -07:00
2012-12-11 13:17:33 -07:00
2012-10-03 16:01:22 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-10-15 11:53:07 -07:00
2011-10-22 01:22:21 +02:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:34 -07:00
2012-11-04 11:00:34 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:34 -07:00
2012-12-11 13:17:33 -07:00
2012-12-13 11:46:02 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2011-04-08 00:44:27 -04:00
2012-11-04 11:00:35 -07:00
2011-07-28 16:41:06 +02:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-26 15:41:29 -06:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-09-27 12:22:11 -05:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-12-11 13:17:34 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-12-11 13:18:13 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-08-09 23:39:18 +02:00
2012-09-29 07:26:09 -07:00
2012-12-13 11:46:56 -07:00
2012-11-04 11:00:35 -07:00
2012-12-11 13:17:34 -07:00
2011-12-07 08:41:22 +01:00
2012-12-11 13:17:34 -07:00
2012-11-04 11:00:35 -07:00
2011-02-02 22:36:10 +01:00
2012-12-13 11:46:56 -07:00
2010-01-18 00:23:00 +01:00
2012-11-07 00:57:25 +01:00
2011-10-22 01:13:35 +02:00
2012-12-13 11:46:56 -07:00
2012-12-11 13:17:33 -07:00
2012-11-04 11:00:36 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00