From: michael.williamson@criticallink.com (Michael Williamson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/6] davinci: da850: add spi device clock definitions
Date: Wed, 9 Feb 2011 08:11:50 -0500 [thread overview]
Message-ID: <1297257114-764-3-git-send-email-michael.williamson@criticallink.com> (raw)
In-Reply-To: <1297257114-764-1-git-send-email-michael.williamson@criticallink.com>
Add spi clock information for da850.
Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
---
arch/arm/mach-davinci/da850.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c
index 3443d97..68fe4c2 100644
--- a/arch/arm/mach-davinci/da850.c
+++ b/arch/arm/mach-davinci/da850.c
@@ -359,6 +359,20 @@ static struct clk usb20_clk = {
.gpsc = 1,
};
+static struct clk spi0_clk = {
+ .name = "spi0",
+ .parent = &pll0_sysclk2,
+ .lpsc = DA8XX_LPSC0_SPI0,
+};
+
+static struct clk spi1_clk = {
+ .name = "spi1",
+ .parent = &pll0_sysclk2,
+ .lpsc = DA8XX_LPSC1_SPI1,
+ .gpsc = 1,
+ .flags = DA850_CLK_ASYNC3,
+};
+
static struct clk_lookup da850_clks[] = {
CLK(NULL, "ref", &ref_clk),
CLK(NULL, "pll0", &pll0_clk),
@@ -403,6 +417,8 @@ static struct clk_lookup da850_clks[] = {
CLK(NULL, "aemif", &aemif_clk),
CLK(NULL, "usb11", &usb11_clk),
CLK(NULL, "usb20", &usb20_clk),
+ CLK("spi_davinci.0", NULL, &spi0_clk),
+ CLK("spi_davinci.1", NULL, &spi1_clk),
CLK(NULL, NULL, NULL),
};
--
1.7.0.4
next prev parent reply other threads:[~2011-02-09 13:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-09 13:11 [PATCH v2 0/6] davinci: Add SPI support for da8xx platforms Michael Williamson
2011-02-09 13:11 ` [PATCH v2 1/6] davinci: da830: fix driver name for spi clocks Michael Williamson
2011-02-09 13:11 ` Michael Williamson [this message]
2011-02-09 13:11 ` [PATCH v2 3/6] davinci: da8xx: add spi resources and registration routine Michael Williamson
2011-02-22 6:14 ` Nori, Sekhar
2011-02-22 12:13 ` Michael Williamson
2011-02-09 13:11 ` [PATCH v2 4/6] davinci: add spi devices support for MityDSP-L138/MityARM-1808 platform Michael Williamson
2011-02-09 13:11 ` [PATCH v2 5/6] davinci: add spi devices support for da850/omap-l138/am18x evm Michael Williamson
2011-02-22 6:37 ` Nori, Sekhar
2011-02-22 12:13 ` Michael Williamson
2011-02-09 13:11 ` [PATCH v2 6/6] davinci: add spi devices support for da830/omap-l137/am17x evm Michael Williamson
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=1297257114-764-3-git-send-email-michael.williamson@criticallink.com \
--to=michael.williamson@criticallink.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).