diff options
author | Vakul Garg <vakul@freescale.com> | 2013-01-23 22:52:31 +0000 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2013-01-30 11:25:15 -0600 |
commit | 5e95e2d84bdab9fef309392e51fd4b68a6a28949 (patch) | |
tree | 8712eac4ff07341e7794e170f4ac040886238b6b /arch/powerpc/cpu/mpc85xx/fdt.c | |
parent | 5b93394318c04791c9b4edda7ff4af140427ed8a (diff) | |
download | u-boot-imx-5e95e2d84bdab9fef309392e51fd4b68a6a28949.zip u-boot-imx-5e95e2d84bdab9fef309392e51fd4b68a6a28949.tar.gz u-boot-imx-5e95e2d84bdab9fef309392e51fd4b68a6a28949.tar.bz2 |
powerpc/mpc85xx: Add property 'fsl, sec-era' in device tree node 'crypto'
If property 'fsl,sec-era' is already present, it is updated.
This property is required so that applications can ascertain which
descriptor commands are supported on a particular CAAM version.
Signed-off-by: Vakul Garg <vakul@freescale.com>
Cc: Andy Fleming <afleming@gmail.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/fdt.c')
-rw-r--r-- | arch/powerpc/cpu/mpc85xx/fdt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c b/arch/powerpc/cpu/mpc85xx/fdt.c index 16d7f6a..3a268aa 100644 --- a/arch/powerpc/cpu/mpc85xx/fdt.c +++ b/arch/powerpc/cpu/mpc85xx/fdt.c @@ -607,6 +607,14 @@ void ft_cpu_setup(void *blob, bd_t *bd) /* delete crypto node if not on an E-processor */ if (!IS_E_PROCESSOR(get_svr())) fdt_fixup_crypto_node(blob, 0); +#if CONFIG_SYS_FSL_SEC_COMPAT >= 4 + else { + ccsr_sec_t __iomem *sec; + + sec = (void __iomem *)CONFIG_SYS_FSL_SEC_ADDR; + fdt_fixup_crypto_node(blob, in_be32(&sec->secvid_ms)); + } +#endif fdt_fixup_ethernet(blob); |