From: Daniel Vetter <daniel@ffwll.ch>
To: Shobhit Kumar <shobhit.kumar@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>,
Daniel Vetter <daniel.vetter@intel.com>,
intel-gfx <intel-gfx@lists.freedesktop.org>
Subject: Re: [RFC 1/4] drm/i915: Define a common data structure for Panel Info
Date: Mon, 5 Jan 2015 16:04:26 +0100 [thread overview]
Message-ID: <20150105150426.GG2711@phenom.ffwll.local> (raw)
In-Reply-To: <1419589410-24365-2-git-send-email-shobhit.kumar@intel.com>
On Fri, Dec 26, 2014 at 03:53:27PM +0530, Shobhit Kumar wrote:
> As of now this includes only PPS and BLC delays. New things can be added
> as and when needed
>
> Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com>
> ---
> drivers/gpu/drm/i915/intel_drv.h | 11 +++++++++++
> drivers/gpu/drm/i915/intel_dsi.h | 7 +------
> drivers/gpu/drm/i915/intel_dsi_panel_vbt.c | 10 +++++-----
> 3 files changed, 17 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
> index 588b618..0088f16 100644
> --- a/drivers/gpu/drm/i915/intel_drv.h
> +++ b/drivers/gpu/drm/i915/intel_drv.h
> @@ -731,6 +731,17 @@ struct intel_load_detect_pipe {
> int dpms_mode;
> };
>
> +struct panel_info {
intel_panel_info please.
-Daniel
> + /* all delays in ms */
> + u16 backlight_off_delay;
> + u16 backlight_on_delay;
> + u16 panel_on_delay;
> + u16 panel_off_delay;
> + u16 panel_pwr_cycle_delay;
> +
> + /* Other panel specififc stuff */
> +};
> +
> static inline struct intel_encoder *
> intel_attached_encoder(struct drm_connector *connector)
> {
> diff --git a/drivers/gpu/drm/i915/intel_dsi.h b/drivers/gpu/drm/i915/intel_dsi.h
> index 8fe2064..8b20f76 100644
> --- a/drivers/gpu/drm/i915/intel_dsi.h
> +++ b/drivers/gpu/drm/i915/intel_dsi.h
> @@ -129,12 +129,7 @@ struct intel_dsi {
> u32 pclk;
> u16 burst_mode_ratio;
>
> - /* all delays in ms */
> - u16 backlight_off_delay;
> - u16 backlight_on_delay;
> - u16 panel_on_delay;
> - u16 panel_off_delay;
> - u16 panel_pwr_cycle_delay;
> + struct panel_info pinfo;
> };
>
> /* XXX: Transitional before dual port configuration */
> diff --git a/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c b/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
> index 5493aef..56b5b80 100644
> --- a/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
> +++ b/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
> @@ -550,11 +550,11 @@ static bool generic_init(struct intel_dsi_device *dsi)
> /* delays in VBT are in unit of 100us, so need to convert
> * here in ms
> * Delay (100us) * 100 /1000 = Delay / 10 (ms) */
> - intel_dsi->backlight_off_delay = pps->bl_disable_delay / 10;
> - intel_dsi->backlight_on_delay = pps->bl_enable_delay / 10;
> - intel_dsi->panel_on_delay = pps->panel_on_delay / 10;
> - intel_dsi->panel_off_delay = pps->panel_off_delay / 10;
> - intel_dsi->panel_pwr_cycle_delay = pps->panel_power_cycle_delay / 10;
> + intel_dsi->pinfo.backlight_off_delay = pps->bl_disable_delay / 10;
> + intel_dsi->pinfo.backlight_on_delay = pps->bl_enable_delay / 10;
> + intel_dsi->pinfo.panel_on_delay = pps->panel_on_delay / 10;
> + intel_dsi->pinfo.panel_off_delay = pps->panel_off_delay / 10;
> + intel_dsi->pinfo.panel_pwr_cycle_delay = pps->panel_power_cycle_delay / 10;
>
> return true;
> }
> --
> 1.9.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-01-05 15:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-26 10:23 [RFC 0/4] PMIC based Panel and Backlight Control Shobhit Kumar
2014-12-26 10:23 ` [RFC 1/4] drm/i915: Define a common data structure for Panel Info Shobhit Kumar
2015-01-05 15:04 ` Daniel Vetter [this message]
2015-01-05 15:44 ` Jani Nikula
2015-01-06 7:58 ` Kumar, Shobhit
2014-12-26 10:23 ` [RFC 2/4] drm/i915: Add a drm_panel over INTEL_SOC_PMIC Shobhit Kumar
2014-12-26 10:23 ` [RFC 3/4] drm/i915/Kconfig: By default select DRM_PANEL Shobhit Kumar
2014-12-26 10:23 ` [RFC 4/4] drm/i915: Enable PMIC panel control as drm_panel for DSI Shobhit Kumar
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=20150105150426.GG2711@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=daniel.vetter@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=shobhit.kumar@intel.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