common/cpt: support new firmware
authorAnkur Dwivedi <adwivedi@marvell.com>
Wed, 14 Aug 2019 09:40:31 +0000 (15:10 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 9 Oct 2019 09:50:12 +0000 (11:50 +0200)
commit131966f876206ae77cd05dabef4040c51aa1e16d
tree7e9dcd8e5ae3166e317975dbe54cca042c388c9b
parent1a60db7f354a52add0c1ea66e55ba7beba1a9716
common/cpt: support new firmware

With the latest firmware, there are few changes for zuc and snow3g.

1. The iv_source is present in bitfield 7 of minor opcode. In the
old firmware this was present in bitfield 6.

2. Algorithm type is a 2 bit field in new firmware. In the old
firmware it was named as cipher type and it was a 1 bit field.

Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com>
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
drivers/common/cpt/cpt_mcode_defines.h
drivers/common/cpt/cpt_ucode.h