Commit a43a3484 authored by Fabien DESSENNE's avatar Fabien DESSENNE Committed by Herbert Xu

crypto: stm32/cryp - add stm32mp1 support

stm32mp1 differs from stm32f7 in the way it handles byte ordering and
padding for aes gcm & ccm algo.
Signed-off-by: default avatarFabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 9d3b5030
...@@ -1906,8 +1906,14 @@ static const struct stm32_cryp_caps f7_data = { ...@@ -1906,8 +1906,14 @@ static const struct stm32_cryp_caps f7_data = {
.padding_wa = true, .padding_wa = true,
}; };
static const struct stm32_cryp_caps mp1_data = {
.swap_final = false,
.padding_wa = false,
};
static const struct of_device_id stm32_dt_ids[] = { static const struct of_device_id stm32_dt_ids[] = {
{ .compatible = "st,stm32f756-cryp", .data = &f7_data}, { .compatible = "st,stm32f756-cryp", .data = &f7_data},
{ .compatible = "st,stm32mp1-cryp", .data = &mp1_data},
{}, {},
}; };
MODULE_DEVICE_TABLE(of, stm32_dt_ids); MODULE_DEVICE_TABLE(of, stm32_dt_ids);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment