]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: advantech: dms-ba16: Add the configuration options for display initialization
authorYung-Ching LIN <yungching0725@gmail.com>
Tue, 28 Mar 2017 17:51:22 +0000 (01:51 +0800)
committerStefano Babic <sbabic@denx.de>
Wed, 12 Apr 2017 16:04:33 +0000 (18:04 +0200)
Add the configuration options for display initialization in case we need to
do the display initialization in kernel to support different timing settings

Signed-off-by: Ken Lin <yungching0725@gmail.com>
Acked-by: Akshay Bhat <akshay.bhat@timesys.com>
board/advantech/dms-ba16/dms-ba16.c
include/configs/advantech_dms-ba16.h

index 20750fb0ced38be1d85d05b31598ec12f8e7fb8a..a67752f1ca2de58bce924fd4ba6198f5933c4714 100644 (file)
@@ -539,6 +539,8 @@ int board_late_init(void)
 #ifdef CONFIG_CMD_BMODE
        add_board_boot_modes(board_boot_modes);
 #endif
+
+#if defined(CONFIG_VIDEO_IPUV3)
        /*
         * We need at least 200ms between power on and backlight on
         * as per specifications from CHI MEI
@@ -555,6 +557,7 @@ int board_late_init(void)
        gpio_direction_output(LVDS_BACKLIGHT_GP, 1);
 
        pwm_enable(0);
+#endif
 
 #ifdef CONFIG_CMD_SATA
        setup_ba16_sata();
index 14e9c06fac6323c8564e5a2a5af51e1cfc7111c1..53a45b21a4bddbd40edbe4d1c46a32354ff5707b 100644 (file)
 #define CONFIG_SYS_FSL_USDHC_NUM        3
 
 /* Framebuffer */
+#ifdef CONFIG_VIDEO
 #define CONFIG_VIDEO_IPUV3
 #define CONFIG_VIDEO_BMP_RLE8
 #define CONFIG_SPLASH_SCREEN
 #define CONFIG_IPUV3_CLK                260000000
 #define CONFIG_IMX_HDMI
 #define CONFIG_IMX_VIDEO_SKIP
+#endif
 
 #define CONFIG_PWM_IMX
 #define CONFIG_IMX6_PWM_PER_CLK         66000000