From: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: jani.nikula@linux.intel.com, suraj.kandpal@intel.com
Subject: [PATCH 3/5] drm/i915/cx0_phy_regs: Add C10 registers bits
Date: Mon, 20 Jan 2025 09:51:19 +0530 [thread overview]
Message-ID: <20250120042122.1029481-4-ankit.k.nautiyal@intel.com> (raw)
In-Reply-To: <20250120042122.1029481-1-ankit.k.nautiyal@intel.com>
Add C10 register bits to be used for computing HDMI PLLs with
algorithm.
v2: Add bspec reference. (Suraj)
Bspec: 74166
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
---
.../gpu/drm/i915/display/intel_cx0_phy_regs.h | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h b/drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h
index 91eb1d423c71..da27cff878a1 100644
--- a/drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h
+++ b/drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h
@@ -218,10 +218,34 @@
/* C10 Vendor Registers */
#define PHY_C10_VDR_PLL(idx) (0xC00 + (idx))
+#define C10_PLL0_SSC_EN REG_BIT8(0)
+#define C10_PLL0_DIVCLK_EN REG_BIT8(1)
+#define C10_PLL0_DIV5CLK_EN REG_BIT8(2)
+#define C10_PLL0_WORDDIV2_EN REG_BIT8(3)
#define C10_PLL0_FRACEN REG_BIT8(4)
+#define C10_PLL0_PMIX_EN REG_BIT8(5)
+#define C10_PLL0_ANA_FREQ_VCO_MASK REG_GENMASK8(7, 6)
+#define C10_PLL1_DIV_MULTIPLIER_MASK REG_GENMASK8(7, 0)
+#define C10_PLL2_MULTIPLIERL_MASK REG_GENMASK8(7, 0)
#define C10_PLL3_MULTIPLIERH_MASK REG_GENMASK8(3, 0)
+#define C10_PLL8_SSC_UP_SPREAD REG_BIT(5)
+#define C10_PLL9_FRACN_DENL_MASK REG_GENMASK8(7, 0)
+#define C10_PLL10_FRACN_DENH_MASK REG_GENMASK8(7, 0)
+#define C10_PLL11_FRACN_QUOT_L_MASK REG_GENMASK8(7, 0)
+#define C10_PLL12_FRACN_QUOT_H_MASK REG_GENMASK8(7, 0)
+#define C10_PLL13_FRACN_REM_L_MASK REG_GENMASK8(7, 0)
+#define C10_PLL14_FRACN_REM_H_MASK REG_GENMASK8(7, 0)
#define C10_PLL15_TXCLKDIV_MASK REG_GENMASK8(2, 0)
#define C10_PLL15_HDMIDIV_MASK REG_GENMASK8(5, 3)
+#define C10_PLL15_PIXELCLKDIV_MASK REG_GENMASK8(7, 6)
+#define C10_PLL16_ANA_CPINT REG_GENMASK8(6, 0)
+#define C10_PLL16_ANA_CPINTGS_L REG_BIT(7)
+#define C10_PLL17_ANA_CPINTGS_H_MASK REG_GENMASK8(5, 0)
+#define C10_PLL17_ANA_CPPROP_L_MASK REG_GENMASK8(7, 6)
+#define C10_PLL18_ANA_CPPROP_H_MASK REG_GENMASK8(4, 0)
+#define C10_PLL18_ANA_CPPROPGS_L_MASK REG_GENMASK8(7, 5)
+#define C10_PLL19_ANA_CPPROPGS_H_MASK REG_GENMASK8(3, 0)
+#define C10_PLL19_ANA_V2I_MASK REG_GENMASK8(5, 4)
#define PHY_C10_VDR_CMN(idx) (0xC20 + (idx))
#define C10_CMN0_REF_RANGE REG_FIELD_PREP(REG_GENMASK(4, 0), 1)
--
2.45.2
next prev parent reply other threads:[~2025-01-20 4:32 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-20 4:21 [PATCH 0/5] Add HDMI PLL Algorithm for SNPS/C10PHY Ankit Nautiyal
2025-01-20 4:21 ` [PATCH 1/5] drm/i915/display: Add support for SNPS PHY HDMI PLL algorithm for DG2 Ankit Nautiyal
2025-01-21 4:37 ` Kandpal, Suraj
2025-01-20 4:21 ` [PATCH 2/5] drm/i915/snps_phy: Use " Ankit Nautiyal
2025-01-20 4:21 ` Ankit Nautiyal [this message]
2025-01-22 11:10 ` [PATCH 3/5] drm/i915/cx0_phy_regs: Add C10 registers bits Jani Nikula
2025-01-22 16:28 ` Ankit Nautiyal
2025-01-20 4:21 ` [PATCH 4/5] drm/i915/intel_snps_hdmi_pll: Compute C10 HDMI PLLs with algorithm Ankit Nautiyal
2025-01-20 4:21 ` [PATCH 5/5] drm/i915/cx0_phy: Use HDMI PLL algorithm for C10 PHY Ankit Nautiyal
2025-01-20 6:23 ` ✓ CI.Patch_applied: success for Add HDMI PLL Algorithm for SNPS/C10PHY (rev4) Patchwork
2025-01-20 6:23 ` ✗ CI.checkpatch: warning " Patchwork
2025-01-20 6:24 ` ✓ CI.KUnit: success " Patchwork
2025-01-20 6:42 ` ✓ CI.Build: " Patchwork
2025-01-20 6:44 ` ✓ CI.Hooks: " Patchwork
2025-01-20 6:46 ` ✗ CI.checksparse: warning " Patchwork
2025-01-20 7:13 ` ✓ Xe.CI.BAT: success " Patchwork
2025-01-20 9:05 ` ✗ Xe.CI.Full: failure " Patchwork
2025-01-20 12:31 ` ✓ CI.Patch_applied: success for Add HDMI PLL Algorithm for SNPS/C10PHY (rev5) Patchwork
2025-01-20 12:31 ` ✗ CI.checkpatch: warning " Patchwork
2025-01-20 12:32 ` ✓ CI.KUnit: success " Patchwork
2025-01-20 12:49 ` ✓ CI.Build: " Patchwork
2025-01-20 12:51 ` ✓ CI.Hooks: " Patchwork
2025-01-20 12:52 ` ✗ CI.checksparse: warning " Patchwork
2025-01-20 13:19 ` ✓ Xe.CI.BAT: success " Patchwork
2025-01-20 14:58 ` ✗ Xe.CI.Full: failure " Patchwork
2025-01-21 22:45 ` [PATCH 0/5] Add HDMI PLL Algorithm for SNPS/C10PHY Almahallawy, Khaled
2025-01-22 9:10 ` Nautiyal, Ankit K
2025-01-22 16:52 ` Jani Nikula
2025-01-23 5:26 ` Nautiyal, Ankit K
2025-01-22 17:01 ` ✓ CI.Patch_applied: success for Add HDMI PLL Algorithm for SNPS/C10PHY (rev6) Patchwork
2025-01-22 17:02 ` ✗ CI.checkpatch: warning " Patchwork
2025-01-22 17:03 ` ✓ CI.KUnit: success " Patchwork
2025-01-22 17:19 ` ✓ CI.Build: " Patchwork
2025-01-22 17:22 ` ✓ CI.Hooks: " Patchwork
2025-01-22 17:23 ` ✗ CI.checksparse: warning " Patchwork
2025-01-22 17:50 ` ✓ Xe.CI.BAT: success " Patchwork
2025-01-23 6:14 ` ✗ Xe.CI.Full: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2024-08-13 3:19 [PATCH 0/5] Add HDMI PLL Algorithm for SNPS/C10PHY Ankit Nautiyal
2024-08-13 3:19 ` [PATCH 3/5] drm/i915/cx0_phy_regs: Add C10 registers bits Ankit Nautiyal
2025-01-10 5:50 ` Kandpal, Suraj
2024-08-06 12:58 [PATCH 0/5] Add HDMI PLL Algorithm for SNPS/C10PHY Ankit Nautiyal
2024-08-06 12:58 ` [PATCH 3/5] drm/i915/cx0_phy_regs: Add C10 registers bits Ankit Nautiyal
2024-06-26 5:00 [PATCH 0/5] Add HDMI PLL Algorithm for SNPS/C10PHY Ankit Nautiyal
2024-06-26 5:00 ` [PATCH 3/5] drm/i915/cx0_phy_regs: Add C10 registers bits Ankit Nautiyal
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=20250120042122.1029481-4-ankit.k.nautiyal@intel.com \
--to=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=suraj.kandpal@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