]> Pileus Git - ~andy/linux/commit
metag: init common clk and use "core" clk
authorJames Hogan <james.hogan@imgtec.com>
Tue, 15 Jan 2013 15:27:45 +0000 (15:27 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Thu, 13 Jun 2013 11:54:41 +0000 (12:54 +0100)
commitcaa279dda4d9a442d824cd333e8b72078b83e855
tree609d39ecdf728bc759ab4a3e8775475b1e4636b7
parentc24d2976c7834aa948f9d8a48ad4285cfbaf1c3a
metag: init common clk and use "core" clk

If the common clock framework is enabled, call of_clk_init(NULL) in
time_init() to register device tree clocks with the clock framework.

After this time_init() calls a new function init_metag_clocks(), which
looks for a clock named "core" in the node compatible with "img,meta"
(usually the root node). If found the get_core_freq machine callback is
overridden to obtain the core clock frequency using that clock.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Mike Turquette <mturquette@linaro.org>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: devicetree-discuss@lists.ozlabs.org
Documentation/devicetree/bindings/metag/meta.txt [new file with mode: 0644]
arch/metag/include/asm/clock.h
arch/metag/kernel/clock.c
arch/metag/kernel/time.c