From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
To: linux-omap@vger.kernel.org
Subject: Setting dss1_alwon_fck
Date: Mon, 20 Oct 2008 15:11:34 +0300 [thread overview]
Message-ID: <1224504694.23383.11.camel@tubuntu> (raw)
Hi,
Mans Rullgard has the patches mentioned below in his kernel tree at
http://git.mansr.com/?p=linux-omap;a=summary . I currently have those
patches and use the following sequence to set the dss1_alwon_fck clock:
/* get the rate of the parent of dpll4_m4_ck, which is dpll4_ck */
prate = clk_get_rate(clk_get_parent(dispc.dpll4_m4_ck));
/* calculate divisor so that wanted dss1_alwon_fck is prate / div * 2.
* x2 because dss1_alwon_fck comes from dpll4_m4x2_ck */
div = ...;
/* set the rate */
clk_set_rate(dispc.dpll4_m4_ck, prate / div);
Is this the correct way to set dss1_alwon_fck? Are the patches below
needed, or can dss1_alwon_fck be set some other way?
Tomi
commit e2de5e5578fbaa9b4b75074796da0608fc93e6ae
Author: Mans Rullgard <mans@mansr.com>
Date: Tue Jul 22 01:58:18 2008 +0100
ARM: OMAP: add clk_get_parent() for OMAP2/3
Signed-off-by: Mans Rullgard <mans@mansr.com>
:100644 100644 577be44... 28aec36... M arch/arm/mach-omap2/clock.c
:100644 100644 49245f7... 4aa69d5... M arch/arm/mach-omap2/clock.h
:100644 100644 54cc6e1... ed7af21... M arch/arm/mach-omap2/clock24xx.c
:100644 100644 04dedec... 08c8c46... M arch/arm/mach-omap2/clock34xx.c
commit 2b7b958dc79e51127d7a4ecf88ce12dbc6c31426
Author: Mans Rullgard <mans@mansr.com>
Date: Tue Jul 22 01:31:11 2008 +0100
ARM: OMAP: make dpll4_m4_ck programmable with clk_set_rate()
Filling the set_rate and round_rate fields of dpll4_m4_ck makes
this clock programmable through clk_set_rate(). This is needed
to give omapfb control over the dss1_alwon_fck rate.
:100644 100644 161da12... 876eb13... M arch/arm/mach-omap2/clock34xx.h
next reply other threads:[~2008-10-20 12:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-20 12:11 Tomi Valkeinen [this message]
2008-10-20 23:23 ` Setting dss1_alwon_fck Måns Rullgård
2008-10-20 23:24 ` [PATCH 1/2] OMAP: Make dpll4_m4_ck programmable with clk_set_rate() Mans Rullgard
2008-12-05 23:52 ` Paul Walmsley
2008-12-06 0:11 ` Tony Lindgren
2008-12-06 1:03 ` Paul Walmsley
2008-12-06 1:10 ` Tony Lindgren
2008-12-06 1:40 ` Måns Rullgård
2008-12-06 2:12 ` Branch for fbdriver (Re: [PATCH 1/2] OMAP: Make dpll4_m4_ck programmable with clk_set_rate()) Tony Lindgren
2008-12-08 14:54 ` Tomi Valkeinen
2008-12-08 17:26 ` Tony Lindgren
2008-10-20 23:24 ` [PATCH 2/2] OMAP: Add clk_get_parent() for OMAP2/3 Mans Rullgard
2008-12-05 23:52 ` Paul Walmsley
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=1224504694.23383.11.camel@tubuntu \
--to=tomi.valkeinen@nokia.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.