mirror of
https://github.com/torvalds/linux.git
synced 2026-04-23 00:55:48 -04:00
Several RISC-V boards feature Imagination GPUs that are compatible with the PowerVR driver. An example is the IMG BXM-4-64 GPU on the Lichee Pi 4A board. This commit adjusts the driver's Kconfig dependencies to allow the PowerVR driver to be compiled on the RISC-V architecture. By enabling compilation on RISC-V, we expand support for these GPUs, providing graphics acceleration capabilities and enhancing hardware compatibility on RISC-V platforms. The RISC-V support is restricted to 64-bit systems (RISCV && 64BIT) as the driver currently has an implicit dependency on a 64-bit platform. Add a dependency on MMU to fix a build warning on RISC-V configurations without an MMU. Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Matt Coster <matt.coster@imgtec.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> Link: https://lore.kernel.org/r/20250822-apr_14_for_sending-v13-4-af656f7cc6c3@samsung.com Signed-off-by: Matt Coster <matt.coster@imgtec.com>
20 lines
572 B
Plaintext
20 lines
572 B
Plaintext
# 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 || RISCV && 64BIT)
|
|
depends on DRM
|
|
depends on MMU
|
|
depends on PM
|
|
select DRM_EXEC
|
|
select DRM_GEM_SHMEM_HELPER
|
|
select DRM_SCHED
|
|
select DRM_GPUVM
|
|
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.
|