]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon - enable zip device clock gating
authorWeili Qian <qianweili@huawei.com>
Sat, 7 Aug 2021 06:29:09 +0000 (14:29 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Aug 2021 11:17:01 +0000 (19:17 +0800)
commit9943e3525af8c679376edaf2a3bcb311f79aec5b
tree2218a44045479f8eb944c49ab3eae715faf0d111
parent12625d7946668fa7fec3b4f1e4be734b71a9bb8f
crypto: hisilicon - enable zip device clock gating

Kunpeng930 zip device supports dynamic clock gating. When executing tasks,
the algorithm core is opened, and when idle, the algorithm core is closed.
This patch enables zip dynamic clock gating by writing hardware registers.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/zip/zip_main.c