drm/i915/bxt: Bring MIPI out of reset (v2)
Subsystems (2)
PATCH 1/1 drm/i915/bxt: Bring MIPI out of reset (v2)
and power up the DSI regulator when initializing a MIPI display.
v2: rebase on current drm-intel-nightly
--- drivers/gpu/drm/i915/i915_reg.h | 8 ++++++++ drivers/gpu/drm/i915/intel_dsi.c | 15 +++++++++++++++ 2 files changed, 23 insertions(+)
drivers/gpu/drm/i915/i915_reg.h +8 -0
@@ -1275,11 +1275,19 @@ enum skl_disp_power_wells {#define CHV_TX_DW14 (ch, lane) _TXLANE(ch, lane, 0xb8)#define DPIO_UPAR_SHIFT 30 +/* BXT DSI Regulator registers */ +#define BXT_DSI_CFG _MMIO(0x160020) +#define STRAP_SELECT (1 << 0) + +#define BXT_DSI_TXCNTRL _MMIO(0x160054) +#define HS_IO_CONTROL_SELECT 0x0 +/* BXT PHY registers */ #define _BXT_PHY (phy, a, b) _MMIO_PIPE((phy), (a), (b))#define BXT_P_CR_GT_DISP_PWRON _MMIO(0x138090)#define GT_DISPLAY_POWER_ON (phy) (1 << (phy)) +#define MIPIO_RST_CTRL (1 << 2)#define _BXT_PHY_CTL_DDI_A 0x64C00#define _BXT_PHY_CTL_DDI_B 0x64C10
drivers/gpu/drm/i915/intel_dsi.c +15 -0
@@ -569,6 +569,21 @@ static void intel_dsi_pre_enable(struct intel_encoder *encoder)I915_WRITE (DSPCLK_GATE_D , val); } +if (IS_BROXTON (dev)) { +u32 val; +/* +* Bring the MIPI IO out of reset and power up +* the DSI regulator. +*/ + val =I915_READ (BXT_P_CR_GT_DISP_PWRON ); + val |=MIPIO_RST_CTRL ; +I915_WRITE (BXT_P_CR_GT_DISP_PWRON , val); + +I915_WRITE (BXT_DSI_CFG ,STRAP_SELECT ); +I915_WRITE (BXT_DSI_TXCNTRL ,HS_IO_CONTROL_SELECT ); + } + +/* put device in ready state */ intel_dsi_device_ready (encoder);
Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Ro.CI.BAT: failure for drm/i915/bxt: Bring MIPI out of reset (rev2)
== Series Details ==
== Series Details ==
Series: drm/i915/bxt: Bring MIPI out of reset (rev2)
URL : https://patchwork.freedesktop.org/series/10682/
State : failure
== Summary ==
Series 10682v2 drm/i915/bxt: Bring MIPI out of reset
http://patchwork.freedesktop.org/api/1.0/series/10682/revisions/2/mbox
Test kms_cursor_legacy:
Subgroup basic-cursor-vs-flip-varying-size:
pass -> FAIL (ro-ilk1-i5-650)
Subgroup basic-flip-vs-cursor-varying-size:
fail -> PASS (ro-bdw-i5-5250u)
Test kms_flip:
Subgroup basic-flip-vs-wf_vblank:
pass -> FAIL (ro-byt-n2820)fi-kbl-qkkr total:244 pass:185 dwarn:29 dfail:0 fail:3 skip:27 ro-bdw-i5-5250u total:240 pass:219 dwarn:4 dfail:0 fail:1 skip:16 ro-bdw-i7-5557U total:240 pass:224 dwarn:0 dfail:0 fail:0 skip:16 ro-bdw-i7-5600u total:240 pass:207 dwarn:0 dfail:0 fail:1 skip:32 ro-bsw-n3050 total:240 pass:194 dwarn:0 dfail:0 fail:4 skip:42 ro-byt-n2820 total:240 pass:196 dwarn:0 dfail:0 fail:4 skip:40 ro-hsw-i3-4010u total:240 pass:214 dwarn:0 dfail:0 fail:0 skip:26 ro-hsw-i7-4770r total:240 pass:214 dwarn:0 dfail:0 fail:0 skip:26 ro-ilk-i7-620lm total:240 pass:173 dwarn:1 dfail:0 fail:1 skip:65 ro-ilk1-i5-650 total:235 pass:173 dwarn:0 dfail:0 fail:2 skip:60 ro-ivb-i7-3770 total:240 pass:205 dwarn:0 dfail:0 fail:0 skip:35 ro-ivb2-i7-3770 total:240 pass:209 dwarn:0 dfail:0 fail:0 skip:31 ro-skl3-i5-6260u total:240 pass:223 dwarn:0 dfail:0 fail:3 skip:14 ro-snb-i7-2620M total:240 pass:198 dwarn:0 dfail:0 fail:1 skip:41
Results at /archive/results/CI_IGT_test/RO_Patchwork_1739/
b834992 drm-intel-nightly: 2016y-08m-05d-20h-40m-44s UTC integration manifest 575f9cb drm/i915/bxt: Bring MIPI out of reset (v2)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx