qseecom: Add CE2 clk init/deinit & enable/disable APIs
Uses information regarding which CE HW is used by HLOS crypto
driver and which CE HW is used by secure app running on secure
domain (TrustZone) to initialize and disable/enable clks as
needed. The information is obtained from the qseecom device
tree.
Qseecom driver will need to enable clks depending on which
crypto HW is being used by secure domain.
- For disk encryption functionality, qseecom will need to enable
the HLOS CE HW clks before issuing a command to TZ to access and
set certain XPU protected registers (PIPE KEY register sets).
These registers belong to the HW used by HLOS crypto driver module,
qcrypto. But qcrypto cannot access them as they are XPU protected.
Hence qseecom needs to enable the clks so that TZ can write to the
PIPE KEY registers (needed for disk encryption functionality).
- On request from qseecom clients, qseecom will need to enable the
clks for the CE HW used by secure domain crypto driver (accessed
by secure app). This functionality is already in place.
Change-Id: Ib3a384be98e61088d3748c594010dafef475e100
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
2 files changed