iod: Enhance to support display of multiple values
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:56:25 +0000 (08:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:44 +0000 (13:57 +0800)
commit9da3776bf6d782be47edcc8f15b89d1ffbd33724
treed838dc74c9fe42498b72e36a69db1cd3eaa73554
parente37d963ec80351e51c3b0832d9306bd91b1dafbf
iod: Enhance to support display of multiple values

At present the 'iod' command differs from 'md' in that it only shows a
single value. It is useful to see a dump of multiple values, particularly
when x86 peripherals contain register sets accessible via I/O ports.

Enhance the command to match md.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: correct multi-line comment format style]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
cmd/io.c