From: Scott Wood Date: Fri, 7 Mar 2014 12:43:33 -0600 Subject: [U-Boot] [PATCH][v4] powerpc/mpc85xx: SECURE BOOT- Add secure boot target for B4860QDS In-Reply-To: <1394198592-18967-1-git-send-email-aneesh.bansal@freescale.com> References: <1394198592-18967-1-git-send-email-aneesh.bansal@freescale.com> Message-ID: <1394217813.32664.27.camel@snotra.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 2014-03-07 at 18:53 +0530, Aneesh Bansal wrote: > Changes: > 1. L2 cache is being invalidated by Boot ROM code for e6500 core. > So removing the invalidation from start.S > 2. Clear the LAW and corresponding configuration for CPC. Boot ROM > code uses it as hosekeeping area. > 3. For Secure boot, CPC is configured as SRAM and used as house > keeping area. This configuration is to be disabled once in uboot. > Earlier this disabling of CPC as SRAM was happening in cpu_init_r. > As a result cache invalidation function was getting skipped in > case CPC is configured as SRAM.This was causing random crashes. > > Signed-off-by: Aneesh Bansal > --- > README | 4 ++++ > arch/powerpc/cpu/mpc85xx/cpu_init.c | 27 ++++++++++++++++++++++----- > arch/powerpc/cpu/mpc85xx/start.S | 3 ++- > arch/powerpc/include/asm/fsl_secure_boot.h | 6 ++++++ > boards.cfg | 1 + > 5 files changed, 35 insertions(+), 6 deletions(-) > > Changes from v3: > Renamed the macro to indicate CPC configured as SRAM at U-boot entry to > CONFIG_SYS_CPC_SRAM > > diff --git a/README b/README > index 216f0c7..e26833d 100644 > --- a/README > +++ b/README > @@ -427,6 +427,10 @@ The following options need to be configured: > In this mode, a single differential clock is used to supply > clocks to the sysclock, ddrclock and usbclock. > > + CONFIG_SYS_CPC_SRAM > + This CONFIG is defined when the SPC is configured as SRAM at the > + time of U-boot entry. SPC? -Scott