summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2013-07-02 20:30:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-05 08:27:10 +0200
commitdce879a14e292ea49cfc3ba1b108cb5b6a5f2ef2 (patch)
tree33078c65311e4017ae3ec427e2dac7880caabfc2 /drivers/clocksource
parent6e40610d519f5f2d0135559715ce7d8916db7018 (diff)
downloadbarebox-dce879a14e292ea49cfc3ba1b108cb5b6a5f2ef2.tar.gz
barebox-dce879a14e292ea49cfc3ba1b108cb5b6a5f2ef2.tar.xz
clocksource: orion: add DT support
This adds device tree support to orion timer and also converts clk_get to clk_lookup to find TCLK without device name reference. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/orion.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clocksource/orion.c b/drivers/clocksource/orion.c
index 8817dfeefa..46932f1b05 100644
--- a/drivers/clocksource/orion.c
+++ b/drivers/clocksource/orion.c
@@ -64,9 +64,15 @@ static int orion_timer_probe(struct device_d *dev)
return 0;
}
+static struct of_device_id orion_timer_dt_ids[] = {
+ { .compatible = "marvell,orion-timer", },
+ { }
+};
+
static struct driver_d orion_timer_driver = {
.name = "orion-timer",
.probe = orion_timer_probe,
+ .of_compatible = DRV_OF_COMPAT(orion_timer_dt_ids),
};
static int orion_timer_init(void)