drm/imx: imx-tve: depend on COMMON_CLK
Subsystems (3)
PATCH 1/2 drm/imx: imx-tve: depend on COMMON_CLK
Since the TVE provides a clock to the DI, the driver can only be compiled if the common clock framework is enabled. With the COMMON_CLK dependency in place, it will be possible to allow building the other parts of imx-drm under COMPILE_TEST on architectures that do not select the common clock framework.
--- drivers/gpu/drm/imx/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/imx/Kconfig +1 -0
@@ -18,6 +18,7 @@ config DRM_IMX_PARALLEL_DISPLAY config DRM_IMX_TVE tristate "Support for TV and VGA displays" depends on DRM_IMX + depends on COMMON_CLK select REGMAP_MMIO help Choose this to enable the internal Television Encoder (TVe)
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 drm/imx: allow building under COMPILE_TEST
Allow to compile-test imx-drm on other platforms.
--- drivers/gpu/drm/imx/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/imx/Kconfig +1 -1
@@ -4,7 +4,7 @@ config DRM_IMX select VIDEOMODE_HELPERS select DRM_GEM_CMA_HELPER select DRM_KMS_CMA_HELPER - depends on DRM && (ARCH_MXC || ARCH_MULTIPLATFORM) + depends on DRM && (ARCH_MXC || ARCH_MULTIPLATFORM || COMPILE_TEST) depends on IMX_IPUV3_CORE help enable i.MX graphics support
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 2/2] drm/imx: allow building under COMPILE_TEST
Quoted 3 lines · Philipp Zabel
Allow to compile-test imx-drm on other platforms.
Signed-off-by Philipp Zabel <[email protected]>
Yours,
Linus Walleij
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · Philipp Zabel
Since the TVE provides a clock to the DI, the driver can only be compiled if the common clock framework is enabled. With the
COMMON_CLKdependency in place, it will be possible to allow building the other parts of imx-drm underCOMPILE_TESTon architectures that do not select the common clock framework.Signed-off-by Philipp Zabel <[email protected]>
Since the clock framework has stubs I bet it can be *compiled* without COMMON_CLK. But it will certainly not work so if you reword the commit:
Yours,
Linus Walleij
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Linus,
Quoted 8 lines · Linus Walleij
Quoted 6 lines · Philipp Zabel
Since the TVE provides a clock to the DI, the driver can only be compiled if the common clock framework is enabled. With the
COMMON_CLKdependency in place, it will be possible to allow building the other parts of imx-drm underCOMPILE_TESTon architectures that do not select the common clock framework.
Quoted 5 lines
Quoted 1 line
Signed-off-by Philipp Zabel <[email protected]>Since the clock framework has stubs I bet it can be *compiled* without
COMMON_CLK. But it will certainly not work so if you reword the commit:Reviewed-by Linus Walleij <[email protected]>
thank you for the review. It indeed does not compile because struct imx_tve embeds a struct clk_hw, which is defined in linux/clk-provider.h only if COMMON_CLK is enabled.
regards
Philipp
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Linus Walleij
Reviewed-byQuoted 11 lines · Philipp Zabel
Quoted 10 lines · Linus Walleij
Quoted 7 lines · Philipp Zabel
Since the TVE provides a clock to the DI, the driver can only be compiled if the common clock framework is enabled. With the
COMMON_CLKdependency in place, it will be possible to allow building the other parts of imx-drm underCOMPILE_TESTon architectures that do not select the common clock framework.Signed-off-by Philipp Zabel <[email protected]>
Quoted 7 lines
Quoted 3 lines
Since the clock framework has stubs I bet it can be *compiled* without
COMMON_CLK. But it will certainly not work so if you reword the commit:Reviewed-by Linus Walleij <[email protected]>thank you for the review. It indeed does not compile because struct
imx_tveembeds a structclk_hw, which is defined inlinux/clk-provider.honly ifCOMMON_CLKis enabled.
Oh that one, I see it is a clock driver.
Sorry for my ignorance.
Yours,
Linus Walleij
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel