drm/komeda: Add support for 'memory-region' DT node property
authorMihail Atanassov <Mihail.Atanassov@arm.com>
Mon, 5 Aug 2019 09:56:25 +0000 (09:56 +0000)
committerAyan kumar halder <ayan.halder@arm.com>
Tue, 20 Aug 2019 10:22:23 +0000 (11:22 +0100)
commita8c16b7593bd1a4e613164a47c526ca9d1be764b
treeb6cd4a5b441969709afeeba7f0ce2b1daa2221cd
parentea4e537ae149b468963bf500cfb0a99f8df4b3e7
drm/komeda: Add support for 'memory-region' DT node property

The 'memory-region' property of the komeda display driver DT binding
allows the use of a 'reserved-memory' node for buffer allocations. Add
the requisite of_reserved_mem_device_{init,release} calls to actually
make use of the memory if present.

Changes since v1:
 - Move handling inside komeda_parse_dt

Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com>
Signed-off-by: Ayan Kumar Halder <ayan.halder@arm.com>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Link:- https://patchwork.kernel.org/patch/11076413/
drivers/gpu/drm/arm/display/komeda/komeda_dev.c