From f10119f27e4bd6c3f92036bfe5e8119c652f8aa3 Mon Sep 17 00:00:00 2001 From: Sebastian Hesselbarth Date: Tue, 2 Jul 2013 20:30:44 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- drivers/clocksource/mvebu.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/clocksource/mvebu.c') 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) -- cgit v1.2.3