Skip to content

Commit c9b685d

Browse files
committed
Merge tag 'drm-next-20230529' of git://git.kernel.org/pub/scm/linux/kernel/git/pinchartl/linux into drm-next
Renesas DRM/KMS drivers: - Group drivers in renesas subdirectory to prepare for new platform - Drop deprecated R-Car H3 ES1.x support Signed-off-by: Dave Airlie <[email protected]> From: Laurent Pinchart <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 2e14928 + 11696c5 commit c9b685d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+15
-93
lines changed

MAINTAINERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6981,8 +6981,7 @@ F: Documentation/devicetree/bindings/display/bridge/renesas,dsi-csi2-tx.yaml
69816981
F: Documentation/devicetree/bindings/display/bridge/renesas,dw-hdmi.yaml
69826982
F: Documentation/devicetree/bindings/display/bridge/renesas,lvds.yaml
69836983
F: Documentation/devicetree/bindings/display/renesas,du.yaml
6984-
F: drivers/gpu/drm/rcar-du/
6985-
F: drivers/gpu/drm/shmobile/
6984+
F: drivers/gpu/drm/renesas/
69866985
F: include/linux/platform_data/shmob_drm.h
69876986

69886987
DRM DRIVERS FOR ROCKCHIP

drivers/gpu/drm/Kconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,7 @@ source "drivers/gpu/drm/armada/Kconfig"
289289

290290
source "drivers/gpu/drm/atmel-hlcdc/Kconfig"
291291

292-
source "drivers/gpu/drm/rcar-du/Kconfig"
293-
294-
source "drivers/gpu/drm/shmobile/Kconfig"
292+
source "drivers/gpu/drm/renesas/Kconfig"
295293

296294
source "drivers/gpu/drm/sun4i/Kconfig"
297295

drivers/gpu/drm/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ obj-$(CONFIG_DRM_UDL) += udl/
156156
obj-$(CONFIG_DRM_AST) += ast/
157157
obj-$(CONFIG_DRM_ARMADA) += armada/
158158
obj-$(CONFIG_DRM_ATMEL_HLCDC) += atmel-hlcdc/
159-
obj-y += rcar-du/
160-
obj-$(CONFIG_DRM_SHMOBILE) +=shmobile/
159+
obj-y += renesas/
161160
obj-y += omapdrm/
162161
obj-$(CONFIG_DRM_SUN4I) += sun4i/
163162
obj-y += tilcdc/

drivers/gpu/drm/renesas/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
3+
source "drivers/gpu/drm/renesas/rcar-du/Kconfig"
4+
source "drivers/gpu/drm/renesas/shmobile/Kconfig"

drivers/gpu/drm/renesas/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
obj-y += rcar-du/
4+
obj-$(CONFIG_DRM_SHMOBILE) += shmobile/

drivers/gpu/drm/rcar-du/rcar_du_crtc.c renamed to drivers/gpu/drm/renesas/rcar-du/rcar_du_crtc.c

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -223,20 +223,6 @@ static void rcar_du_crtc_set_display_timing(struct rcar_du_crtc *rcrtc)
223223
* DU channels that have a display PLL can't use the internal
224224
* system clock, and have no internal clock divider.
225225
*/
226-
227-
/*
228-
* The H3 ES1.x exhibits dot clock duty cycle stability issues.
229-
* We can work around them by configuring the DPLL to twice the
230-
* desired frequency, coupled with a /2 post-divider. Restrict
231-
* the workaround to H3 ES1.x as ES2.0 and all other SoCs have
232-
* no post-divider when a display PLL is present (as shown by
233-
* the workaround breaking HDMI output on M3-W during testing).
234-
*/
235-
if (rcdu->info->quirks & RCAR_DU_QUIRK_H3_ES1_PCLK_STABILITY) {
236-
target *= 2;
237-
div = 1;
238-
}
239-
240226
extclk = clk_get_rate(rcrtc->extclock);
241227
rcar_du_dpll_divider(rcrtc, &dpll, extclk, target);
242228

@@ -245,30 +231,13 @@ static void rcar_du_crtc_set_display_timing(struct rcar_du_crtc *rcrtc)
245231
| DPLLCR_N(dpll.n) | DPLLCR_M(dpll.m)
246232
| DPLLCR_STBY;
247233

248-
if (rcrtc->index == 1) {
234+
if (rcrtc->index == 1)
249235
dpllcr |= DPLLCR_PLCS1
250236
| DPLLCR_INCS_DOTCLKIN1;
251-
} else {
252-
dpllcr |= DPLLCR_PLCS0_PLL
237+
else
238+
dpllcr |= DPLLCR_PLCS0
253239
| DPLLCR_INCS_DOTCLKIN0;
254240

255-
/*
256-
* On ES2.x we have a single mux controlled via bit 21,
257-
* which selects between DCLKIN source (bit 21 = 0) and
258-
* a PLL source (bit 21 = 1), where the PLL is always
259-
* PLL1.
260-
*
261-
* On ES1.x we have an additional mux, controlled
262-
* via bit 20, for choosing between PLL0 (bit 20 = 0)
263-
* and PLL1 (bit 20 = 1). We always want to use PLL1,
264-
* so on ES1.x, in addition to setting bit 21, we need
265-
* to set the bit 20.
266-
*/
267-
268-
if (rcdu->info->quirks & RCAR_DU_QUIRK_H3_ES1_PLL)
269-
dpllcr |= DPLLCR_PLCS0_H3ES1X_PLL1;
270-
}
271-
272241
rcar_du_group_write(rcrtc->group, DPLLCR, dpllcr);
273242

274243
escr = ESCR_DCLKSEL_DCLKIN | div;

0 commit comments

Comments
 (0)