[PATCH] timer-uclass: Always use "clock-frequency" property as fallback

Tom Rini trini at konsulko.com
Wed Nov 29 17:57:58 CET 2023


On Tue, Nov 14, 2023 at 10:11:27PM +0100, Alex Bee wrote:

> Currently the "clock-frequency" DT property is only being considered as an
> fallback if either there is no clock driver, the clock driver implements
> the request-op correctly or there is no clock defined for the timer at all.
> 
> This patch makes "clock-frequency" also being picked as a fallback if
> getting the clock-rate fails, since clk_get(_by_index) will return no
> error, if a clock driver does not implement the request-op and does also
> not support getting the rate of the clock in question.
> timer_post_probe will take care if the property does not exist in the DT or
> is defined as 0.
> 
> Signed-off-by: Alex Bee <knaerzche at gmail.com>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20231129/36c512dd/attachment.sig>


More information about the U-Boot mailing list