From: Paul Walmsley <paul@pwsan.com>
To: linux-omap@vger.kernel.org
Cc: linux-omap-open-source@linux.omap.com
Subject: [PATCH 2/4] 3430 clock: 3430 clock: combine div2_rates
Date: Tue, 04 Dec 2007 02:26:07 -0700 [thread overview]
Message-ID: <20071204092736.952538577@pwsan.com> (raw)
In-Reply-To: 20071204092605.831497615@pwsan.com
[-- Attachment #1: 3430_coalesce_div2_rates.patch --]
[-- Type: text/plain, Size: 1933 bytes --]
Several 3430 clocks have separate, identical clksel_rate structures
that pass through the full parent rate, or divide it by 2 - combine
these structures.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
---
arch/arm/mach-omap2/clock34xx.h | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
Index: linux-omap/arch/arm/mach-omap2/clock34xx.h
===================================================================
--- linux-omap.orig/arch/arm/mach-omap2/clock34xx.h 2007-11-30 17:56:56.000000000 -0700
+++ linux-omap/arch/arm/mach-omap2/clock34xx.h 2007-11-30 17:57:10.000000000 -0700
@@ -151,14 +151,14 @@
.recalc = &omap2_clksel_recalc,
};
-static const struct clksel_rate sys_osc_rates[] = {
+static const struct clksel_rate div2_rates[] = {
{ .div = 1, .val = 1, .flags = RATE_IN_343X | DEFAULT_RATE },
{ .div = 2, .val = 2, .flags = RATE_IN_343X },
{ .div = 0 }
};
static const struct clksel sys_clksel[] = {
- { .parent = &osc_sys_ck, .rates = sys_osc_rates },
+ { .parent = &osc_sys_ck, .rates = div2_rates },
{ .parent = NULL }
};
@@ -307,12 +307,6 @@
{ .div = 0 }
};
-static const struct clksel_rate div2_rates[] = {
- { .div = 1, .val = 1, .flags = RATE_IN_343X | DEFAULT_RATE },
- { .div = 2, .val = 2, .flags = RATE_IN_343X },
- { .div = 0 },
-};
-
static const struct clksel div2_dpll3m2_clksel[] = {
{ .parent = &dpll3_ck, .rates = div2_rates },
{ .parent = NULL }
@@ -1362,14 +1356,8 @@
/* REVISIT: Technically the TRM claims that this is CORE_CLK based,
* but l4_ick makes more sense to me */
-static const struct clksel_rate usb_l4_l4_rates[] = {
- { .div = 1, .val = 1, .flags = RATE_IN_343X | DEFAULT_RATE },
- { .div = 2, .val = 2, .flags = RATE_IN_343X },
- { .div = 0 }
-};
-
static const struct clksel usb_l4_clksel[] = {
- { .parent = &l4_ick, .rates = usb_l4_l4_rates },
+ { .parent = &l4_ick, .rates = div2_rates },
{ .parent = NULL },
};
--
next prev parent reply other threads:[~2007-12-04 9:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-04 9:26 [PATCH 0/4] 3430 clock: minor cleanup patches Paul Walmsley
2007-12-04 9:26 ` [PATCH 1/4] 3430 clock: 3430 clock: enable SCM clock at boot Paul Walmsley
2007-12-04 9:26 ` Paul Walmsley [this message]
2007-12-04 9:26 ` [PATCH 3/4] 3430 clock: Add missing ICR clock Paul Walmsley
2007-12-04 9:26 ` [PATCH 4/4] 3430 clock: Fix missing enable warnings from various clocks Paul Walmsley
2007-12-05 22:41 ` [PATCH 0/4] 3430 clock: minor cleanup patches Tony Lindgren
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=20071204092736.952538577@pwsan.com \
--to=paul@pwsan.com \
--cc=linux-omap-open-source@linux.omap.com \
--cc=linux-omap@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.