Unverified Commit 4babef07 authored by Sarah Walker's avatar Sarah Walker Committed by Maxime Ripard
Browse files

drm/imagination: Add skeleton PowerVR driver



This adds the basic skeleton of the driver. The driver registers
itself with DRM on probe. Ioctl handlers are currently implemented
as stubs.

Changes since v8:
- Corrected license identifiers

Changes since v5:
- Update compatible string & description to match marketing name
- Checkpatch fixes in to/from_pvr_device/file macros

Changes since v3:
- Clarify supported GPU generations in driver description
- Use drm_dev_unplug() when removing device
- Change from_* and to_* functions to macros
- Fix IS_PTR/PTR_ERR confusion in pvr_probe()
- Remove err_out labels in favour of direct returning
- Remove specific am62 compatible match string
- Drop MODULE_FIRMWARE()

Co-developed-by: default avatarFrank Binns <frank.binns@imgtec.com>
Signed-off-by: default avatarFrank Binns <frank.binns@imgtec.com>
Co-developed-by: default avatarMatt Coster <matt.coster@imgtec.com>
Signed-off-by: default avatarMatt Coster <matt.coster@imgtec.com>
Signed-off-by: default avatarSarah Walker <sarah.walker@imgtec.com>
Signed-off-by: default avatarDonald Robson <donald.robson@imgtec.com>
Reviewed-by: default avatarMaxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/fed8a77e29620a61aed2684f802339759082cf1b.1700668843.git.donald.robson@imgtec.com


Signed-off-by: default avatarMaxime Ripard <mripard@kernel.org>
parent 1088d89e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10398,6 +10398,7 @@ M: Donald Robson <donald.robson@imgtec.com>
M:	Matt Coster <matt.coster@imgtec.com>
S:	Supported
F:	Documentation/devicetree/bindings/gpu/img,powervr.yaml
F:	drivers/gpu/drm/imagination/
F:	include/uapi/drm/pvr_drm.h
IMON SOUNDGRAPH USB IR RECEIVER
+2 −0
Original line number Diff line number Diff line
@@ -394,6 +394,8 @@ source "drivers/gpu/drm/solomon/Kconfig"

source "drivers/gpu/drm/sprd/Kconfig"

source "drivers/gpu/drm/imagination/Kconfig"

config DRM_HYPERV
	tristate "DRM Support for Hyper-V synthetic video device"
	depends on DRM && PCI && MMU && HYPERV
+1 −0
Original line number Diff line number Diff line
@@ -199,3 +199,4 @@ obj-$(CONFIG_DRM_HYPERV) += hyperv/
obj-y			+= solomon/
obj-$(CONFIG_DRM_SPRD) += sprd/
obj-$(CONFIG_DRM_LOONGSON) += loongson/
obj-$(CONFIG_DRM_POWERVR) += imagination/
+15 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only OR MIT
# Copyright (c) 2023 Imagination Technologies Ltd.

config DRM_POWERVR
	tristate "Imagination Technologies PowerVR (Series 6 and later) & IMG Graphics"
	depends on ARM64
	depends on DRM
	select DRM_GEM_SHMEM_HELPER
	select DRM_SCHED
	select FW_LOADER
	help
	  Choose this option if you have a system that has an Imagination
	  Technologies PowerVR (Series 6 or later) or IMG GPU.

	  If "M" is selected, the module will be called powervr.
+9 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only OR MIT
# Copyright (c) 2023 Imagination Technologies Ltd.

subdir-ccflags-y := -I$(srctree)/$(src)

powervr-y := \
	pvr_drv.o \

obj-$(CONFIG_DRM_POWERVR) += powervr.o
Loading