From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Mikko Perttunen <mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
tbergstrom-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v2 1/6] host1x: hdmi: Add Tegra114 support
Date: Wed, 04 Sep 2013 12:39:59 -0600 [thread overview]
Message-ID: <52277E7F.5050609@wwwdotorg.org> (raw)
In-Reply-To: <1377704922-2824-2-git-send-email-mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
On 08/28/2013 09:48 AM, Mikko Perttunen wrote:
> Add Tegra114 TMDS configuration, add new peak_current field and
> use new place for drive current override bit on Tegra114 platform.
> diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c
> static struct of_device_id host1x_of_match[] = {
> + { .compatible = "nvidia,tegra114-host1x", .data = &host1x01_info, },
We should add that value to the host1x DT binding documentation.
> diff --git a/drivers/gpu/host1x/drm/hdmi.c b/drivers/gpu/host1x/drm/hdmi.c
> static const struct tegra_hdmi_audio_config *
> tegra_hdmi_get_audio_config(unsigned int audio_freq, unsigned int pclk)
> {
> @@ -593,8 +673,20 @@ static void tegra_hdmi_setup_tmds(struct tegra_hdmi *hdmi,
> tegra_hdmi_writel(hdmi, tmds->pll1, HDMI_NV_PDISP_SOR_PLL1);
> tegra_hdmi_writel(hdmi, tmds->pe_current, HDMI_NV_PDISP_PE_CURRENT);
>
> - value = tmds->drive_current | DRIVE_CURRENT_FUSE_OVERRIDE;
> - tegra_hdmi_writel(hdmi, value, HDMI_NV_PDISP_SOR_LANE_DRIVE_CURRENT);
> + if (of_device_is_compatible(hdmi->dev->of_node,
> + "nvidia,tegra114-hdmi")) {
We shouldn't do this at run-time. Rather, set tegra_hdmi_of_match[]'s
.data field to a structure that represents the various features of the
HW, and then make this code conditional upon a feature flag in that
structure.
WARNING: multiple messages have this Message-ID (diff)
From: Stephen Warren <swarren@wwwdotorg.org>
To: Mikko Perttunen <mperttunen@nvidia.com>
Cc: thierry.reding@gmail.com, tbergstrom@nvidia.com,
dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/6] host1x: hdmi: Add Tegra114 support
Date: Wed, 04 Sep 2013 12:39:59 -0600 [thread overview]
Message-ID: <52277E7F.5050609@wwwdotorg.org> (raw)
In-Reply-To: <1377704922-2824-2-git-send-email-mperttunen@nvidia.com>
On 08/28/2013 09:48 AM, Mikko Perttunen wrote:
> Add Tegra114 TMDS configuration, add new peak_current field and
> use new place for drive current override bit on Tegra114 platform.
> diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c
> static struct of_device_id host1x_of_match[] = {
> + { .compatible = "nvidia,tegra114-host1x", .data = &host1x01_info, },
We should add that value to the host1x DT binding documentation.
> diff --git a/drivers/gpu/host1x/drm/hdmi.c b/drivers/gpu/host1x/drm/hdmi.c
> static const struct tegra_hdmi_audio_config *
> tegra_hdmi_get_audio_config(unsigned int audio_freq, unsigned int pclk)
> {
> @@ -593,8 +673,20 @@ static void tegra_hdmi_setup_tmds(struct tegra_hdmi *hdmi,
> tegra_hdmi_writel(hdmi, tmds->pll1, HDMI_NV_PDISP_SOR_PLL1);
> tegra_hdmi_writel(hdmi, tmds->pe_current, HDMI_NV_PDISP_PE_CURRENT);
>
> - value = tmds->drive_current | DRIVE_CURRENT_FUSE_OVERRIDE;
> - tegra_hdmi_writel(hdmi, value, HDMI_NV_PDISP_SOR_LANE_DRIVE_CURRENT);
> + if (of_device_is_compatible(hdmi->dev->of_node,
> + "nvidia,tegra114-hdmi")) {
We shouldn't do this at run-time. Rather, set tegra_hdmi_of_match[]'s
.data field to a structure that represents the various features of the
HW, and then make this code conditional upon a feature flag in that
structure.
next prev parent reply other threads:[~2013-09-04 18:39 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-28 15:48 [PATCH v2 0/6] HDMI support for Tegra114 Dalmore Mikko Perttunen
2013-08-28 15:48 ` Mikko Perttunen
2013-08-28 15:48 ` [PATCH v2 1/6] host1x: hdmi: Add Tegra114 support Mikko Perttunen
2013-08-28 15:48 ` Mikko Perttunen
[not found] ` <1377704922-2824-2-git-send-email-mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-09-04 18:39 ` Stephen Warren [this message]
2013-09-04 18:39 ` Stephen Warren
2013-09-04 21:55 ` Thierry Reding
2013-08-28 15:48 ` [PATCH v2 2/6] host1x: hdmi: Detect whether display is connected with HDMI or DVI Mikko Perttunen
2013-08-28 15:48 ` Mikko Perttunen
[not found] ` <1377704922-2824-3-git-send-email-mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-09-04 18:40 ` Stephen Warren
2013-09-04 18:40 ` Stephen Warren
[not found] ` <52277EBA.6030105-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-09-04 21:59 ` Thierry Reding
2013-09-04 21:59 ` Thierry Reding
2013-08-28 15:48 ` [PATCH v2 3/6] host1x: hdmi: Enable Vdd earlier for hotplug/DDC Mikko Perttunen
2013-08-28 15:48 ` Mikko Perttunen
[not found] ` <1377704922-2824-4-git-send-email-mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-09-04 18:44 ` Stephen Warren
2013-09-04 18:44 ` Stephen Warren
[not found] ` <52277F90.40109-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-09-04 22:03 ` Mikko Perttunen
2013-09-04 22:03 ` Mikko Perttunen
[not found] ` <5227AE4F.8050603-/1wQRMveznE@public.gmane.org>
2013-09-04 22:24 ` Stephen Warren
2013-09-04 22:24 ` Stephen Warren
2013-08-28 15:48 ` [PATCH v2 4/6] clk: tegra114: Initialize clocks needed for HDMI Mikko Perttunen
2013-08-28 15:48 ` Mikko Perttunen
[not found] ` <1377704922-2824-5-git-send-email-mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-09-04 18:45 ` Stephen Warren
2013-09-04 18:45 ` Stephen Warren
2013-08-28 15:48 ` [PATCH v2 5/6] ARM: tegra: Add host1x, DC and HDMI to Tegra114 device tree Mikko Perttunen
2013-08-28 15:48 ` Mikko Perttunen
[not found] ` <1377704922-2824-6-git-send-email-mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-09-04 18:46 ` Stephen Warren
2013-09-04 18:46 ` Stephen Warren
[not found] ` <1377704922-2824-1-git-send-email-mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-08-28 15:48 ` [PATCH v2 6/6] ARM: tegra: Add HDMI to Tegra114 Dalmore " Mikko Perttunen
2013-08-28 15:48 ` Mikko Perttunen
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=52277E7F.5050609@wwwdotorg.org \
--to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
--cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=tbergstrom-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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.