ARM: zynq: use zynq clk bindings
Make the Zynq platform use the newly created zynq clk bindings. Signed-off-by: Josh Cartwright <josh.cartwright@ni.com> Acked-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:

committed by
Michal Simek

parent
45aa2c27ad
commit
0f586fbf6f
@@ -19,6 +19,8 @@
|
||||
#include <linux/cpumask.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/clk.h>
|
||||
#include <linux/clk/zynq.h>
|
||||
#include <linux/of_address.h>
|
||||
#include <linux/of_irq.h>
|
||||
#include <linux/of_platform.h>
|
||||
#include <linux/of.h>
|
||||
@@ -96,6 +98,15 @@ static struct map_desc io_desc[] __initdata = {
|
||||
|
||||
static void __init xilinx_zynq_timer_init(void)
|
||||
{
|
||||
struct device_node *np;
|
||||
void __iomem *slcr;
|
||||
|
||||
np = of_find_compatible_node(NULL, NULL, "xlnx,zynq-slcr");
|
||||
slcr = of_iomap(np, 0);
|
||||
WARN_ON(!slcr);
|
||||
|
||||
xilinx_zynq_clocks_init(slcr);
|
||||
|
||||
xttcpss_timer_init();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user