From: Tom Rini Date: Mon, 28 Nov 2016 19:49:14 -0500 Subject: [U-Boot] [U-Boot,v2] timer: Support clocks via phandle In-Reply-To: <1479574647-32326-1-git-send-email-vzakhar@synopsys.com> References: <1479574647-32326-1-git-send-email-vzakhar@synopsys.com> Message-ID: <20161129004914.GQ2546@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Nov 19, 2016 at 07:57:27PM +0300, Zakharov Vlad wrote: > 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 > Reviewed-by: Simon Glass NAK: sandbox: + sandbox_spl x +(sandbox_spl) err = clk_get_by_index(dev, 0, timer_clk); +(sandbox_spl) ^ w+(sandbox_spl) drivers/timer/timer-uclass.c: In function ?timer_pre_probe?: w+(sandbox_spl) drivers/timer/timer-uclass.c:50:6: warning: ?timer_clk? is used uninitialized in this function [-Wuninitialized] -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: