summaryrefslogtreecommitdiff
path: root/drivers/video/meson/meson_vpu.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-01-08 15:23:37 -0500
committerTom Rini <trini@konsulko.com>2020-01-08 15:23:37 -0500
commit9af51fb3a505f895d64bd1f8a5967bfaa510add4 (patch)
treef4ae47c5645e9478bde7b3b57f165a1b622a0073 /drivers/video/meson/meson_vpu.c
parent3e99c183739afe698df8a4ba813940c94379095b (diff)
parent262d34363373c10a00279036c1561283c30495c2 (diff)
downloadu-boot-9af51fb3a505f895d64bd1f8a5967bfaa510add4.tar.gz
Merge tag 'u-boot-amlogic-20200108' of https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic
- Khadas VIM3L based on Amlogic S905D3 support - Various fixups for amlogic boards - Unnecessary header includes drop into video/meson
Diffstat (limited to 'drivers/video/meson/meson_vpu.c')
-rw-r--r--drivers/video/meson/meson_vpu.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c
index c3af9b013c..4eb66398d0 100644
--- a/drivers/video/meson/meson_vpu.c
+++ b/drivers/video/meson/meson_vpu.c
@@ -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);