OSDN Git Service

crypto: hisilicon - enable sec device clock gating
authorWeili Qian <qianweili@huawei.com>
Sat, 7 Aug 2021 06:29:10 +0000 (14:29 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Aug 2021 11:17:01 +0000 (19:17 +0800)
commit3d845d497b23547150fe7f9b3261ead9f4295686
tree82c780627b3755bf727e75f731936232a61a07da
parented5fa39fa8a62fc55c1c4d53b71f3f4f08a90d22
crypto: hisilicon - enable sec device clock gating

Kunpeng930 sec device supports dynamic clock gating. When doing tasks,
the algorithm core is opened, and when idle, the algorithm core is closed.
This patch enables sec 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/sec2/sec_main.c