* [U-Boot] [PATCH] armv8/fdt: add fixup_crypto_node
@ 2016-04-11 7:42 Alex Porosanu
2016-05-24 17:08 ` York Sun
0 siblings, 1 reply; 2+ messages in thread
From: Alex Porosanu @ 2016-04-11 7:42 UTC (permalink / raw)
To: u-boot
For Qoriq PPC&ARM v7 platforms, the crypto node is being fixup'ed in order
to update the SEC internal version (aka SEC ERA). This patch adds the
same functionality to the ARMv8 SoCs.
Signed-off-by: Alex Porosanu <alexandru.porosanu@nxp.com>
---
arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
index 1e875c4..d17227a 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
@@ -20,6 +20,8 @@
#ifdef CONFIG_MP
#include <asm/arch/mp.h>
#endif
+#include <fsl_sec.h>
+#include <asm/arch-fsl-layerscape/soc.h>
int fdt_fixup_phy_connection(void *blob, int offset, phy_interface_t phyc)
{
@@ -75,6 +77,23 @@ void ft_fixup_cpu(void *blob)
void ft_cpu_setup(void *blob, bd_t *bd)
{
+#ifdef CONFIG_FSL_LSCH2
+ struct ccsr_gur __iomem *gur = (void *)(CONFIG_SYS_FSL_GUTS_ADDR);
+ unsigned int svr = in_be32(&gur->svr);
+
+ /* delete crypto node if not on an E-processor */
+ if (!IS_E_PROCESSOR(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, sec_in32(&sec->secvid_ms));
+ }
+#endif
+#endif
+
#ifdef CONFIG_MP
ft_fixup_cpu(blob);
#endif
--
1.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* [U-Boot] [PATCH] armv8/fdt: add fixup_crypto_node
2016-04-11 7:42 [U-Boot] [PATCH] armv8/fdt: add fixup_crypto_node Alex Porosanu
@ 2016-05-24 17:08 ` York Sun
0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2016-05-24 17:08 UTC (permalink / raw)
To: u-boot
On 04/11/2016 12:43 AM, Alex Porosanu wrote:
> For Qoriq PPC&ARM v7 platforms, the crypto node is being fixup'ed in order
> to update the SEC internal version (aka SEC ERA). This patch adds the
> same functionality to the ARMv8 SoCs.
>
> Signed-off-by: Alex Porosanu <alexandru.porosanu@nxp.com>
> ---
> arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
Minor adjustment to commit message format.
Applied to u-boot-fsl-qoriq master, awaiting upstream.
Thanks.
York
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-24 17:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-11 7:42 [U-Boot] [PATCH] armv8/fdt: add fixup_crypto_node Alex Porosanu
2016-05-24 17:08 ` York Sun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox