Commit 49acff10 authored by hanetzer's avatar hanetzer

drm/panfrost: initial commit for adding panfrost driver

Signed-off-by: hanetzer's avatarMarty E. Plummer <hanetzer@startmail.com>
parent eb9a29f9
......@@ -315,6 +315,8 @@ source "drivers/gpu/drm/tve200/Kconfig"
source "drivers/gpu/drm/xen/Kconfig"
source "drivers/gpu/drm/panfrost/Kconfig"
# Keep legacy drivers last
menuconfig DRM_LEGACY
......
......@@ -107,3 +107,4 @@ obj-$(CONFIG_DRM_TINYDRM) += tinydrm/
obj-$(CONFIG_DRM_PL111) += pl111/
obj-$(CONFIG_DRM_TVE200) += tve200/
obj-$(CONFIG_DRM_XEN) += xen/
obj-$(CONFIG_DRM_PANFROST) += panfrost/
config DRM_PANFROST
tristate "Panfrost (DRM support for ARM Mali t760/t860 GPU)"
depends on DRM
depends on ARCH_ROCKCHIP
help
DRM driver for ARM Mali t760/t860 GPUs.
panfrost-y := \
panfrost_drv.o
obj-$(CONFIG_DRM_PANFROST) += panfrost.o
// SPDX-License-Identifier: GPL-2.0
/* Copyright 2018 Panfrost Team */
#include <linux/module.h>
#include <linux/of_platform.h>
static int panfrost_pdev_probe(struct platform_device *pdev)
{
return 0;
}
static int panfrost_pdev_remove(struct platform_device *pdev)
{
return 0;
}
static const struct of_device_id dt_match[] = {
{ .compatible = "arm,mali-t760" },
{}
};
MODULE_DEVICE_TABLE(of, dt_match);
static struct platform_driver panfrost_platform_driver = {
.probe = panfrost_pdev_probe,
.remove = panfrost_pdev_remove,
.driver = {
.name = "panfrost",
.of_match_table = dt_match,
},
};
static int __init panfrost_init(void)
{
int ret;
ret = platform_device_register(&panfrost_platform_driver);
return ret;
}
module_init(panfrost_init);
static void __exit panfrost_exit(void)
{
platform_device_unregister(&panfrost_platform_driver);
}
module_exit(panfrost_exit);
MODULE_AUTHOR("Panfrost Project Developers");
MODULE_DESCRIPTION("Panfrost DRM Driver");
MODULE_LICENSE("GPL v2");
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