toradex: apalis-imx6: Fix build failure when CONFIG_VIDEO_IPUV3 is enabled
PATCH 1/1 toradex: apalis-imx6: Fix build failure when CONFIG_VIDEO_IPUV3 is enabled
From: Rafael Beims <[email protected]>
If CONFIG_VIDEO_IPUV3 is enabled without also having CONFIG_IMX_HDMI enabled, the build fails for the Apalis iMX6 board.
--- board/toradex/apalis_imx6/apalis_imx6.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
board/toradex/apalis_imx6/apalis_imx6.c +12 -2
@@ -463,10 +463,12 @@ static iomux_v3_cfg_t const rgb_pads[] = { MX6_PAD_EIM_D31__IPU1_DISP1_DATA20 | MUX_PAD_CTRL(OUTPUT_RGB), }; +#ifdef CONFIG_IMX_HDMI static void do_enable_hdmi (struct display_info_t const *dev) {imx_enable_hdmi_phy (); } +#endif static void enable_lvds (struct display_info_t const *dev) {
@@ -496,7 +498,9 @@ static int detect_default(struct display_info_t const *dev)return 1 ; } -struct display_info_t const displays[] = {{ +struct display_info_t const displays[] = { +#ifdef CONFIG_IMX_HDMI +{ .bus = -1, .addr = 0, .pixfmt = IPU_PIX_FMT_RGB24,
@@ -516,7 +520,9 @@ struct display_info_t const displays[] = {{ .vsync_len = 10, .sync = FB_SYNC_EXT, .vmode = FB_VMODE_NONINTERLACED -} }, { +} }, +#endif +{ .bus = -1, .addr = 0, .di = 1,
@@ -586,7 +592,11 @@ static void setup_display(void)int reg;enable_ipu_clock (); + +#ifdef CONFIG_IMX_HDMI imx_setup_hdmi (); +#endif +/* Turn on LDB0,IPU,IPU DI0 clocks */ reg =__raw_readl (&mxc_ccm->CCGR3); reg |=MXC_CCM_CCGR3_LDB_DI0_MASK ;
Signature · 1 line
2.47.2
Quoted 7 lines · On Fri, Mar 28, 2025 at 11:20:40AM +0100, [email protected] wrote:
From: Rafael Beims <[email protected]>
If
CONFIG_VIDEO_IPUV3is enabled without also havingCONFIG_IMX_HDMIenabled, the build fails for the Apalis iMX6 board.Fixes 592f4aed6db7 ("arm: imx: initial support for apalis imx6")Signed-off-by Rafael Beims <[email protected]>
Francesco
Quoted 10 lines · On Fri, Mar 28, 2025 at 11:20:40AM +0100, [email protected] wrote:
From: Rafael Beims <[email protected]>
If
CONFIG_VIDEO_IPUV3is enabled without also havingCONFIG_IMX_HDMIenabled, the build fails for the Apalis iMX6 board.Fixes 592f4aed6db7 ("arm: imx: initial support for apalis imx6")Signed-off-by Rafael Beims <[email protected]>--- board/toradex/apalis_imx6/apalis_imx6.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
Is there a reason why this requirement isn't enforced at the Kconfig level? In other words is (CONFIG_VIDEO_IPUV3=y && CONFIG_IMX_HDMI=n) an otherwise useful and valid configuration?
Signature · 1 line
Tom
Quoted 13 lines · Tom Rini
Quoted 10 lines · On Fri, Mar 28, 2025 at 11:20:40AM +0100, [email protected] wrote:
From: Rafael Beims <[email protected]>
If
CONFIG_VIDEO_IPUV3is enabled without also havingCONFIG_IMX_HDMIenabled, the build fails for the Apalis iMX6 board.Fixes 592f4aed6db7 ("arm: imx: initial support for apalis imx6")Signed-off-by Rafael Beims <[email protected]>--- board/toradex/apalis_imx6/apalis_imx6.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
Quoted 3 lines
Is there a reason why this requirement isn't enforced at the
Kconfiglevel? In other words is (CONFIG_VIDEO_IPUV3=y&&CONFIG_IMX_HDMI=n) an otherwise useful and valid configuration?
I would say no. You can have the display output over DPI or LVDS, with HDMI non being required at all.
Francesco
Tom Rini
Reviewed-byQuoted 14 lines · Francesco Dolcini
Quoted 13 lines · Tom Rini
Quoted 10 lines · On Fri, Mar 28, 2025 at 11:20:40AM +0100, [email protected] wrote:
From: Rafael Beims <[email protected]>
If
CONFIG_VIDEO_IPUV3is enabled without also havingCONFIG_IMX_HDMIenabled, the build fails for the Apalis iMX6 board.Fixes 592f4aed6db7 ("arm: imx: initial support for apalis imx6")Signed-off-by Rafael Beims <[email protected]>--- board/toradex/apalis_imx6/apalis_imx6.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
Quoted 6 lines
Quoted 3 lines
Is there a reason why this requirement isn't enforced at the
Kconfiglevel? In other words is (CONFIG_VIDEO_IPUV3=y&&CONFIG_IMX_HDMI=n) an otherwise useful and valid configuration?I would say no. You can have the display output over DPI or LVDS, with HDMI non being required at all.
And so yes, it's a useful and valid configuration. OK, thanks.
Signature · 1 line
Tom
Quoted 8 lines · On Fri, Mar 28, 2025 at 9:43 AM <[email protected]> wrote:
From: Rafael Beims <[email protected]>
If
CONFIG_VIDEO_IPUV3is enabled without also havingCONFIG_IMX_HDMIenabled, the build fails for the Apalis iMX6 board.Fixes 592f4aed6db7 ("arm: imx: initial support for apalis imx6")Signed-off-by Rafael Beims <[email protected]>
Applied, thanks.