This reverts commit febc85e083.
PD#SWPL-183570
Revert multi2 api because it is not compatible with some old projects.
Change-Id: I209e83a07af6096234789ff7993ea3f6befa3d45
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
PD#SWPL-181881
Problem:
S6 need to support multi2
Solution:
Add api for multi2
Verify:
Verified on bl201
Change-Id: Ifb6d02d198efacea99c1360ec37d2d5de7b79086
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
PD#SWPL-161936
Problem:
The 'kt_ret' bits in 'KT_REE_CFG' must not be checked
because the 'kt_ret' bits have an invalid value
without performing the keytable configuration.
Solution:
remove the routine checking kt_ret in aml_kt_get_status.
Verify:
SC2
Change-Id: Ifa3b82c3fa620e1cdc8da6c62da075305045acad
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
PD#SWPL-149012
Problem:
KL driver should be able to check
if KL's fuse is okay without M2M or descrambler in REE.
Solution:
add etsi challenge-response function
Verify:
T5D
Change-Id: I8492896086ba3e6e4701ee4511794e803ed6d900
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
PD#SWPL-148195
Problem:
In the case of IV, aml_kt_invalidate does not have a return value,
resulting in an error return value.
Solution:
In the case of IV, aml_kt_invalidate is not performed,
so the return value is always successful.
Verify:
S4D metacas
Change-Id: I4fe59ce4f1d94486dbf3a00e72f611db3bc7b4f4
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
PD#SWPL-147883
Problem:
IV slot does not need cleaning.
Solution:
IV slot is not clean.
Verify:
S1A
Change-Id: Id5f9bf3b95573cacb53de2e85796b10ce96ea7be
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
PD#SWPL-144703
Problem:
S/W vendor ID support only s4d, s5, t5m, s1a.
It needs to determine the chip type.
Solution:
add kl_vid_type in device tree
Verify:
s4d, s5, t5m, s1a
Change-Id: I9abf5545e6847ef9190ef3fc26077bf17b124ce4
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
PD#SWPL-135332
Problem:
Ensure old keyable driver compatibility.
Maintain the old keytable driver for one year.
Solution:
Move old keytable driver to new keytable driver
Verify:
T3 metacas
Change-Id: I40fb4935f6f0f08ca9be4044cfe760f03b6c85c2
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
PD#SWPL-132576
Problem:
There is a conflict of key table/ladder hardware register resources
when accessing the key table/ladder API between different
REE application simultaneously.
Solution:
Modified to protect kt_lock/kl_lock to kt_unlock/kl_unlock with mutex.
Verify:
Pass
Change-Id: Ibe4b6e8009390ddc8d61c000e79f34803423a14a
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
PD#SWPL-131811
Problem:
copy_from_user can not find during build of user mode.
Solution:
Add header for copy_from_user()
Verify:
Build
Change-Id: I9fa35bb1acd45ac276b740c621f708261a0a671c
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
PD#SWPL-129723
Problem:
It is used for M2M/descrambler.
Solution:
It is used only for descrambler.
Verify:
S4D
Change-Id: I94f34095dce7fa16af497bb5c61c52edf1a34f39
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
PD#SWPL-126582
Problem:
In the case of the AES algorithm,
it could not be converted to a new algorithm value.
Solution:
Fix the algorithm conversion code.
Verify:
T5W
Change-Id: I3e3ccfe0754801c4c0d822ba665561e30f2f4ef3
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
PD#SWPL-124965
Problem:
Need key ladder/table driver for kernel5.15
The KT driver needs to be separated from the descrambler.
New APIs are needed for the KT driver.
Solution:
Create a seckey driver.
Verify:
S5 KT/KL with DMA
T3 METACAS with Descramble
T5W
Change-Id: Id058e64f99918b66e79d24647880f999f55ca13a
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>