Add print_freq() to display frequencies nicely
authorSimon Glass <sjg@chromium.org>
Wed, 29 Apr 2015 13:56:43 +0000 (07:56 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 30 Apr 2015 03:02:33 +0000 (21:02 -0600)
commit33eac2dc25eb8b38d2991c61036d20f707fdd54f
treeb01867b94b4fe56720e23a0e363b9bcf4a8d6d04
parent2ea09c836f65f52a35f5242d04f0a9e3e36b773d
Add print_freq() to display frequencies nicely

Add a function similar to print_size() that works for frequencies. It can
handle from Hz to GHz.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
include/display_options.h
lib/display_options.c