]> Gentwo Git Trees - linux/.git/commit
drm/panthor: Add arch-specific panthor_hw binding
authorKarunika Choo <karunika.choo@arm.com>
Tue, 25 Nov 2025 12:55:41 +0000 (12:55 +0000)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 26 Nov 2025 09:56:18 +0000 (10:56 +0100)
commitb1075ae1a3b56fd0b1275caf51bcc633f665bb19
treedc3bf741e1be8b536d29e568a422faea3c1cfb2e
parentce04ec03a9c2c4f3e60e26f21311b25d5a478208
drm/panthor: Add arch-specific panthor_hw binding

This patch adds the framework for binding to a specific panthor_hw
structure based on the architecture major value parsed from the GPU_ID
register. This is in preparation of enabling architecture-specific
behaviours based on GPU_ID. As such, it also splits the GPU_ID register
read operation into its own helper function.

This framework allows a single panthor_hw structure to be shared across
multiple architectures should there be minimal changes between them via
the arch_min and arch_max field of the panthor_hw_entry structure,
instead of duplicating the structure across multiple architectures.

Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Karunika Choo <karunika.choo@arm.com>
Link: https://patch.msgid.link/20251125125548.3282320-2-karunika.choo@arm.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/gpu/drm/panthor/panthor_device.h
drivers/gpu/drm/panthor/panthor_hw.c
drivers/gpu/drm/panthor/panthor_hw.h