diff options
author | Ye Li <ye.li@nxp.com> | 2019-06-25 02:21:36 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2019-06-25 02:26:35 -0700 |
commit | 53cc1a63d672882cb8c71af61321051f4dcbe091 (patch) | |
tree | 89556de62e6356e5f17f5817d910f9c04d02aa9a /drivers | |
parent | 35a24430c2da7c687bc729fa7f0b4b45749aba34 (diff) |
MLK-22105-2 caam: Move g_jrdata to bss section for SPL
We set SPL bss section on OCRAM. So move the g_jrdata to bss section
only on SPL. In normal u-boot, it is still in data section to avoid
overlay with relocation entries and DTB.
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/fsl_caam.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/crypto/fsl_caam.c b/drivers/crypto/fsl_caam.c index 9291e39480..60b38f1737 100644 --- a/drivers/crypto/fsl_caam.c +++ b/drivers/crypto/fsl_caam.c @@ -81,7 +81,11 @@ struct jr_data_st { /* * Global variables */ +#if defined(CONFIG_SPL_BUILD) +static struct jr_data_st g_jrdata = {0}; +#else static struct jr_data_st g_jrdata = {0, 0, 0xFFFFFFFF}; +#endif static u8 skeymod[] = { 0x0f, 0x0e, 0x0d, 0x0c, 0x0b, 0x0a, 0x09, 0x08, |