crypto: octeontx2 - load microcode and create engine groups
authorSrujana Challa <schalla@marvell.com>
Fri, 15 Jan 2021 13:52:22 +0000 (19:22 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Jan 2021 03:58:03 +0000 (14:58 +1100)
commit43ac0b824f1cb7c63c5fe98ea2b80ec480412601
tree2081b7bc1caf3a0fa2e963a394993b6afcff966b
parentfe16eceab0463c160a333b7df4edd707f3a24d5c
crypto: octeontx2 - load microcode and create engine groups

CPT includes microcoded GigaCypher symmetric engines(SEs), IPsec
symmetric engines(IEs), and asymmetric engines (AEs).
Each engine receives CPT instructions from the engine groups it has
subscribed to. This patch loads microcode, configures three engine
groups(one for SEs, one for IEs and one for AEs), and configures
all engines.

Signed-off-by: Suheil Chandran <schandran@marvell.com>
Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
Signed-off-by: Srujana Challa <schalla@marvell.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/octeontx2/Makefile
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
drivers/crypto/marvell/octeontx2/otx2_cptpf.h
drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c [new file with mode: 0644]
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.h [new file with mode: 0644]