]> Gentwo Git Trees - linux/.git/commit
drm/panthor: Add panthor_hw and move gpu_info initialization into it
authorKarunika Choo <karunika.choo@arm.com>
Thu, 7 Aug 2025 16:26:27 +0000 (17:26 +0100)
committerSteven Price <steven.price@arm.com>
Fri, 15 Aug 2025 09:50:43 +0000 (10:50 +0100)
commit94332524b5ccf9cfcb3c6184f1b9d6be65c6aad6
tree78c07a13b344d2b81a9e6d0c0165e411ebc406fc
parent5fbc0dbb92d639d10a5386ad0ae87a54680a04be
drm/panthor: Add panthor_hw and move gpu_info initialization into it

This patch introduces panthor_hw and moves the initialization of the
gpu_info struct into panthor_hw.c in preparation of handling future GPU
register and naming changes.

Future GPU support can be added by extending panthor_gpu_info_init()
with the necessary register reads behind GPU architecture version guards
if the change is minor. For more complex changes, the function can be
forked and the appropriate function will need to be called based on the
GPU architecture version.

Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Karunika Choo <karunika.choo@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20250807162633.3666310-2-karunika.choo@arm.com
drivers/gpu/drm/panthor/Makefile
drivers/gpu/drm/panthor/panthor_device.c
drivers/gpu/drm/panthor/panthor_gpu.c
drivers/gpu/drm/panthor/panthor_hw.c [new file with mode: 0644]
drivers/gpu/drm/panthor/panthor_hw.h [new file with mode: 0644]