Files
linux/drivers/gpu/drm/bridge/imx/Kconfig
Masahiro Yamada a272cadbd8 drm/bridge: imx: fix mixed module-builtin object
With CONFIG_DRM_IMX8QM_LDB=m and CONFIG_DRM_IMX8QXP_LDB=y (or vice
versa), imx-ldb-helper.o is linked to a module and also to vmlinux
even though the expected CFLAGS are different between builtins and
modules.

This is the same situation as fixed by commit 637a642f5c ("zstd:
Fixing mixed module-builtin objects").

Split imx-ldb-helper.c into a separate module.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230605120021.1774711-1-masahiroy@kernel.org
2023-06-05 15:59:00 +02:00

53 lines
1.4 KiB
Plaintext

if ARCH_MXC || COMPILE_TEST
config DRM_IMX_LDB_HELPER
tristate
config DRM_IMX8QM_LDB
tristate "Freescale i.MX8QM LVDS display bridge"
depends on OF
depends on COMMON_CLK
select DRM_IMX_LDB_HELPER
select DRM_KMS_HELPER
help
Choose this to enable the internal LVDS Display Bridge(LDB) found in
Freescale i.MX8qm processor. Official name of LDB is pixel mapper.
config DRM_IMX8QXP_LDB
tristate "Freescale i.MX8QXP LVDS display bridge"
depends on OF
depends on COMMON_CLK
select DRM_IMX_LDB_HELPER
select DRM_KMS_HELPER
help
Choose this to enable the internal LVDS Display Bridge(LDB) found in
Freescale i.MX8qxp processor. Official name of LDB is pixel mapper.
config DRM_IMX8QXP_PIXEL_COMBINER
tristate "Freescale i.MX8QM/QXP pixel combiner"
depends on OF
depends on COMMON_CLK
select DRM_KMS_HELPER
help
Choose this to enable pixel combiner found in
Freescale i.MX8qm/qxp processors.
config DRM_IMX8QXP_PIXEL_LINK
tristate "Freescale i.MX8QM/QXP display pixel link"
depends on OF
depends on IMX_SCU
select DRM_KMS_HELPER
help
Choose this to enable display pixel link found in
Freescale i.MX8qm/qxp processors.
config DRM_IMX8QXP_PIXEL_LINK_TO_DPI
tristate "Freescale i.MX8QXP pixel link to display pixel interface"
depends on OF
select DRM_KMS_HELPER
help
Choose this to enable pixel link to display pixel interface(PXL2DPI)
found in Freescale i.MX8qxp processor.
endif # ARCH_MXC || COMPILE_TEST