From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-bk0-x22f.google.com ([2a00:1450:4008:c01::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uu5MI-000638-C7 for barebox@lists.infradead.org; Tue, 02 Jul 2013 18:31:27 +0000 Received: by mail-bk0-f47.google.com with SMTP id jg1so2471800bkc.6 for ; Tue, 02 Jul 2013 11:31:00 -0700 (PDT) From: Sebastian Hesselbarth Date: Tue, 2 Jul 2013 20:30:44 +0200 Message-Id: <1372789849-12194-6-git-send-email-sebastian.hesselbarth@gmail.com> In-Reply-To: <1372443947-12599-1-git-send-email-sebastian.hesselbarth@gmail.com> References: <1372443947-12599-1-git-send-email-sebastian.hesselbarth@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 05/10] clocksource: mvebu: add DT support To: Sebastian Hesselbarth Cc: Thomas Petazzoni , barebox@lists.infradead.org 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 --- Changelog: v1->v2: - do not use clk_lookup (Suggested by Sascha Hauer) Cc: Thomas Petazzoni Cc: barebox@lists.infradead.org --- drivers/clocksource/mvebu.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/clocksource/mvebu.c b/drivers/clocksource/mvebu.c index 6bd83f7..e0c85ed 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) -- 1.7.2.5 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox