]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
video: Enable VIDEO_DAMAGE for drivers that need it
authorAlexander Graf <agraf@csgraf.de>
Mon, 21 Aug 2023 13:51:10 +0000 (16:51 +0300)
committerSimon Glass <sjg@chromium.org>
Thu, 1 May 2025 10:33:30 +0000 (04:33 -0600)
Some drivers call video_set_flush_dcache() to indicate that they want to
have the dcache flushed for the frame buffer. These drivers benefit from
our new video damage control, because we can reduce the amount of memory
that gets flushed significantly.

This patch enables video damage control for all device drivers that call
video_set_flush_dcache() to make sure they benefit from it.

Signed-off-by: Alexander Graf <agraf@csgraf.de>
[Alper: Add to VIDEO_TIDSS, imply instead of select]
Co-developed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-omap2/omap3/Kconfig
arch/arm/mach-sunxi/Kconfig
drivers/video/Kconfig
drivers/video/exynos/Kconfig
drivers/video/imx/Kconfig
drivers/video/meson/Kconfig
drivers/video/rockchip/Kconfig
drivers/video/stm32/Kconfig
drivers/video/tegra/Kconfig
drivers/video/tidss/Kconfig

index a175e5ce6edc331d1250124696b83a9a8054a671..b50b8a5f6bdac453323ee378f374f1a3032fbee2 100644 (file)
@@ -95,6 +95,7 @@ config TARGET_OMAP3_LOGIC
        select OMAP3_GPIO_4
        select OMAP3_GPIO_6
        imply CMD_DM
+       imply VIDEO_DAMAGE
 
 config TARGET_TAO3530
        bool "TAO3530"
index fce817c9d40639a5eefd3adcc8a4d2df2bf2eb68..17179593913e80918dcb87bfc37c659e3f6d7975 100644 (file)
@@ -836,6 +836,7 @@ config VIDEO_SUNXI
        depends on !SUNXI_GEN_NCAT2
        select VIDEO
        select DISPLAY
+       imply VIDEO_DAMAGE
        imply VIDEO_DT_SIMPLEFB
        default y
        ---help---
index 4e5a3dcb41df6d493babe30ddb76bb8cc376cb55..80508fb24dfc58d9a46be9d4f0fee219606496be 100644 (file)
@@ -513,6 +513,7 @@ config VIDEO_LCD_ANX9804
 
 config ATMEL_LCD
        bool "Atmel LCD panel support"
+       imply VIDEO_DAMAGE
        depends on ARCH_AT91
 
 config ATMEL_LCD_BGR555
@@ -522,6 +523,7 @@ config ATMEL_LCD_BGR555
 
 config VIDEO_BCM2835
        bool "Display support for BCM2835"
+       imply VIDEO_DAMAGE
        help
          The graphics processor already sets up the display so this driver
          simply checks the resolution and then sets up the frame buffer with
@@ -713,6 +715,7 @@ source "drivers/video/meson/Kconfig"
 
 config VIDEO_MVEBU
        bool "Armada XP LCD controller"
+       imply VIDEO_DAMAGE
        ---help---
        Support for the LCD controller integrated in the Marvell
        Armada XP SoC.
@@ -753,6 +756,7 @@ config NXP_TDA19988
 
 config ATMEL_HLCD
        bool "Enable ATMEL video support using HLCDC"
+       imply VIDEO_DAMAGE
        help
           HLCDC supports video output to an attached LCD panel.
 
@@ -854,6 +858,7 @@ source "drivers/video/imx/Kconfig"
 
 config VIDEO_MXS
        bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
+       imply VIDEO_DAMAGE
        help
          Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
 
@@ -916,6 +921,7 @@ config VIDEO_DW_MIPI_DSI
 
 config VIDEO_SIMPLE
        bool "Simple display driver for preconfigured display"
+       imply VIDEO_DAMAGE
        help
          Enables a simple generic display driver which utilizes the
          simple-framebuffer devicetree bindings.
@@ -934,6 +940,7 @@ config VIDEO_DT_SIMPLEFB
 
 config VIDEO_MCDE_SIMPLE
        bool "Simple driver for ST-Ericsson MCDE with preconfigured display"
+       imply VIDEO_DAMAGE
        help
          Enables a simple display driver for ST-Ericsson MCDE
          (Multichannel Display Engine), which reads the configuration from
index 599d19d5ecc2325f1b8c9f8c4c58bd24cb54f206..a2cf752aac0393e7687f6a1d1084af97eab39be1 100644 (file)
@@ -12,6 +12,7 @@ config EXYNOS_DP
 
 config EXYNOS_FB
        bool "Exynos FIMD support"
+       imply VIDEO_DAMAGE
 
 config EXYNOS_MIPI_DSIM
        bool "Exynos MIPI DSI support"
index 12f11c2eea8c98cc341448923c80919afbceed46..4a1927c66d7daab945e28bf1f7a7fff1e1f64114 100644 (file)
@@ -2,6 +2,7 @@
 config VIDEO_IPUV3
        bool "i.MX IPUv3 Core video support"
        depends on VIDEO && (MX5 || MX6)
+       imply VIDEO_DAMAGE
        help
          This enables framebuffer driver for i.MX processors working
          on the IPUv3(Image Processing Unit) internal graphic processor.
index 3c2d72d019b80fa60d498d6156361556d7a138b2..fcf486ca0a3a1ff58cf53703a7080843c34d2224 100644 (file)
@@ -8,5 +8,6 @@ config VIDEO_MESON
        bool "Enable Amlogic Meson video support"
        depends on VIDEO
        select DISPLAY
+       imply VIDEO_DAMAGE
        help
          Enable Amlogic Meson Video Processing Unit video support.
index 01804dcb1cc8743e738d32540bea6c8539e51ab4..0f4550a29e38b2ab7f5e228894cfb2970cf5cc40 100644 (file)
@@ -11,6 +11,7 @@
 menuconfig VIDEO_ROCKCHIP
        bool "Enable Rockchip Video Support"
        depends on VIDEO
+       imply VIDEO_DAMAGE
        help
          Rockchip SoCs provide video output capabilities for High-Definition
          Multimedia Interface (HDMI), Low-voltage Differential Signalling
index 48066063e4c57d7bd35c0eec8bcb54ee94369aaa..c354c402c288b4c004bd2b5cc74a4d00beef2773 100644 (file)
@@ -8,6 +8,7 @@
 menuconfig VIDEO_STM32
        bool "Enable STM32 video support"
        depends on VIDEO
+       imply VIDEO_DAMAGE
        help
          STM32 supports many video output options including RGB and
          DSI. This option enables these supports which can be used on
index d3b8dbb2826d686c3f312f6a69d793548f53c061..1a328407b1354e9e64d1917656c4afe2ed55a931 100644 (file)
@@ -44,6 +44,7 @@ config TEGRA_BACKLIGHT_PWM
 
 config VIDEO_TEGRA124
        bool "Enable video support on Tegra124"
+       imply VIDEO_DAMAGE
        help
           Tegra124 supports many video output options including eDP and
           HDMI. At present only eDP is supported by U-Boot. This option
index 95086f3a5d6660fb5d07b78f5abe1b8c6b026840..3291b3ceb8d58f6ec2e3661c171c89ae2fee3f7d 100644 (file)
@@ -11,6 +11,7 @@
 menuconfig VIDEO_TIDSS
        bool "Enable TIDSS video support"
        depends on VIDEO
+       imply VIDEO_DAMAGE
        help
          TIDSS supports  video output options LVDS and
          DPI . This option enables these supports which can be used on