vdec: support power manager for vdec. [1/1]
authorNanxin Qin <nanxin.qin@amlogic.com>
Thu, 25 Jun 2020 10:19:00 +0000 (18:19 +0800)
committerNanxin Qin <nanxin.qin@amlogic.com>
Wed, 22 Jul 2020 05:48:04 +0000 (22:48 -0700)
commit5166ea72e2787ad2bb37a084ab4fb0616b719728
tree3b167d3ba61ed0bbbc804dbd03b48797d0fd637e
parent9787d42524cfe4bc4e58b7f75acd8bc9c349f3eb
vdec: support power manager for vdec. [1/1]

PD#SWPL-28425

Problem:
SC2 DOS power domain management

Solution:
1. unite interface for vdec power ctrl.
2. support config power ctrl mode from dts.
3. 5 modes can be used: a. legacy b.power-ctrl-api
   c.power-domain d.pd-sec-api e.pd-non-sec-api

Verify:
u212, ac214

Change-Id: I6554fe7abe0afc652e549452cd822ddf3630435b
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
drivers/frame_provider/decoder/utils/Makefile
drivers/frame_provider/decoder/utils/vdec.c
drivers/frame_provider/decoder/utils/vdec_power_ctrl.c [new file with mode: 0644]
drivers/frame_provider/decoder/utils/vdec_power_ctrl.h [new file with mode: 0644]