Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Panfrost
linux
Commits
49acff10
Commit
49acff10
authored
Sep 10, 2018
by
hanetzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/panfrost: initial commit for adding panfrost driver
Signed-off-by:
Marty E. Plummer
<
hanetzer@startmail.com
>
parent
eb9a29f9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
0 deletions
+63
-0
drivers/gpu/drm/Kconfig
drivers/gpu/drm/Kconfig
+2
-0
drivers/gpu/drm/Makefile
drivers/gpu/drm/Makefile
+1
-0
drivers/gpu/drm/panfrost/Kconfig
drivers/gpu/drm/panfrost/Kconfig
+6
-0
drivers/gpu/drm/panfrost/Makefile
drivers/gpu/drm/panfrost/Makefile
+4
-0
drivers/gpu/drm/panfrost/panfrost_drv.c
drivers/gpu/drm/panfrost/panfrost_drv.c
+50
-0
No files found.
drivers/gpu/drm/Kconfig
View file @
49acff10
...
...
@@ -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
...
...
drivers/gpu/drm/Makefile
View file @
49acff10
...
...
@@ -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/
drivers/gpu/drm/panfrost/Kconfig
0 → 100644
View file @
49acff10
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.
drivers/gpu/drm/panfrost/Makefile
0 → 100644
View file @
49acff10
panfrost-y
:=
\
panfrost_drv.o
obj-$(CONFIG_DRM_PANFROST)
+=
panfrost.o
drivers/gpu/drm/panfrost/panfrost_drv.c
0 → 100644
View file @
49acff10
// 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"
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment