summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorvenkatajagadish <vjagadish@nvidia.com>2012-11-22 12:27:13 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 00:48:30 -0700
commitb9daf35c8429fedf38b0d0f1850ce032e1986e42 (patch)
tree416acecbbe307fea8e7aae983fc142c977999118 /drivers/crypto
parentfeac83db50aa6698824502f20cb40f8d77d5ae87 (diff)
crypto: tegra-se: Remove key slot index for DRBG
This change removes T114 SW war for DRBG key slot index. Bug 1033121 Change-Id: If44cb707158acc1becea5da9e933fb2eb7e86df4 Signed-off-by: venkatajagadish <vjagadish@nvidia.com> Reviewed-on: http://git-master/r/165628 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/tegra-se.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/crypto/tegra-se.c b/drivers/crypto/tegra-se.c
index 8a02772685b8..1de056187624 100644
--- a/drivers/crypto/tegra-se.c
+++ b/drivers/crypto/tegra-se.c
@@ -521,8 +521,9 @@ static void tegra_se_config_crypto(struct tegra_se_dev *se_dev,
case SE_AES_OP_MODE_RNG_DRBG:
val = SE_CRYPTO_INPUT_SEL(INPUT_RANDOM) |
SE_CRYPTO_XOR_POS(XOR_BYPASS) |
- SE_CRYPTO_CORE_SEL(CORE_ENCRYPT)|
- SE_CRYPTO_KEY_INDEX(slot_num);
+ SE_CRYPTO_CORE_SEL(CORE_ENCRYPT);
+ if ((tegra_get_chipid() == TEGRA_CHIPID_TEGRA11))
+ val = val | SE_CRYPTO_KEY_INDEX(slot_num);
break;
case SE_AES_OP_MODE_ECB:
if (encrypt) {