# SPDX-License-Identifier: GPL-2.0
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_COMMON[0m
tristate
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC[0m
tristate
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC[0m
tristate
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM[0m
tristate "Freescale CAAM-Multicore platform driver backend"
depends on [31mCONFIG_FSL_SOC[0m || [31mCONFIG_ARCH_MXC[0m || [31mCONFIG_ARCH_LAYERSCAPE[0m
select [31mCONFIG_SOC_BUS[0m
select [31mCONFIG_CRYPTO_DEV_FSL_CAAM_COMMON[0m
help
Enables the driver module for Freescale's Cryptographic Accelerator
and Assurance Module (CAAM), also known as the SEC version 4 (SEC4).
This module creates job ring devices, and configures h/w
to operate as a DPAA component automatically, depending
on h/w feature availability.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the module
will be called caam.
if [31mCONFIG_CRYPTO_DEV_FSL_CAAM[0m
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG[0m
bool "Enable debug output in CAAM driver"
help
Selecting this will enable printing of various debug
information in the CAAM driver.
menuconfig [31mCONFIG_CRYPTO_DEV_FSL_CAAM_JR[0m
tristate "Freescale CAAM Job Ring driver backend"
default y
help
Enables the driver module for Job Rings which are part of
Freescale's Cryptographic Accelerator
and Assurance Module (CAAM). This module adds a job ring operation
interface.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the module
will be called caam_jr.
if [31mCONFIG_CRYPTO_DEV_FSL_CAAM_JR[0m
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE[0m
int "Job Ring size"
range 2 9
default "9"
help
Select size of Job Rings as a power of 2, within the
range 2-9 (ring size 4-512).
Examples:
2 => 4
3 => 8
4 => 16
5 => 32
6 => 64
7 => 128
8 => 256
9 => 512
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_INTC[0m
bool "Job Ring interrupt coalescing"
help
Enable the Job Ring's interrupt coalescing feature.
Note: the driver already provides adequate
interrupt coalescing in software.
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_INTC_COUNT_THLD[0m
int "Job Ring interrupt coalescing count threshold"
depends on [31mCONFIG_CRYPTO_DEV_FSL_CAAM_INTC[0m
range 1 255
default 255
help
Select number of descriptor completions to queue before
raising an interrupt, in the range 1-255. Note that a selection
of 1 functionally defeats the coalescing feature, and a selection
equal or greater than the job ring size will force timeouts.
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_INTC_TIME_THLD[0m
int "Job Ring interrupt coalescing timer threshold"
depends on [31mCONFIG_CRYPTO_DEV_FSL_CAAM_INTC[0m
range 1 65535
default 2048
help
Select number of bus clocks/64 to timeout in the case that one or
more descriptor completions are queued without reaching the count
threshold. Range is 1-65535.
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API[0m
bool "Register algorithm implementations with the Crypto API"
default y
select [31mCONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC[0m
select [31mCONFIG_CRYPTO_AEAD[0m
select [31mCONFIG_CRYPTO_AUTHENC[0m
select [31mCONFIG_CRYPTO_BLKCIPHER[0m
select [31mCONFIG_CRYPTO_LIB_DES[0m
help
Selecting this will offload crypto for users of the
scatterlist crypto API (such as the linux native IPSec
stack) to the SEC4 via job ring.
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI[0m
bool "Queue Interface as Crypto API backend"
depends on [31mCONFIG_FSL_DPAA[0m && [31mCONFIG_NET[0m
default y
select [31mCONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC[0m
select [31mCONFIG_CRYPTO_AUTHENC[0m
select [31mCONFIG_CRYPTO_BLKCIPHER[0m
select [31mCONFIG_CRYPTO_DES[0m
help
Selecting this will use CAAM Queue Interface (QI) for sending
& receiving crypto jobs to/from CAAM. This gives better performance
than job ring interface when the number of cores are more than the
number of job rings assigned to the kernel. The number of portals
assigned to the kernel should also be more than the number of
job rings.
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API[0m
bool "Register hash algorithm implementations with Crypto API"
default y
select [31mCONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC[0m
select [31mCONFIG_CRYPTO_HASH[0m
help
Selecting this will offload ahash for users of the
scatterlist crypto API to the SEC4 via job ring.
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API[0m
bool "Register public key cryptography implementations with Crypto API"
default y
select [31mCONFIG_CRYPTO_RSA[0m
help
Selecting this will allow SEC Public key support for RSA.
Supported cryptographic primitives: encryption, decryption,
signature and verification.
config [31mCONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API[0m
bool "Register caam device for hwrng API"
default y
select [31mCONFIG_CRYPTO_RNG[0m
select [31mCONFIG_HW_RANDOM[0m
help
Selecting this will register the SEC4 hardware rng to
the hw_random API for suppying the kernel entropy pool.
endif # [31mCONFIG_CRYPTO_DEV_FSL_CAAM_JR[0m
endif # [31mCONFIG_CRYPTO_DEV_FSL_CAAM[0m
config [31mCONFIG_CRYPTO_DEV_FSL_DPAA2_CAAM[0m
tristate "QorIQ DPAA2 CAAM (DPSECI) driver"
depends on [31mCONFIG_FSL_MC_DPIO[0m
depends on [31mCONFIG_NETDEVICES[0m
select [31mCONFIG_CRYPTO_DEV_FSL_CAAM_COMMON[0m
select [31mCONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC[0m
select [31mCONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC[0m
select [31mCONFIG_CRYPTO_BLKCIPHER[0m
select [31mCONFIG_CRYPTO_AUTHENC[0m
select [31mCONFIG_CRYPTO_AEAD[0m
select [31mCONFIG_CRYPTO_HASH[0m
select [31mCONFIG_CRYPTO_DES[0m
help
CAAM driver for QorIQ Data Path Acceleration Architecture 2.
It handles DPSECI DPAA2 objects that sit on the Management Complex
(MC) fsl-mc bus.
To compile this as a module, choose [31mCONFIG_M[0m here: the module
will be called dpaa2_caam.