diff options
author | Fabien DESSENNE <fabien.dessenne@st.com> | 2018-02-07 14:08:55 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-02-15 23:26:57 +0800 |
commit | a43a34845a156c9e1dae00e33595a508d53e0365 (patch) | |
tree | 1ec30ed71289a8d760423523844e42f7e9d239c1 /drivers/crypto/stm32 | |
parent | 9d3b5030bc1e44fe88d0f2879d52ef1e375a63be (diff) |
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: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/stm32')
-rw-r--r-- | drivers/crypto/stm32/stm32-cryp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/stm32/stm32-cryp.c b/drivers/crypto/stm32/stm32-cryp.c index 6a1fe983ed13..c5d3efc54a4f 100644 --- a/drivers/crypto/stm32/stm32-cryp.c +++ b/drivers/crypto/stm32/stm32-cryp.c @@ -1906,8 +1906,14 @@ static const struct stm32_cryp_caps f7_data = { .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[] = { { .compatible = "st,stm32f756-cryp", .data = &f7_data}, + { .compatible = "st,stm32mp1-cryp", .data = &mp1_data}, {}, }; MODULE_DEVICE_TABLE(of, stm32_dt_ids); |