]> git.baikalelectronics.ru Git - kernel.git/commit
drm/komeda: Add d71_enum_resources and d71_cleanup
authorjames qian wang (Arm Technology China) <james.qian.wang@arm.com>
Tue, 22 Jan 2019 09:23:40 +0000 (09:23 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 21 Mar 2019 12:38:40 +0000 (12:38 +0000)
commitd1e5ed2264a8a4776dcdaa12033b4d176ebb0b7e
tree7b195bf4c4304f376d739dd3c7eb344f1d720064
parent805099b2fb57eba3d69bc38aeb447dfe76b0ebb9
drm/komeda: Add d71_enum_resources and d71_cleanup

D71 consists of a number of Register Blocks, every Block controls a
specific HW function, every block has a common block_header to represent
its type and pipeline information.

GCU (Global Control Unit) is the first Block which describe the global
information of D71 HW, Like number of block contained and the number of
pipeline supported.

So the d71_enum_resources parsed GCU and create pipeline according
the GCU configuration, and then iterate and detect the blocks that
indicated by the GCU and block_header.

And this change also added two struct d71_dev/d71_pipeline to extend
komeda_dev/komeda_pipeline to add some d71 only members.

v2:
- Return the specific errno not -1.
- Use DRM_DEBUG as default debug msg printer.

Signed-off-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/display/include/malidp_utils.h
drivers/gpu/drm/arm/display/komeda/Makefile
drivers/gpu/drm/arm/display/komeda/d71/d71_component.c [new file with mode: 0644]
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.h [new file with mode: 0644]
drivers/gpu/drm/arm/display/komeda/d71/d71_regs.h [new file with mode: 0644]
drivers/gpu/drm/arm/display/komeda/komeda_pipeline.c