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)
committerjames qian wang (Arm Technology China) <james.qian.wang@arm.com>
Mon, 12 Aug 2019 11:00:06 +0000 (19:00 +0800)
commit8f1c748b9a7751ee1297b4880788a09f7c802eb4
treedd17d7629b0411f0c49b0e20fe14c58355b14a10
parenta9577f1921255b975da2a47d8f6733b2d6c98193
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>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Signed-off-by: james qian wang (Arm Technology China) <james.qian.wang@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190805095408.21285-1-mihail.atanassov@arm.com
drivers/gpu/drm/arm/display/komeda/komeda_dev.c