[U-Boot] [PATCH u-boot-spi v2 1/1] spi: mvebu_a3700_spi: Fix clock prescale computation

Jagan Teki jagan at amarulasolutions.com
Wed Aug 14 07:29:54 UTC 2019


On Tue, Jul 23, 2019 at 8:19 PM Marek BehĂșn <marek.behun at nic.cz> wrote:
>
> The prescaler value computation can yield wrong result if given 0x1f at
> the beginning: the value is computed to be 0x20, but the maximum value
> the register can hold 0x1f, so the actual stored value in this case is
> 0, which is obviously wrong.
> Set the upper bound of the value to 0x1f with the min macro.
>
> Signed-off-by: Marek BehĂșn <marek.behun at nic.cz>
> ---

Applied to u-boot-spi/master


More information about the U-Boot mailing list