[U-Boot] [PATCH v3 06/20] Add print_freq() to display frequencies nicely

Simon Glass sjg at chromium.org
Thu Apr 30 06:22:06 CEST 2015


On 29 April 2015 at 08:38, Bin Meng <bmeng.cn at gmail.com> wrote:
> On Wed, Apr 29, 2015 at 9:56 PM, Simon Glass <sjg at chromium.org> wrote:
>> Add a function similar to print_size() that works for frequencies. It can
>> handle from Hz to GHz.
>>
>> Signed-off-by: Simon Glass <sjg at chromium.org>
>> ---
>>
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Tested-by: Bin Meng <bmeng.cn at gmail.com>
>
>> Changes in v3:
>> - Only display 2 digits of the fractional part, and round up when needed
>>
>> Changes in v2:
>> - Correct bugs in number output
>>
>>  include/display_options.h | 11 +++++++++++
>>  lib/display_options.c     | 42 ++++++++++++++++++++++++++++++++++++++++++
>>  2 files changed, 53 insertions(+)

Applied to u-boot-x86.


More information about the U-Boot mailing list