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)
commited5fa39fa8a62fc55c1c4d53b71f3f4f08a90d22
tree2218a44045479f8eb944c49ab3eae715faf0d111
parentb6f756726e4dfe75be1883f6a0202dcecdc801ab
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