Commit ccb27896 authored by hanetzer's avatar hanetzer

drm/panfrost: add stub support for mali-t860

Signed-off-by: hanetzer's avatarMarty E. Plummer <hanetzer@startmail.com>
parent 680e35ea
......@@ -9,6 +9,7 @@
enum panfrost_gpu_id {
panfrost_gpu_malit760 = 0,
panfrost_gpu_malit860,
panfrost_gpu_num,
};
......
......@@ -16,6 +16,9 @@ static int panfrost_ioctl_info(struct drm_device *ddev, void *data, struct drm_f
case panfrost_gpu_malit760:
info->gpu_id = PANFROST_INFO_GPU_MALI_T760;
break;
case panfrost_gpu_malit860:
info->gpu_id = PANFROST_INFO_GPU_MALI_T860;
break;
default:
return -ENODEV;
}
......@@ -107,6 +110,7 @@ static int panfrost_pdev_remove(struct platform_device *pdev)
static const struct of_device_id dt_match[] = {
{ .compatible = "arm,mali-t760" },
{ .compatible = "arm,mali-t860" },
{}
};
MODULE_DEVICE_TABLE(of, dt_match);
......
......@@ -78,6 +78,9 @@ static void panfrost_gpu_print_version(struct panfrost_ip *ip)
version = gpu_read(VERSION);
switch (version >> 16) {
case 0x860:
name = "mali-t860";
break;
case 0x750:
name = "mali-t760";
break;
......
......@@ -11,6 +11,7 @@ extern "C" {
#endif
#define PANFROST_INFO_GPU_MALI_T760 0x00
#define PANFROST_INFO_GPU_MALI_T860 0x01
struct drm_panfrost_info {
__u32 gpu_id; /* out */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment