gpu: host1x: Add context device management code
authorMikko Perttunen <mperttunen@nvidia.com>
Mon, 27 Jun 2022 14:19:48 +0000 (17:19 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 8 Jul 2022 14:27:52 +0000 (16:27 +0200)
commit8aa5bcb61612060429223d1fbb7a1c30a579fc1f
tree2e09643084d8c033217ebc5c397a35ea450aefd7
parenta72d4b182f4e092573035fe6fa9402a14111fd64
gpu: host1x: Add context device management code

Add code to register context devices from device tree, allocate them
out and manage their refcounts.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/Makefile
drivers/gpu/host1x/context.c [new file with mode: 0644]
drivers/gpu/host1x/context.h [new file with mode: 0644]
drivers/gpu/host1x/dev.c
drivers/gpu/host1x/dev.h
include/linux/host1x.h