Kconfig (498495dba268b20e8eadd7fe93c140c68b6cc9d2) Kconfig (8d818c1055013d355d36188f21c7535687374f6c)
1config CRYPTO_DEV_FSL_CAAM_COMMON
2 tristate
3
1config CRYPTO_DEV_FSL_CAAM
4config CRYPTO_DEV_FSL_CAAM
2 tristate "Freescale CAAM-Multicore driver backend"
5 tristate "Freescale CAAM-Multicore platform driver backend"
3 depends on FSL_SOC || ARCH_MXC || ARCH_LAYERSCAPE
4 select SOC_BUS
6 depends on FSL_SOC || ARCH_MXC || ARCH_LAYERSCAPE
7 select SOC_BUS
8 select CRYPTO_DEV_FSL_CAAM_COMMON
5 help
6 Enables the driver module for Freescale's Cryptographic Accelerator
7 and Assurance Module (CAAM), also known as the SEC version 4 (SEC4).
8 This module creates job ring devices, and configures h/w
9 to operate as a DPAA component automatically, depending
10 on h/w feature availability.
11
12 To compile this driver as a module, choose M here: the module
13 will be called caam.
14
9 help
10 Enables the driver module for Freescale's Cryptographic Accelerator
11 and Assurance Module (CAAM), also known as the SEC version 4 (SEC4).
12 This module creates job ring devices, and configures h/w
13 to operate as a DPAA component automatically, depending
14 on h/w feature availability.
15
16 To compile this driver as a module, choose M here: the module
17 will be called caam.
18
19if CRYPTO_DEV_FSL_CAAM
20
21config CRYPTO_DEV_FSL_CAAM_DEBUG
22 bool "Enable debug output in CAAM driver"
23 help
24 Selecting this will enable printing of various debug
25 information in the CAAM driver.
26
15config CRYPTO_DEV_FSL_CAAM_JR
16 tristate "Freescale CAAM Job Ring driver backend"
27config CRYPTO_DEV_FSL_CAAM_JR
28 tristate "Freescale CAAM Job Ring driver backend"
17 depends on CRYPTO_DEV_FSL_CAAM
18 default y
19 help
20 Enables the driver module for Job Rings which are part of
21 Freescale's Cryptographic Accelerator
22 and Assurance Module (CAAM). This module adds a job ring operation
23 interface.
24
25 To compile this driver as a module, choose M here: the module
26 will be called caam_jr.
27
29 default y
30 help
31 Enables the driver module for Job Rings which are part of
32 Freescale's Cryptographic Accelerator
33 and Assurance Module (CAAM). This module adds a job ring operation
34 interface.
35
36 To compile this driver as a module, choose M here: the module
37 will be called caam_jr.
38
39if CRYPTO_DEV_FSL_CAAM_JR
40
28config CRYPTO_DEV_FSL_CAAM_RINGSIZE
29 int "Job Ring size"
41config CRYPTO_DEV_FSL_CAAM_RINGSIZE
42 int "Job Ring size"
30 depends on CRYPTO_DEV_FSL_CAAM_JR
31 range 2 9
32 default "9"
33 help
34 Select size of Job Rings as a power of 2, within the
35 range 2-9 (ring size 4-512).
36 Examples:
37 2 => 4
38 3 => 8
39 4 => 16
40 5 => 32
41 6 => 64
42 7 => 128
43 8 => 256
44 9 => 512
45
46config CRYPTO_DEV_FSL_CAAM_INTC
47 bool "Job Ring interrupt coalescing"
43 range 2 9
44 default "9"
45 help
46 Select size of Job Rings as a power of 2, within the
47 range 2-9 (ring size 4-512).
48 Examples:
49 2 => 4
50 3 => 8
51 4 => 16
52 5 => 32
53 6 => 64
54 7 => 128
55 8 => 256
56 9 => 512
57
58config CRYPTO_DEV_FSL_CAAM_INTC
59 bool "Job Ring interrupt coalescing"
48 depends on CRYPTO_DEV_FSL_CAAM_JR
49 help
50 Enable the Job Ring's interrupt coalescing feature.
51
52 Note: the driver already provides adequate
53 interrupt coalescing in software.
54
55config CRYPTO_DEV_FSL_CAAM_INTC_COUNT_THLD
56 int "Job Ring interrupt coalescing count threshold"

--- 13 unchanged lines hidden (view full) ---

70 default 2048
71 help
72 Select number of bus clocks/64 to timeout in the case that one or
73 more descriptor completions are queued without reaching the count
74 threshold. Range is 1-65535.
75
76config CRYPTO_DEV_FSL_CAAM_CRYPTO_API
77 tristate "Register algorithm implementations with the Crypto API"
60 help
61 Enable the Job Ring's interrupt coalescing feature.
62
63 Note: the driver already provides adequate
64 interrupt coalescing in software.
65
66config CRYPTO_DEV_FSL_CAAM_INTC_COUNT_THLD
67 int "Job Ring interrupt coalescing count threshold"

--- 13 unchanged lines hidden (view full) ---

81 default 2048
82 help
83 Select number of bus clocks/64 to timeout in the case that one or
84 more descriptor completions are queued without reaching the count
85 threshold. Range is 1-65535.
86
87config CRYPTO_DEV_FSL_CAAM_CRYPTO_API
88 tristate "Register algorithm implementations with the Crypto API"
78 depends on CRYPTO_DEV_FSL_CAAM_JR
79 default y
80 select CRYPTO_AEAD
81 select CRYPTO_AUTHENC
82 select CRYPTO_BLKCIPHER
83 help
84 Selecting this will offload crypto for users of the
85 scatterlist crypto API (such as the linux native IPSec
86 stack) to the SEC4 via job ring.
87
88 To compile this as a module, choose M here: the module
89 will be called caamalg.
90
91config CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI
92 tristate "Queue Interface as Crypto API backend"
89 default y
90 select CRYPTO_AEAD
91 select CRYPTO_AUTHENC
92 select CRYPTO_BLKCIPHER
93 help
94 Selecting this will offload crypto for users of the
95 scatterlist crypto API (such as the linux native IPSec
96 stack) to the SEC4 via job ring.
97
98 To compile this as a module, choose M here: the module
99 will be called caamalg.
100
101config CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI
102 tristate "Queue Interface as Crypto API backend"
93 depends on CRYPTO_DEV_FSL_CAAM_JR && FSL_DPAA && NET
103 depends on FSL_DPAA && NET
94 default y
95 select CRYPTO_AUTHENC
96 select CRYPTO_BLKCIPHER
97 help
98 Selecting this will use CAAM Queue Interface (QI) for sending
99 & receiving crypto jobs to/from CAAM. This gives better performance
100 than job ring interface when the number of cores are more than the
101 number of job rings assigned to the kernel. The number of portals
102 assigned to the kernel should also be more than the number of
103 job rings.
104
105 To compile this as a module, choose M here: the module
106 will be called caamalg_qi.
107
108config CRYPTO_DEV_FSL_CAAM_AHASH_API
109 tristate "Register hash algorithm implementations with Crypto API"
104 default y
105 select CRYPTO_AUTHENC
106 select CRYPTO_BLKCIPHER
107 help
108 Selecting this will use CAAM Queue Interface (QI) for sending
109 & receiving crypto jobs to/from CAAM. This gives better performance
110 than job ring interface when the number of cores are more than the
111 number of job rings assigned to the kernel. The number of portals
112 assigned to the kernel should also be more than the number of
113 job rings.
114
115 To compile this as a module, choose M here: the module
116 will be called caamalg_qi.
117
118config CRYPTO_DEV_FSL_CAAM_AHASH_API
119 tristate "Register hash algorithm implementations with Crypto API"
110 depends on CRYPTO_DEV_FSL_CAAM_JR
111 default y
112 select CRYPTO_HASH
113 help
114 Selecting this will offload ahash for users of the
115 scatterlist crypto API to the SEC4 via job ring.
116
117 To compile this as a module, choose M here: the module
118 will be called caamhash.
119
120config CRYPTO_DEV_FSL_CAAM_PKC_API
121 tristate "Register public key cryptography implementations with Crypto API"
120 default y
121 select CRYPTO_HASH
122 help
123 Selecting this will offload ahash for users of the
124 scatterlist crypto API to the SEC4 via job ring.
125
126 To compile this as a module, choose M here: the module
127 will be called caamhash.
128
129config CRYPTO_DEV_FSL_CAAM_PKC_API
130 tristate "Register public key cryptography implementations with Crypto API"
122 depends on CRYPTO_DEV_FSL_CAAM_JR
123 default y
124 select CRYPTO_RSA
125 help
126 Selecting this will allow SEC Public key support for RSA.
127 Supported cryptographic primitives: encryption, decryption,
128 signature and verification.
129 To compile this as a module, choose M here: the module
130 will be called caam_pkc.
131
132config CRYPTO_DEV_FSL_CAAM_RNG_API
133 tristate "Register caam device for hwrng API"
131 default y
132 select CRYPTO_RSA
133 help
134 Selecting this will allow SEC Public key support for RSA.
135 Supported cryptographic primitives: encryption, decryption,
136 signature and verification.
137 To compile this as a module, choose M here: the module
138 will be called caam_pkc.
139
140config CRYPTO_DEV_FSL_CAAM_RNG_API
141 tristate "Register caam device for hwrng API"
134 depends on CRYPTO_DEV_FSL_CAAM_JR
135 default y
136 select CRYPTO_RNG
137 select HW_RANDOM
138 help
139 Selecting this will register the SEC4 hardware rng to
140 the hw_random API for suppying the kernel entropy pool.
141
142 To compile this as a module, choose M here: the module
143 will be called caamrng.
144
142 default y
143 select CRYPTO_RNG
144 select HW_RANDOM
145 help
146 Selecting this will register the SEC4 hardware rng to
147 the hw_random API for suppying the kernel entropy pool.
148
149 To compile this as a module, choose M here: the module
150 will be called caamrng.
151
145config CRYPTO_DEV_FSL_CAAM_DEBUG
146 bool "Enable debug output in CAAM driver"
147 depends on CRYPTO_DEV_FSL_CAAM
152endif # CRYPTO_DEV_FSL_CAAM_JR
153
154endif # CRYPTO_DEV_FSL_CAAM
155
156config CRYPTO_DEV_FSL_DPAA2_CAAM
157 tristate "QorIQ DPAA2 CAAM (DPSECI) driver"
158 depends on FSL_MC_DPIO
159 select CRYPTO_DEV_FSL_CAAM_COMMON
160 select CRYPTO_AUTHENC
161 select CRYPTO_AEAD
148 help
162 help
149 Selecting this will enable printing of various debug
150 information in the CAAM driver.
163 CAAM driver for QorIQ Data Path Acceleration Architecture 2.
164 It handles DPSECI DPAA2 objects that sit on the Management Complex
165 (MC) fsl-mc bus.
151
166
167 To compile this as a module, choose M here: the module
168 will be called dpaa2_caam.
169
152config CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC
153 def_tristate (CRYPTO_DEV_FSL_CAAM_CRYPTO_API || \
170config CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC
171 def_tristate (CRYPTO_DEV_FSL_CAAM_CRYPTO_API || \
154 CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI)
172 CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI || \
173 CRYPTO_DEV_FSL_DPAA2_CAAM)