9dcd71c8 | 27-Sep-2022 |
Corentin Labbe <clabbe@baylibre.com> |
crypto: rockchip - Add support for RK3399
The RK3399 has 2 rk3288 compatible crypto device named crypto0 and crypto1. The only difference is lack of RSA in crypto1.
We need to add driver support fo
crypto: rockchip - Add support for RK3399
The RK3399 has 2 rk3288 compatible crypto device named crypto0 and crypto1. The only difference is lack of RSA in crypto1.
We need to add driver support for 2 parallel instance as only one need to register crypto algorithms. Then the driver will round robin each request on each device.
For avoiding complexity (device bringup after a TFM is created), PM is modified to be handled per request. Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
c5a1e104 | 27-Sep-2022 |
Corentin Labbe <clabbe@baylibre.com> |
crypto: rockchip - permit to have more than one reset
The RK3399 has 3 resets, so the driver to handle multiple resets. This is done by using devm_reset_control_array_get_exclusive().
Signed-off-by
crypto: rockchip - permit to have more than one reset
The RK3399 has 3 resets, so the driver to handle multiple resets. This is done by using devm_reset_control_array_get_exclusive().
Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
0d31b14c | 27-Sep-2022 |
Corentin Labbe <clabbe@baylibre.com> |
crypto: rockchip - rk_ahash_reg_init use crypto_info from parameter
rk_ahash_reg_init() use crypto_info from TFM context, since we will remove it, let's take if from parameters.
Signed-off-by: Core
crypto: rockchip - rk_ahash_reg_init use crypto_info from parameter
rk_ahash_reg_init() use crypto_info from TFM context, since we will remove it, let's take if from parameters.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
e220e671 | 27-Sep-2022 |
Corentin Labbe <clabbe@baylibre.com> |
crypto: rockchip - Check for clocks numbers and their frequencies
Add the number of clocks needed for each compatible. Rockchip's datasheet give maximum frequencies for some clocks, so add checks fo
crypto: rockchip - Check for clocks numbers and their frequencies
Add the number of clocks needed for each compatible. Rockchip's datasheet give maximum frequencies for some clocks, so add checks for verifying they are within limits. Let's start with rk3288 for clock frequency check, other will came later.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
ea389be9 | 27-Sep-2022 |
Corentin Labbe <clabbe@baylibre.com> |
crypto: rockchip - use the rk_crypto_info given as parameter
Instead of using the crypto_info from TFM ctx, use the one given as parameter.
Reviewed-by: John Keeping <john@metanate.com> Signed-off-
crypto: rockchip - use the rk_crypto_info given as parameter
Instead of using the crypto_info from TFM ctx, use the one given as parameter.
Reviewed-by: John Keeping <john@metanate.com> Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
c018c7a9 | 27-Sep-2022 |
Corentin Labbe <clabbe@baylibre.com> |
crypto: rockchip - use a rk_crypto_info variable instead of lot of indirection
Instead of using lot of ctx->dev->xx indirections, use an intermediate variable for rk_crypto_info. This will help late
crypto: rockchip - use a rk_crypto_info variable instead of lot of indirection
Instead of using lot of ctx->dev->xx indirections, use an intermediate variable for rk_crypto_info. This will help later, when 2 different rk_crypto_info would be used.
Reviewed-by: John Keeping <john@metanate.com> Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
2e3b1495 | 27-Sep-2022 |
Corentin Labbe <clabbe@baylibre.com> |
crypto: rockchip - rework rk_handle_req function
This patch rework the rk_handle_req(), simply removing the rk_crypto_info parameter.
Reviewed-by: John Keeping <john@metanate.com> Signed-off-by: Co
crypto: rockchip - rework rk_handle_req function
This patch rework the rk_handle_req(), simply removing the rk_crypto_info parameter.
Reviewed-by: John Keeping <john@metanate.com> Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
a7fa0644 | 27-Sep-2022 |
Corentin Labbe <clabbe@baylibre.com> |
crypto: rockchip - rename ablk functions to cipher
Some functions have still ablk in their name even if there are not handling ablk_cipher anymore. So let's rename them.
Reviewed-by: John Keeping <
crypto: rockchip - rename ablk functions to cipher
Some functions have still ablk in their name even if there are not handling ablk_cipher anymore. So let's rename them.
Reviewed-by: John Keeping <john@metanate.com> Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
e65e9010 | 27-Sep-2022 |
Corentin Labbe <clabbe@baylibre.com> |
crypto: rockchip - add support for rk3328
The rk3328 could be used as-is by the rockchip driver.
Reviewed-by: John Keeping <john@metanate.com> Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Si
crypto: rockchip - add support for rk3328
The rk3328 could be used as-is by the rockchip driver.
Reviewed-by: John Keeping <john@metanate.com> Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
45669874 | 27-Sep-2022 |
Corentin Labbe <clabbe@baylibre.com> |
crypto: rockchip - fix style issue
This patch fixes some warning reported by checkpatch
Reviewed-by: John Keeping <john@metanate.com> Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-
crypto: rockchip - fix style issue
This patch fixes some warning reported by checkpatch
Reviewed-by: John Keeping <john@metanate.com> Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
37bc2215 | 27-Sep-2022 |
Corentin Labbe <clabbe@baylibre.com> |
crypto: rockchip - use read_poll_timeout
Use read_poll_timeout instead of open coding it. In the same time, fix indentation of related comment.
Reviewed-by: John Keeping <john@metanate.com> Signed-
crypto: rockchip - use read_poll_timeout
Use read_poll_timeout instead of open coding it. In the same time, fix indentation of related comment.
Reviewed-by: John Keeping <john@metanate.com> Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|