From 910b83b7951212c1a22a37ade91844a0530d7ab4 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 24 Apr 2019 15:41:24 +0200 Subject: lib: Add support for opening panfrost devices Signed-off-by: Tomeu Vizoso Acked-by: Petri Latvala --- lib/drmtest.c | 3 +++ lib/drmtest.h | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/drmtest.c b/lib/drmtest.c index ce3804f9..25f20353 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -206,6 +206,7 @@ static const struct module { } modules[] = { { DRIVER_AMDGPU, "amdgpu" }, { DRIVER_INTEL, "i915", modprobe_i915 }, + { DRIVER_PANFROST, "panfrost" }, { DRIVER_V3D, "v3d" }, { DRIVER_VC4, "vc4" }, { DRIVER_VGEM, "vgem" }, @@ -366,6 +367,8 @@ static const char *chipset_to_str(int chipset) return "virtio"; case DRIVER_AMDGPU: return "amdgpu"; + case DRIVER_PANFROST: + return "panfrost"; case DRIVER_ANY: return "any"; default: diff --git a/lib/drmtest.h b/lib/drmtest.h index 71d197f3..6c4c3899 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -44,6 +44,7 @@ #define DRIVER_VIRTIO (1 << 3) #define DRIVER_AMDGPU (1 << 4) #define DRIVER_V3D (1 << 5) +#define DRIVER_PANFROST (1 << 6) /* * Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system * with vgem as well as a supported driver, you can end up with a -- cgit v1.2.3