Skip to content

Commit 9a0dfe9

Browse files
lumagDanilo Krummrich
authored andcommitted
drm/nouveau: incorporate I2C TV encoder drivers
Chrontel CH7006 and Silicon Image sil164 drivers use drm_encoder_slave interface which is being used only by the nouveau driver. It doesn't make sense to keep this interface inside the DRM subsystem. In preparation to moving this set of helpers to the nouveau driver, move the only two I2C driver that use that interface to the nouveau driver too. Suggested-by: Laurent Pinchart <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 26d6fd8 commit 9a0dfe9

File tree

16 files changed

+43
-40
lines changed

16 files changed

+43
-40
lines changed

arch/arm/configs/multi_v7_defconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,10 +713,10 @@ CONFIG_VIDEO_ADV7604_CEC=y
713713
CONFIG_VIDEO_ML86V7667=m
714714
CONFIG_IMX_IPUV3_CORE=m
715715
CONFIG_DRM=y
716-
# CONFIG_DRM_I2C_CH7006 is not set
717-
# CONFIG_DRM_I2C_SIL164 is not set
718716
CONFIG_DRM_I2C_NXP_TDA998X=m
719717
CONFIG_DRM_NOUVEAU=m
718+
# CONFIG_DRM_NOUVEAU_CH7006 is not set
719+
# CONFIG_DRM_NOUVEAU_SIL164 is not set
720720
CONFIG_DRM_EXYNOS=m
721721
CONFIG_DRM_EXYNOS_FIMD=y
722722
CONFIG_DRM_EXYNOS_MIXER=y

arch/parisc/configs/generic-32bit_defconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ CONFIG_I2C=y
132132
CONFIG_HWMON=m
133133
CONFIG_DRM=m
134134
CONFIG_DRM_DISPLAY_DP_AUX_CEC=y
135-
# CONFIG_DRM_I2C_CH7006 is not set
136-
# CONFIG_DRM_I2C_SIL164 is not set
137135
CONFIG_DRM_RADEON=m
138136
CONFIG_DRM_NOUVEAU=m
139137
# CONFIG_DRM_NOUVEAU_BACKLIGHT is not set
138+
# CONFIG_DRM_NOUVEAU_CH7006 is not set
139+
# CONFIG_DRM_NOUVEAU_SIL164 is not set
140140
CONFIG_DRM_VGEM=m
141141
CONFIG_DRM_UDL=m
142142
CONFIG_DRM_MGAG200=m

arch/parisc/configs/generic-64bit_defconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ CONFIG_MEDIA_SUPPORT=m
193193
CONFIG_AGP=y
194194
CONFIG_AGP_PARISC=y
195195
CONFIG_DRM=y
196-
# CONFIG_DRM_I2C_CH7006 is not set
197-
# CONFIG_DRM_I2C_SIL164 is not set
198196
CONFIG_DRM_RADEON=y
199197
CONFIG_DRM_NOUVEAU=m
200198
# CONFIG_DRM_NOUVEAU_BACKLIGHT is not set
199+
# CONFIG_DRM_NOUVEAU_CH7006 is not set
200+
# CONFIG_DRM_NOUVEAU_SIL164 is not set
201201
CONFIG_DRM_MGAG200=m
202202
CONFIG_FB=y
203203
CONFIG_FB_PM2=m

drivers/gpu/drm/i2c/Kconfig

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,6 @@
22
menu "I2C encoder or helper chips"
33
depends on DRM && DRM_KMS_HELPER && I2C
44

5-
config DRM_I2C_CH7006
6-
tristate "Chrontel ch7006 TV encoder"
7-
default m if DRM_NOUVEAU
8-
help
9-
Support for Chrontel ch7006 and similar TV encoders, found
10-
on some nVidia video cards.
11-
12-
This driver is currently only useful if you're also using
13-
the nouveau driver.
14-
15-
config DRM_I2C_SIL164
16-
tristate "Silicon Image sil164 TMDS transmitter"
17-
default m if DRM_NOUVEAU
18-
help
19-
Support for sil164 and similar single-link (or dual-link
20-
when used in pairs) TMDS transmitters, used in some nVidia
21-
video cards.
22-
235
config DRM_I2C_NXP_TDA998X
246
tristate "NXP Semiconductors TDA998X HDMI encoder"
257
default m if DRM_TILCDC

drivers/gpu/drm/i2c/Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
ch7006-y := ch7006_drv.o ch7006_mode.o
3-
obj-$(CONFIG_DRM_I2C_CH7006) += ch7006.o
4-
5-
sil164-y := sil164_drv.o
6-
obj-$(CONFIG_DRM_I2C_SIL164) += sil164.o
7-
82
tda998x-y := tda998x_drv.o
93
obj-$(CONFIG_DRM_I2C_NXP_TDA998X) += tda998x.o
104
obj-$(CONFIG_DRM_I2C_NXP_TDA9950) += tda9950.o

drivers/gpu/drm/nouveau/Kconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,21 @@ config DRM_NOUVEAU_GSP_DEFAULT
109109
help
110110
Say Y here if you want to use the GSP codepaths by default on
111111
Turing and Ampere GPUs.
112+
113+
config DRM_NOUVEAU_CH7006
114+
tristate "Chrontel ch7006 TV encoder"
115+
depends on DRM_NOUVEAU
116+
default m
117+
help
118+
Support for Chrontel ch7006 and similar TV encoders.
119+
120+
This driver is currently only useful if you're also using
121+
the nouveau driver.
122+
123+
config DRM_NOUVEAU_SIL164
124+
tristate "Silicon Image sil164 TMDS transmitter"
125+
depends on DRM_NOUVEAU
126+
default m
127+
help
128+
Support for sil164 and similar single-link (or dual-link
129+
when used in pairs) TMDS transmitters.

drivers/gpu/drm/nouveau/dispnv04/Kbuild

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ nouveau-y += dispnv04/overlay.o
1010
nouveau-y += dispnv04/tvmodesnv17.o
1111
nouveau-y += dispnv04/tvnv04.o
1212
nouveau-y += dispnv04/tvnv17.o
13+
14+
include $(src)/dispnv04/i2c/Kbuild

drivers/gpu/drm/nouveau/dispnv04/dfp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "hw.h"
3636
#include "nvreg.h"
3737

38-
#include <drm/i2c/sil164.h>
38+
#include <dispnv04/i2c/sil164.h>
3939

4040
#include <subdev/i2c.h>
4141

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ch7006-y := dispnv04/i2c/ch7006_drv.o dispnv04/i2c/ch7006_mode.o
2+
obj-$(CONFIG_DRM_NOUVEAU_CH7006) += ch7006.o
3+
4+
sil164-y := dispnv04/i2c/sil164_drv.o
5+
obj-$(CONFIG_DRM_NOUVEAU_SIL164) += sil164.o

0 commit comments

Comments
 (0)