]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Add specific register offset macros for JS and MMU AS
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Fri, 29 Jul 2022 14:46:09 +0000 (15:46 +0100)
committerSteven Price <steven.price@arm.com>
Mon, 8 Aug 2022 11:39:19 +0000 (12:39 +0100)
commitecbe886853bf97a3a78ea83a2556435762fce101
treef7468746ae84267d5a065b728c9ca7ab344d4044
parent9450a53ff48b727f389187ad4a6b15c6f47c15f2
drm/panfrost: Add specific register offset macros for JS and MMU AS

Each Panfrost job has its own job slot and MMU address space set of
registers, which are selected with a job-specific index.

Turn the shift and stride used for selection of the right register set base
into a define rather than using magic numbers.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220729144610.2105223-2-adrian.larumbe@collabora.com
drivers/gpu/drm/panfrost/panfrost_regs.h