]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: meson: Drop unnecessary header includes
authorSimon Glass <sjg@chromium.org>
Sun, 27 Oct 2019 15:54:03 +0000 (09:54 -0600)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 7 Jan 2020 10:15:24 +0000 (11:15 +0100)
These files should not be included in meson header files. Drop them and
tidy up the affected C files.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/video/meson/meson_canvas.c
drivers/video/meson/meson_plane.c
drivers/video/meson/meson_vclk.c
drivers/video/meson/meson_venc.c
drivers/video/meson/meson_vpu.c
drivers/video/meson/meson_vpu.h
drivers/video/meson/meson_vpu_init.c
include/video.h

index b71cbfcc0b0a530981a399952e657fbf0b1a7827..eccac2f8f24a4fd0866bdf3c7c1db0789cd88ba0 100644 (file)
@@ -6,6 +6,10 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
+#include <common.h>
+#include <dm.h>
+#include <asm/io.h>
+
 #include "meson_vpu.h"
 
 /* DMC Registers */
index 2bc9327e1e2b06b5da87b9e107703f9ff300ccb8..8edf451f13f2f9793b2f8f054a5f628903f97357 100644 (file)
@@ -6,6 +6,11 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
+#include <common.h>
+#include <dm.h>
+#include <asm/io.h>
+#include <linux/bitfield.h>
+
 #include "meson_vpu.h"
 
 /* OSDx_BLKx_CFG */
index 0f628e920ba3823203b8d08bd760de182c1092f2..01bfa4bcb8d618fd83d7d19d856819e0092d3bd9 100644 (file)
@@ -6,6 +6,8 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
+#include <common.h>
+#include <dm.h>
 #include <edid.h>
 #include "meson_vpu.h"
 #include <linux/iopoll.h>
index 5da4b3f0963aa60a8c5d20a35372e8d11e32fa94..89e859b02a76b335af74763b413b22e2d743d313 100644 (file)
@@ -6,7 +6,11 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
+#include <common.h>
+#include <dm.h>
 #include <edid.h>
+#include <fdtdec.h>
+#include <asm/io.h>
 #include "meson_vpu.h"
 
 enum {
index c3af9b013c625aa389c3ef18597d0716b203a70d..4eb66398d094d6597a3121c9f367582c2694a278 100644 (file)
@@ -6,13 +6,17 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include "meson_vpu.h"
+#include <common.h>
+#include <display.h>
+#include <dm.h>
 #include <efi_loader.h>
-#include <dm/device-internal.h>
-#include <dm/uclass-internal.h>
 #include <fdt_support.h>
 #include <linux/sizes.h>
 #include <asm/arch/mem.h>
+#include <dm/device-internal.h>
+#include <dm/uclass-internal.h>
+
+#include "meson_vpu.h"
 #include "meson_registers.h"
 #include "simplefb_common.h"
 
@@ -27,6 +31,14 @@ static struct meson_framebuffer {
        bool is_cvbs;
 } meson_fb = { 0 };
 
+bool meson_vpu_is_compatible(struct meson_vpu_priv *priv,
+                            enum vpu_compatible family)
+{
+       enum vpu_compatible compat = dev_get_driver_data(priv->dev);
+
+       return compat == family;
+}
+
 static int meson_vpu_setup_mode(struct udevice *dev, struct udevice *disp)
 {
        struct video_uc_platdata *uc_plat = dev_get_uclass_platdata(dev);
index 0d9fddad2e7c433311220ddab2bcb94e17f9a7b8..d9588c3775c8aa9b6f7a18517ca30d6eec52a386 100644 (file)
@@ -9,14 +9,12 @@
 #ifndef __MESON_VPU_H__
 #define __MESON_VPU_H__
 
-#include <common.h>
-#include <dm.h>
 #include <video.h>
-#include <display.h>
-#include <linux/io.h>
-#include <linux/bitfield.h>
 #include "meson_registers.h"
 
+struct display_timing;
+struct udevice;
+
 enum {
        /* Maximum size we support */
        VPU_MAX_WIDTH           = 3840,
@@ -38,13 +36,8 @@ struct meson_vpu_priv {
        void __iomem *dmc_base;
 };
 
-static inline bool meson_vpu_is_compatible(struct meson_vpu_priv *priv,
-                                          enum vpu_compatible family)
-{
-       enum vpu_compatible compat = dev_get_driver_data(priv->dev);
-
-       return compat == family;
-}
+bool meson_vpu_is_compatible(struct meson_vpu_priv *priv,
+                            enum vpu_compatible family);
 
 #define hhi_update_bits(offset, mask, value) \
        writel_bits(mask, value, priv->hhi_base + offset)
index 12f8c4194ad744dcfd3d457f3db9dd0a8b321597..8408c59eaa103c7caf375eceb90d6c276468f45c 100644 (file)
@@ -8,6 +8,10 @@
 
 #define DEBUG
 
+#include <common.h>
+#include <dm.h>
+#include <asm/io.h>
+
 #include "meson_vpu.h"
 
 /* HHI Registers */
index 485071d0723356abe07ab48d31f0738333eea4f6..e7c58e86cb490ea503467d185dd0ab0f6ec3ddeb 100644 (file)
@@ -17,6 +17,8 @@
 
 #include <stdio_dev.h>
 
+struct udevice;
+
 struct video_uc_platdata {
        uint align;
        uint size;