]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: talitos - Add a feature to tag SEC1
authorLEROY Christophe <christophe.leroy@c-s.fr>
Fri, 17 Apr 2015 14:32:05 +0000 (16:32 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Apr 2015 01:14:41 +0000 (09:14 +0800)
commit1f37f18f45aa489041a49f3bbcf4bed0c7b0c9ee
tree294bb6fe792885dda4fa1074d9b46e2d8e629fdc
parent2c5c48008427b6948107b3cc89a517fd11ebf2cc
crypto: talitos - Add a feature to tag SEC1

We add a new feature in the features field, to mark compatible
"fsl,sec1.0"
We also define a helper function called has_ftr_sec1() to help
functions quickly determine if they are running on SEC1 or SEC2+.
When only SEC1 or SEC2 is compiled in, has_ftr_sec1() return
trivial corresponding value. If both are compiled in, feature
field is checked.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c
drivers/crypto/talitos.h