From: Tom Rini Date: Wed, 2 Nov 2016 10:27:41 -0400 Subject: [U-Boot] [PATCH v2 5/6] ARMv8: Setup PSCI memory and dt In-Reply-To: <1477994672-6445-6-git-send-email-hongbo.zhang@nxp.com> References: <1477994672-6445-1-git-send-email-hongbo.zhang@nxp.com> <1477994672-6445-6-git-send-email-hongbo.zhang@nxp.com> Message-ID: <20161102142741.GG23095@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Nov 01, 2016 at 06:04:31PM +0800, macro.wave.z at gmail.com wrote: > From: Hongbo Zhang > > Newly add ARMv8 PSCI needs to be initialized, be copied or reserved in right > place, this patch does all the setup steps. > > Signed-off-by: Hongbo Zhang [snip] > diff --git a/arch/arm/cpu/armv8/cpu-dt.c b/arch/arm/cpu/armv8/cpu-dt.c > index 659ec27..753e21f 100644 > --- a/arch/arm/cpu/armv8/cpu-dt.c > +++ b/arch/arm/cpu/armv8/cpu-dt.c > @@ -6,6 +6,7 @@ > > #include > #include > +#include > #ifdef CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT > #include > #endif > @@ -27,5 +28,14 @@ int psci_update_dt(void *fdt) > fdt_psci(fdt); > #endif > #endif > + > +#ifdef CONFIG_ARMV8_PSCI > + fdt_psci(fdt); > +#ifndef CONFIG_ARMV8_SECURE_BASE > + /* secure code lives in RAM, keep it alive */ > + fdt_add_mem_rsv(fdt, (unsigned long)__secure_start, > + __secure_end - __secure_start); > +#endif > +#endif > return 0; Looking just above this context, I think we need to re-work the #if tests now when adding this in. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: