[PATCH 01/26] lib: rational: copy the rational fraction lib routines from Linux

Tero Kristo t-kristo at ti.com
Wed Nov 11 08:03:17 CET 2020


On 10/11/2020 14:55, Tom Rini wrote:
> On Tue, Nov 10, 2020 at 11:05:37AM +0200, Tero Kristo wrote:
> 
>> Copy the best rational approximation calculation routines from Linux.
>> Typical usecase for these routines is to calculate the M/N divider
>> values for PLLs to reach a specific clock rate.
>>
>> Signed-off-by: Tero Kristo <t-kristo at ti.com>
> 
> Please say what version of the Linux kernel this is from, for easier
> later re-syncing.  Thanks.
> 

This is based on kernel commit:

commit 323dd2c3ed0641f49e89b4e420f9eef5d3d5a881
Author: Trent Piepho <tpiepho at gmail.com>
Date:   Wed Dec 4 16:51:57 2019 -0800

     lib/math/rational.c: fix possible incorrect result from rational 
fractions helper

-Tero
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki


More information about the U-Boot mailing list