All of lore.kernel.org
 help / color / mirror / Atom feed
From: Afzal Mohammed <afzal@ti.com>
To: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>,
	Tomi Valkeinen <tomi.valkeinen@ti.com>,
	Sekhar Nori <nsekhar@ti.com>, <linux-omap@vger.kernel.org>,
	<linux-fbdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: [PATCH v3 06/10] video: da8xx-fb: store clk rate even if !CPUFREQ
Date: Tue, 15 Jan 2013 19:02:09 +0530	[thread overview]
Message-ID: <564a1730402897cabc71d114b6272120641428bd.1358250489.git.afzal@ti.com> (raw)
In-Reply-To: <cover.1358250489.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 d060f14..f1d88ac 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -174,8 +174,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;
@@ -1302,9 +1302,7 @@ static int 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


WARNING: multiple messages have this Message-ID (diff)
From: Afzal Mohammed <afzal@ti.com>
To: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>,
	Tomi Valkeinen <tomi.valkeinen@ti.com>,
	Sekhar Nori <nsekhar@ti.com>,
	linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v3 06/10] video: da8xx-fb: store clk rate even if !CPUFREQ
Date: Tue, 15 Jan 2013 13:44:09 +0000	[thread overview]
Message-ID: <564a1730402897cabc71d114b6272120641428bd.1358250489.git.afzal@ti.com> (raw)
In-Reply-To: <cover.1358250489.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 d060f14..f1d88ac 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -174,8 +174,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;
@@ -1302,9 +1302,7 @@ static int 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


WARNING: multiple messages have this Message-ID (diff)
From: Afzal Mohammed <afzal@ti.com>
To: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>,
	Tomi Valkeinen <tomi.valkeinen@ti.com>,
	Sekhar Nori <nsekhar@ti.com>,
	linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v3 06/10] video: da8xx-fb: store clk rate even if !CPUFREQ
Date: Tue, 15 Jan 2013 19:02:09 +0530	[thread overview]
Message-ID: <564a1730402897cabc71d114b6272120641428bd.1358250489.git.afzal@ti.com> (raw)
In-Reply-To: <cover.1358250489.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 d060f14..f1d88ac 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -174,8 +174,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;
@@ -1302,9 +1302,7 @@ static int 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

  parent reply	other threads:[~2013-01-15 13:33 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-15 13:30 [PATCH v3 00/10] video: da8xx-fb: runtime timing configuration Afzal Mohammed
2013-01-15 13:42 ` Afzal Mohammed
2013-01-15 13:30 ` Afzal Mohammed
2013-01-15 13:31 ` [PATCH v3 01/10] video: da8xx-fb: fb_check_var enhancement Afzal Mohammed
2013-01-15 13:43   ` Afzal Mohammed
2013-01-15 13:31   ` Afzal Mohammed
2013-01-15 13:31 ` [PATCH v3 02/10] video: da8xx-fb: simplify lcd_reset Afzal Mohammed
2013-01-15 13:43   ` Afzal Mohammed
2013-01-15 13:31   ` Afzal Mohammed
2013-01-15 13:31 ` [PATCH v3 03/10] video: da8xx-fb: use modedb helper to update var Afzal Mohammed
2013-01-15 13:43   ` Afzal Mohammed
2013-01-15 13:31   ` Afzal Mohammed
2013-01-15 13:31 ` [PATCH v3 04/10] video: da8xx-fb: remove unneeded "var" initialization Afzal Mohammed
2013-01-15 13:43   ` Afzal Mohammed
2013-01-15 13:31   ` Afzal Mohammed
2013-01-15 13:32 ` [PATCH v3 05/10] video: da8xx-fb: store current display information Afzal Mohammed
2013-01-15 13:44   ` Afzal Mohammed
2013-01-15 13:32   ` Afzal Mohammed
2013-01-15 13:32 ` Afzal Mohammed [this message]
2013-01-15 13:44   ` [PATCH v3 06/10] video: da8xx-fb: store clk rate even if !CPUFREQ Afzal Mohammed
2013-01-15 13:32   ` Afzal Mohammed
2013-01-15 13:32 ` [PATCH v3 07/10] video: da8xx-fb: pix clk and clk div handling cleanup Afzal Mohammed
2013-01-15 13:44   ` Afzal Mohammed
2013-01-15 13:32   ` Afzal Mohammed
2013-01-15 13:32 ` [PATCH v3 08/10] video: da8xx-fb: store struct device * Afzal Mohammed
2013-01-15 13:44   ` Afzal Mohammed
2013-01-15 13:32   ` Afzal Mohammed
2013-01-15 13:32 ` [PATCH v3 09/10] video: da8xx-fb: report correct pixclock Afzal Mohammed
2013-01-15 13:44   ` Afzal Mohammed
2013-01-15 13:32   ` Afzal Mohammed
2013-01-15 13:32 ` [PATCH v3 10/10] video: da8xx-fb: fb_set_par support Afzal Mohammed
2013-01-15 13:44   ` Afzal Mohammed
2013-01-15 13:32   ` Afzal Mohammed
2013-02-07  9:05 ` [PATCH v3 00/10] video: da8xx-fb: runtime timing configuration Mohammed, Afzal
2013-02-07  9:05   ` Mohammed, Afzal
2013-02-07  9:05   ` Mohammed, Afzal
2013-02-07  9:13   ` Tomi Valkeinen
2013-02-07  9:13     ` Tomi Valkeinen

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=564a1730402897cabc71d114b6272120641428bd.1358250489.git.afzal@ti.com \
    --to=afzal@ti.com \
    --cc=FlorianSchandinat@gmx.de \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=nsekhar@ti.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 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.