diff mbox

[U-Boot,1/4] DM: crypto/fsl: Enable rsa DM driver usage before relocation

Message ID 1465926760-8730-2-git-send-email-sumit.garg@nxp.com
State Accepted
Commit 7f0a0e4c58e9099016eda6f1f24507c2e6173c8a
Delegated to: York Sun
Headers show

Commit Message

Sumit Garg June 14, 2016, 5:52 p.m. UTC
Enable rsa signature verification in SPL framework before relocation for
verification of main u-boot.

Reviewed-by: Aneesh Bansal <aneesh.bansal@nxp.com>
Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
---
 drivers/crypto/fsl/fsl_rsa.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Glass June 17, 2016, 3:52 a.m. UTC | #1
On 14 June 2016 at 11:52, Sumit Garg <sumit.garg@nxp.com> wrote:
> Enable rsa signature verification in SPL framework before relocation for
> verification of main u-boot.
>
> Reviewed-by: Aneesh Bansal <aneesh.bansal@nxp.com>
> Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
> ---
>  drivers/crypto/fsl/fsl_rsa.c | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
York Sun July 26, 2016, 8:20 p.m. UTC | #2
On 06/14/2016 04:36 AM, Sumit Garg wrote:
> Enable rsa signature verification in SPL framework before relocation for
> verification of main u-boot.
>
> Reviewed-by: Aneesh Bansal <aneesh.bansal@nxp.com>
> Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
> ---
>  drivers/crypto/fsl/fsl_rsa.c | 1 +
>  1 file changed, 1 insertion(+)
>

Applied to fsl-qoriq master. Awaiting upstream.
Thanks.

York
diff mbox

Patch

diff --git a/drivers/crypto/fsl/fsl_rsa.c b/drivers/crypto/fsl/fsl_rsa.c
index cf1c4c1..5471504 100644
--- a/drivers/crypto/fsl/fsl_rsa.c
+++ b/drivers/crypto/fsl/fsl_rsa.c
@@ -53,6 +53,7 @@  U_BOOT_DRIVER(fsl_rsa_mod_exp) = {
 	.name	= "fsl_rsa_mod_exp",
 	.id	= UCLASS_MOD_EXP,
 	.ops	= &fsl_mod_exp_ops,
+	.flags  = DM_FLAG_PRE_RELOC,
 };
 
 U_BOOT_DEVICE(fsl_rsa) = {