论坛元老
- 积分
- 5274
- 金钱
- 5274
- 注册时间
- 2019-9-25
- 在线时间
- 433 小时
|
发表于 2022-8-7 12:23:19
|
显示全部楼层
- Date: Fri, 5 Nov 2021 17:43:52 +0800
- Subject: [PATCH] ATK-IMX6ULL: disable lcd
- ---
- arch/arm/imx-common/video.c | 2 +-
- board/freescale/mx6ullevk/mx6ullevk.c | 8 ++++++++
- include/configs/mx6ullevk.h | 6 +++---
- 3 files changed, 12 insertions(+), 4 deletions(-)
- diff --git a/arch/arm/imx-common/video.c b/arch/arm/imx-common/video.c
- index 505f683..6033110 100644
- --- a/arch/arm/imx-common/video.c
- +++ b/arch/arm/imx-common/video.c
- @@ -17,7 +17,7 @@ int board_video_skip(void)
- char const *panel;
-
- /* Select LCD configuration based on current hardware ID */
- - select_display_dev();
- + /* select_display_dev(); */
-
- panel = getenv("panel");
- if (!panel) {
- diff --git a/board/freescale/mx6ullevk/mx6ullevk.c b/board/freescale/mx6ullevk/mx6ullevk.c
- index 251c2ee..24eff87 100644
- --- a/board/freescale/mx6ullevk/mx6ullevk.c
- +++ b/board/freescale/mx6ullevk/mx6ullevk.c
- @@ -927,8 +927,14 @@ struct display_info_t const displays[] = {
- size_t display_count = ARRAY_SIZE(displays);
- #endif
-
- +static iomux_v3_cfg_t const lcd_backlight_pads[] = {
- + MX6_PAD_GPIO1_IO08__GPIO1_IO08 | MUX_PAD_CTRL(NO_PAD_CTRL),
- +};
- +
- int board_early_init_f(void)
- {
- + imx_iomux_v3_setup_multiple_pads(lcd_backlight_pads, ARRAY_SIZE(lcd_backlight_pads));
- + gpio_direction_output(IMX_GPIO_NR(1, 8) , 0);
- setup_iomux_uart();
-
- return 0;
- @@ -1166,6 +1172,8 @@ int board_late_init(void)
-
- set_wdog_reset((struct wdog_regs *)WDOG1_BASE_ADDR);
-
- + select_display_dev();
- +
- return 0;
- }
-
- diff --git a/include/configs/mx6ullevk.h b/include/configs/mx6ullevk.h
- index d44ea37..d52a985 100644
- --- a/include/configs/mx6ullevk.h
- +++ b/include/configs/mx6ullevk.h
- @@ -358,8 +358,8 @@
-
- #define CONFIG_IMX_THERMAL
-
- -#ifndef CONFIG_SPL_BUILD
- -#define CONFIG_VIDEO
- +/*#ifndef CONFIG_SPL_BUILD
- +#define CONFIG_VIDEO*/
- #ifdef CONFIG_VIDEO
- #define CONFIG_CFB_CONSOLE
- #define CONFIG_VIDEO_MXS
- @@ -374,7 +374,7 @@
- #define CONFIG_VIDEO_BMP_RLE8
- #define CONFIG_VIDEO_BMP_LOGO
- #define CONFIG_IMX_VIDEO_SKIP
- -#endif
- +/*#endif*/
- #endif
-
- #define CONFIG_IOMUX_LPSR
- --
- 1.9.1
复制代码
上面是禁用lcd的步骤,你改回去就行了。同时还要打开uboot logo在include/configs/mx6ullevk.h头文件下开启define CONFIG_VIDEO_LOGO。 |
|