From: zonque@gmail.com (Daniel Mack)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: OMAP: generic: add call to of_clk_init()
Date: Sat, 12 Jul 2014 12:55:08 +0200 [thread overview]
Message-ID: <1405162508-9835-1-git-send-email-zonque@gmail.com> (raw)
This is needed to instanciate fixed clocks in the DT.
Signed-off-by: Daniel Mack <zonque@gmail.com>
---
arch/arm/mach-omap2/board-generic.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index 5606fa2..39f154a 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -15,6 +15,7 @@
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/irqdomain.h>
+#include <linux/clk-provider.h>
#include <asm/mach/arch.h>
@@ -33,6 +34,11 @@ static struct of_device_id omap_dt_match_table[] __initdata = {
{ }
};
+static struct of_device_id clk_match[] __initdata = {
+ { .compatible = "fixed-clock", .data = of_fixed_clk_setup, },
+ { }
+};
+
static void __init omap_generic_init(void)
{
omapdss_early_init_of();
@@ -40,6 +46,8 @@ static void __init omap_generic_init(void)
pdata_quirks_init(omap_dt_match_table);
omapdss_init_of();
+
+ of_clk_init(clk_match);
}
#ifdef CONFIG_SOC_OMAP2420
--
1.9.3
next reply other threads:[~2014-07-12 10:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-12 10:55 Daniel Mack [this message]
2014-07-23 8:54 ` [PATCH] ARM: OMAP: generic: add call to of_clk_init() Tony Lindgren
2014-07-23 9:17 ` Daniel Mack
2014-07-28 11:46 ` Tero Kristo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1405162508-9835-1-git-send-email-zonque@gmail.com \
--to=zonque@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).