summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2013-07-02 20:30:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-05 08:27:10 +0200
commitf10119f27e4bd6c3f92036bfe5e8119c652f8aa3 (patch)
treec2ee7a65150d91a6f25f831e273eb1420febe7b5 /drivers/clocksource
parent3c2485820655c4fd0adca05b91eaa2d8e46e0252 (diff)
downloadbarebox-f10119f27e4bd6c3f92036bfe5e8119c652f8aa3.tar.gz
barebox-f10119f27e4bd6c3f92036bfe5e8119c652f8aa3.tar.xz
clocksource: mvebu: add DT support
This adds device tree support to mvebu 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/mvebu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clocksource/mvebu.c b/drivers/clocksource/mvebu.c
index 6bd83f7130..e0c85edaa6 100644
--- a/drivers/clocksource/mvebu.c
+++ b/drivers/clocksource/mvebu.c
@@ -77,9 +77,15 @@ static int mvebu_timer_probe(struct device_d *dev)
return 0;
}
+static struct of_device_id mvebu_timer_dt_ids[] = {
+ { .compatible = "marvell,armada-370-xp-timer", },
+ { }
+};
+
static struct driver_d mvebu_timer_driver = {
.name = "mvebu-timer",
.probe = mvebu_timer_probe,
+ .of_compatible = DRV_OF_COMPAT(mvebu_timer_dt_ids),
};
static int mvebu_timer_init(void)