From: Afzal Mohammed <afzal@ti.com>
To: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>,
Tomi Valkeinen <tomi.valkeinen@ti.com>,
Grant Likely <grant.likely@secretlab.ca>,
Rob Herring <rob.herring@calxeda.com>, <nsekhar@ti.com>,
<hvaibhav@ti.com>, <linux-omap@vger.kernel.org>,
<linux-fbdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<devicetree-discuss@lists.ozlabs.org>
Subject: [PATCH v2 06/10] video: da8xx-fb: store clk rate even if !CPUFREQ
Date: Mon, 7 Jan 2013 10:35:37 +0530 [thread overview]
Message-ID: <619b7f8d9cbdd7e6f89fdbcb94bc4ce91d269fdd.1357303978.git.afzal@ti.com> (raw)
In-Reply-To: <cover.1357303978.git.afzal@ti.com>
store lcd clk rate always, i.e. irrespective of whether CPUFREQ is
enabled or not. This can be used to get clk rate directly instead of
enquiring with clock framework with clk handle every time.
Signed-off-by: Afzal Mohammed <afzal@ti.com>
---
drivers/video/da8xx-fb.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index 072074d..e858438 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -178,8 +178,8 @@ struct da8xx_fb_par {
unsigned int which_dma_channel_done;
#ifdef CONFIG_CPU_FREQ
struct notifier_block freq_transition;
- unsigned int lcd_fck_rate;
#endif
+ unsigned int lcd_fck_rate;
void (*panel_power_ctrl)(int);
u32 pseudo_palette[16];
struct fb_videomode mode;
@@ -1306,9 +1306,7 @@ static int __devinit fb_probe(struct platform_device *device)
par = da8xx_fb_info->par;
par->lcdc_clk = fb_clk;
-#ifdef CONFIG_CPU_FREQ
par->lcd_fck_rate = clk_get_rate(fb_clk);
-#endif
par->pxl_clk = lcdc_info->pixclock;
if (fb_pdata->panel_power_ctrl) {
par->panel_power_ctrl = fb_pdata->panel_power_ctrl;
--
1.7.9.5
next prev parent reply other threads:[~2013-01-07 5:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-07 5:01 [PATCH v2 00/10] video: da8xx-fb: runtime timing configuration Afzal Mohammed
2013-01-07 5:04 ` [PATCH v2 01/10] video: da8xx-fb: fb_check_var enhancement Afzal Mohammed
2013-01-07 5:04 ` [PATCH v2 02/10] video: da8xx-fb: simplify lcd_reset Afzal Mohammed
2013-01-07 5:04 ` [PATCH v2 03/10] video: da8xx-fb: use modedb helper to update var Afzal Mohammed
2013-01-07 5:05 ` [PATCH v2 04/10] video: da8xx-fb: remove unneeded "var" initialization Afzal Mohammed
2013-01-07 5:05 ` [PATCH v2 05/10] video: da8xx-fb: store current display information Afzal Mohammed
2013-01-07 5:05 ` Afzal Mohammed [this message]
2013-01-07 5:05 ` [PATCH v2 07/10] video: da8xx-fb: pix clk and clk div handling cleanup Afzal Mohammed
2013-01-07 5:05 ` [PATCH v2 08/10] video: da8xx-fb: store struct device * Afzal Mohammed
2013-01-07 5:06 ` [PATCH v2 09/10] video: da8xx-fb: report correct pixclock Afzal Mohammed
2013-01-07 5:06 ` [PATCH v2 10/10] video: da8xx-fb: fb_set_par support Afzal Mohammed
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=619b7f8d9cbdd7e6f89fdbcb94bc4ce91d269fdd.1357303978.git.afzal@ti.com \
--to=afzal@ti.com \
--cc=FlorianSchandinat@gmx.de \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@secretlab.ca \
--cc=hvaibhav@ti.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=nsekhar@ti.com \
--cc=rob.herring@calxeda.com \
--cc=tomi.valkeinen@ti.com \
/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
all inboxes | Powered by JetHome®