Searched hist:a5acafb25598ef409f48a7884316a9a4e96c63a4 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/timer/ |
| H A D | timer-uclass.c | a5acafb25598ef409f48a7884316a9a4e96c63a4 Fri Dec 09 14:18:32 UTC 2016 Zakharov Vlad <Vladislav.Zakharov@synopsys.com> timer: Support clocks via phandle
Earlier timer driver needed a clock-frequency property in compatible device-tree nodes. Another way is to reference a clock via a phandle.
So now timer_pre_probe tries to get clock by reference through device tree. In case it is impossible to get clock device through the reference, clock-frequency property of the timer node is read to provide backward compatibility.
Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com> Reviewed-by: Simon Glass <sjg@chromium.org>
|