-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: ux500 - Add driver for CRYP hardware
This adds a driver for the ST-Ericsson ux500 crypto hardware module. It supports AES, DES and 3DES, the driver implements support for AES-ECB,CBC and CTR. Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Andreas Westin <andreas.westin@stericsson.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
- Loading branch information
Andreas Westin
authored and
Herbert Xu
committed
May 4, 2012
1 parent
028fdd8
commit 2789c08
Showing
13 changed files
with
2,878 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright (C) ST-Ericsson SA 2011 | ||
* | ||
* Author: Joakim Bech <joakim.xx.bech@stericsson.com> for ST-Ericsson | ||
* License terms: GNU General Public License (GPL) version 2 | ||
*/ | ||
#ifndef _CRYPTO_UX500_H | ||
#include <linux/dmaengine.h> | ||
#include <plat/ste_dma40.h> | ||
|
||
struct cryp_platform_data { | ||
struct stedma40_chan_cfg mem_to_engine; | ||
struct stedma40_chan_cfg engine_to_mem; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Copyright (C) ST-Ericsson SA 2010 | ||
# Author: Shujuan Chen (shujuan.chen@stericsson.com) | ||
# License terms: GNU General Public License (GPL) version 2 | ||
# | ||
|
||
config CRYPTO_DEV_UX500_CRYP | ||
tristate "UX500 crypto driver for CRYP block" | ||
depends on CRYPTO_DEV_UX500 | ||
select CRYPTO_DES | ||
help | ||
This selects the crypto driver for the UX500_CRYP hardware. It supports | ||
AES-ECB, CBC and CTR with keys sizes of 128, 192 and 256 bit sizes. | ||
|
||
config CRYPTO_DEV_UX500_DEBUG | ||
bool "Activate ux500 platform debug-mode for crypto and hash block" | ||
depends on CRYPTO_DEV_UX500_CRYP || CRYPTO_DEV_UX500_HASH | ||
default n | ||
help | ||
Say Y if you want to add debug prints to ux500_hash and | ||
ux500_cryp devices. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# | ||
# Copyright (C) ST-Ericsson SA 2010 | ||
# Author: Shujuan Chen (shujuan.chen@stericsson.com) | ||
# License terms: GNU General Public License (GPL) version 2 | ||
# | ||
|
||
obj-$(CONFIG_CRYPTO_DEV_UX500_CRYP) += cryp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#/* | ||
# * Copyright (C) ST-Ericsson SA 2010 | ||
# * Author: shujuan.chen@stericsson.com for ST-Ericsson. | ||
# * License terms: GNU General Public License (GPL) version 2 */ | ||
|
||
ifdef CONFIG_CRYPTO_DEV_UX500_DEBUG | ||
CFLAGS_cryp_core.o := -DDEBUG -O0 | ||
CFLAGS_cryp.o := -DDEBUG -O0 | ||
CFLAGS_cryp_irq.o := -DDEBUG -O0 | ||
endif | ||
|
||
obj-$(CONFIG_CRYPTO_DEV_UX500_CRYP) += ux500_cryp.o | ||
ux500_cryp-objs := cryp.o cryp_irq.o cryp_core.o |
Oops, something went wrong.