Skip to content

Commit 485da78

Browse files
jmnlcruzAnas Nashif
authored andcommitted
ataes132a: Adds a driver to support ATAES132A device
Adds a driver for Atmel Crypto Authorization solution ATAES132A crypto device. The driver supports the following functionality. - AES CCM encryption, decryption and authentication - AES ECB block operation. The driver requires an I2C device to access crypto device registers. Jira: ZEP-1387 Change-Id: I60aa8f3b069b703d4f83d866d28391625bb9ac13 Signed-off-by: Juan Manuel Cruz Alcaraz <[email protected]>
1 parent bab3aaf commit 485da78

File tree

5 files changed

+1361
-14
lines changed

5 files changed

+1361
-14
lines changed

drivers/crypto/Kconfig

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
# Kconfig - Crypto configuration options
22
#
3+
# Copyright (c) 2017 Intel Corporation
34
#
4-
# Copyright (c) 2016 Intel Corporation
5-
#
6-
# Licensed under the Apache License, Version 2.0 (the "License");
7-
# you may not use this file except in compliance with the License.
8-
# You may obtain a copy of the License at
9-
#
10-
# http://www.apache.org/licenses/LICENSE-2.0
11-
#
12-
# Unless required by applicable law or agreed to in writing, software
13-
# distributed under the License is distributed on an "AS IS" BASIS,
14-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
# See the License for the specific language governing permissions and
16-
# limitations under the License.
5+
# SPDX-License-Identifier: Apache-2.0
176
#
187

8+
199
#
2010
# CRYPTO options
2111
#
@@ -58,4 +48,20 @@ config CRYPTO_0_NAME
5848
help
5949
Device name for TinyCrypt Pseudo device.
6050

51+
menuconfig ATAES132A
52+
bool "Atmel ATAES132A 32k AES Serial EEPROM support"
53+
depends on I2C && CRYPTO
54+
default n
55+
help
56+
Enable Atmel ATAES132A 32k AES Serial EEPROM support.
57+
58+
config CRYPTO_INIT_PRIORITY
59+
int
60+
depends on CRYPTO
61+
prompt "Sensor init priority"
62+
default 90
63+
help
64+
Crypto devices initialization priority.
65+
66+
source "drivers/crypto/Kconfig.ataes132a"
6167
endif # CRYPTO

drivers/crypto/Kconfig.ataes132a

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Kconfig - Atmel ATAES132A configuration options
2+
3+
#
4+
# Copyright (c) 2017 Intel Corporation
5+
#
6+
# SPDX-License-Identifier: Apache-2.0
7+
#
8+
9+
config ATAES132A_DRV_NAME
10+
string "Driver's name"
11+
depends on ATAES132A
12+
default "ataes132a"
13+
help
14+
Name for the ATAES132A driver wich will be used for binding.
15+
16+
config ATAES132A_I2C_PORT_NAME
17+
string "I2C master controller port name"
18+
depends on ATAES132A
19+
default "I2C_0"
20+
help
21+
Master I2C port name through wich ATAES132A chip is accessed.
22+
23+
config ATAES132A_I2C_ADDR
24+
hex "ATAES132A I2C addess"
25+
depends on ATAES132A
26+
default 0x50
27+
help
28+
ATAES132A chip's I2C address.
29+
30+
choice
31+
prompt "ATAES132A I2C bus speed"
32+
default ATAES132A_I2C_SPEED_STANDARD
33+
depends on ATAES132A
34+
35+
config ATAES132A_I2C_SPEED_STANDARD
36+
bool "Standard"
37+
help
38+
Standard bis speed of up to 100KHz.
39+
40+
config ATAES132A_I2C_SPEED_FAST
41+
bool "Fast"
42+
help
43+
Fast bus speed of up to 400KHz.
44+
endchoice

drivers/crypto/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ccflags-y += -I${srctree}/ext/lib/crypto/tinycrypt/include
22

33
obj-$(CONFIG_CRYPTO_TINYCRYPT_SHIM) += tc_shim.o
4-
4+
obj-$(CONFIG_ATAES132A) += crypto_ataes132a.o

0 commit comments

Comments
 (0)