gpu: ipu-v3: allow to build with ARCH_LAYERSCAPE
Subsystems (2)
PATCH 1/1 gpu: ipu-v3: allow to build with ARCH_LAYERSCAPE
The new LS1028A DP driver code causes a link failure when DRM_IMX built-in, but platform is ARCH_LAYERSCAPE:
drivers/gpu/drm/imx/ipuv3-crtc.c:51: undefined reference to ipu_prg_enable' drivers/gpu/drm/imx/ipuv3-crtc.c:52: undefined reference to ipu_dc_enable' drivers/gpu/drm/imx/ipuv3-crtc.c:53: undefined reference to ipu_dc_enable_channel' drivers/gpu/drm/imx/ipuv3-crtc.c:54: undefined reference to ipu_di_enable' drivers/gpu/drm/imx/ipuv3-crtc.o: In function `ipu_crtc_mode_set_nofb
Adding a Kconfig dependency allow to build if ARCH_LAYERSCAPE is enable.
--- drivers/gpu/ipu-v3/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/ipu-v3/Kconfig +1 -1
@@ -1,6 +1,6 @@ config IMX_IPUV3_CORE tristate "IPUv3 core support" - depends on SOC_IMX5 || SOC_IMX6Q || ARCH_MULTIPLATFORM || COMPILE_TEST + depends on SOC_IMX5 || SOC_IMX6Q || ARCH_MULTIPLATFORM || COMPILE_TEST || ARCH_LAYERSCAPE depends on DRM || !DRM # if DRM=m, this can't be 'y' select BITREVERSE select GENERIC_ALLOCATOR if DRM
Signature · 6 lines
2.17.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 43 lines
-----Original Message-----
From: Wen He
Sent: 2019年5月8日 17:42
To: [email protected]; [email protected]
Cc: Leo Li <[email protected]>; Wen He <[email protected]>
Subject: [v1] gpu: ipu-v3: allow to build withARCH_LAYERSCAPEThe new LS1028A DP driver code causes a link failure when
DRM_IMXbuilt-in, but platform isARCH_LAYERSCAPE:
drivers/gpu/drm/imx/ipuv3-crtc.c:51: undefined reference toipu_prg_enable' drivers/gpu/drm/imx/ipuv3-crtc.c:52: undefined reference toipu_dc_enable'drivers/gpu/drm/imx/ipuv3-crtc.c:53: undefined reference to `ipu_dc_enable_channel'drivers/gpu/drm/imx/ipuv3-crtc.c:54: undefined reference toipu_di_enable' drivers/gpu/drm/imx/ipuv3-crtc.o: In functionipu_crtc_mode_set_nofbAdding a
Kconfigdependency allow to build ifARCH_LAYERSCAPEis enable.Signed-off-by Wen He <[email protected]>--- drivers/gpu/ipu-v3/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/ipu-v3/Kconfig index renamed from drivers/gpu/ipu-v3/Kconfig +0
-0
fe6f8c5b4445..51ea88c440df100644drivers/gpu/ipu-v3/Kconfig +0
-1@@ -1,6 +1,6 @@ config IMX_IPUV3_CORE tristate "IPUv3 core support" - depends on SOC_IMX5 || SOC_IMX6Q || ARCH_MULTIPLATFORM ||
COMPILE_TESTdrivers/gpu/ipu-v3/Kconfig +1
-0+ depends on SOC_IMX5 || SOC_IMX6Q || ARCH_MULTIPLATFORM ||
COMPILE_TEST
+||ARCH_LAYERSCAPEdrivers/gpu/ipu-v3/Kconfig +0
-1depends on DRM || !DRM # if DRM=m, this can't be 'y' select BITREVERSE select GENERIC_ALLOCATOR if DRM --2.17.1