]>
Commit | Line | Data |
---|---|---|
8e8ec596 KP |
1 | config CRYPTO_DEV_FSL_CAAM |
2 | tristate "Freescale CAAM-Multicore driver backend" | |
3 | depends on FSL_SOC | |
4 | help | |
5 | Enables the driver module for Freescale's Cryptographic Accelerator | |
6 | and Assurance Module (CAAM), also known as the SEC version 4 (SEC4). | |
7 | This module adds a job ring operation interface, and configures h/w | |
8 | to operate as a DPAA component automatically, depending | |
9 | on h/w feature availability. | |
10 | ||
11 | To compile this driver as a module, choose M here: the module | |
12 | will be called caam. | |
13 | ||
14 | config CRYPTO_DEV_FSL_CAAM_RINGSIZE | |
15 | int "Job Ring size" | |
16 | depends on CRYPTO_DEV_FSL_CAAM | |
17 | range 2 9 | |
18 | default "9" | |
19 | help | |
20 | Select size of Job Rings as a power of 2, within the | |
21 | range 2-9 (ring size 4-512). | |
22 | Examples: | |
23 | 2 => 4 | |
24 | 3 => 8 | |
25 | 4 => 16 | |
26 | 5 => 32 | |
27 | 6 => 64 | |
28 | 7 => 128 | |
29 | 8 => 256 | |
30 | 9 => 512 | |
31 | ||
32 | config CRYPTO_DEV_FSL_CAAM_INTC | |
33 | bool "Job Ring interrupt coalescing" | |
34 | depends on CRYPTO_DEV_FSL_CAAM | |
1a076689 | 35 | default n |
8e8ec596 KP |
36 | help |
37 | Enable the Job Ring's interrupt coalescing feature. | |
38 | ||
1a076689 KP |
39 | Note: the driver already provides adequate |
40 | interrupt coalescing in software. | |
41 | ||
8e8ec596 KP |
42 | config CRYPTO_DEV_FSL_CAAM_INTC_COUNT_THLD |
43 | int "Job Ring interrupt coalescing count threshold" | |
44 | depends on CRYPTO_DEV_FSL_CAAM_INTC | |
45 | range 1 255 | |
46 | default 255 | |
47 | help | |
48 | Select number of descriptor completions to queue before | |
49 | raising an interrupt, in the range 1-255. Note that a selection | |
50 | of 1 functionally defeats the coalescing feature, and a selection | |
51 | equal or greater than the job ring size will force timeouts. | |
52 | ||
53 | config CRYPTO_DEV_FSL_CAAM_INTC_TIME_THLD | |
54 | int "Job Ring interrupt coalescing timer threshold" | |
55 | depends on CRYPTO_DEV_FSL_CAAM_INTC | |
56 | range 1 65535 | |
57 | default 2048 | |
58 | help | |
59 | Select number of bus clocks/64 to timeout in the case that one or | |
60 | more descriptor completions are queued without reaching the count | |
61 | threshold. Range is 1-65535. | |
62 | ||
63 | config CRYPTO_DEV_FSL_CAAM_CRYPTO_API | |
64 | tristate "Register algorithm implementations with the Crypto API" | |
65 | depends on CRYPTO_DEV_FSL_CAAM | |
66 | default y | |
67 | select CRYPTO_ALGAPI | |
68 | select CRYPTO_AUTHENC | |
69 | help | |
70 | Selecting this will offload crypto for users of the | |
71 | scatterlist crypto API (such as the linux native IPSec | |
72 | stack) to the SEC4 via job ring. | |
73 | ||
74 | To compile this as a module, choose M here: the module | |
75 | will be called caamalg. | |
045e3678 YK |
76 | |
77 | config CRYPTO_DEV_FSL_CAAM_AHASH_API | |
78 | tristate "Register hash algorithm implementations with Crypto API" | |
79 | depends on CRYPTO_DEV_FSL_CAAM | |
80 | default y | |
ae8488a5 | 81 | select CRYPTO_HASH |
045e3678 YK |
82 | help |
83 | Selecting this will offload ahash for users of the | |
84 | scatterlist crypto API to the SEC4 via job ring. | |
85 | ||
86 | To compile this as a module, choose M here: the module | |
87 | will be called caamhash. | |
e24f7c9e YK |
88 | |
89 | config CRYPTO_DEV_FSL_CAAM_RNG_API | |
90 | tristate "Register caam device for hwrng API" | |
91 | depends on CRYPTO_DEV_FSL_CAAM | |
92 | default y | |
93 | select CRYPTO_RNG | |
94 | select HW_RANDOM | |
95 | help | |
96 | Selecting this will register the SEC4 hardware rng to | |
97 | the hw_random API for suppying the kernel entropy pool. | |
98 | ||
99 | To compile this as a module, choose M here: the module | |
100 | will be called caamrng. |