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 05/10] video: da8xx-fb: store current display information
Date: Mon, 7 Jan 2013 10:35:24 +0530 [thread overview]
Message-ID: <9ebbc3ce648ee1afa72d52e0dacfcbae28272eb9.1357303978.git.afzal@ti.com> (raw)
In-Reply-To: <cover.1357303978.git.afzal@ti.com>
store current videomode and controller data so that reconfiguring can
be done easily. Reconfiguring would be required in fb_set_par, which
is going to be added soon.
If these details are not stored, the work probe does to retrieve these
information would have to repeated at the place of reconfiguring and
modifying platform data would be necessary to handle controller data
changes like bpp.
Signed-off-by: Afzal Mohammed <afzal@ti.com>
---
drivers/video/da8xx-fb.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index 79862ff..072074d 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -182,6 +182,8 @@ struct da8xx_fb_par {
#endif
void (*panel_power_ctrl)(int);
u32 pseudo_palette[16];
+ struct fb_videomode mode;
+ struct lcd_ctrl_config cfg;
};
static struct fb_var_screeninfo da8xx_fb_var;
@@ -1314,6 +1316,8 @@ static int __devinit fb_probe(struct platform_device *device)
}
fb_videomode_to_var(&da8xx_fb_var, lcdc_info);
+ fb_var_to_videomode(&par->mode, &da8xx_fb_var);
+ par->cfg = *lcd_cfg;
if (lcd_init(par, lcd_cfg, lcdc_info) < 0) {
dev_err(&device->dev, "lcd_init failed\n");
--
1.7.9.5
next prev parent reply other threads:[~2013-01-07 5:04 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 ` Afzal Mohammed [this message]
2013-01-07 5:05 ` [PATCH v2 06/10] video: da8xx-fb: store clk rate even if !CPUFREQ Afzal Mohammed
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=9ebbc3ce648ee1afa72d52e0dacfcbae28272eb9.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®