]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: clk: Add support for decoding clocks from the device tree
authorSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2016 02:43:02 +0000 (19:43 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 02:47:29 +0000 (19:47 -0700)
commite70cc438311c753edc1f19214ffc090061e60880
treef7ab2b660954da09ef3cbecd24fb3fa45fb8fe58
parentb21e20b255a02393727c93b1927a381ce3008fa4
dm: clk: Add support for decoding clocks from the device tree

Add a method which can locate a clock for a device, given its index. This
uses the normal device tree bindings to return the clock device and the
first argument which is normally used as a peripheral ID in U-Boot.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/clk/clk-uclass.c
include/clk.h