]> 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)
commita5154e3f785f14937edab1a056a45e92ddd30989
tree2218a44045479f8eb944c49ab3eae715faf0d111
parentef294e5348cddcfb626f41f8da47dfd638efa873
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