From: Kumar Gala Date: Tue, 10 Jun 2008 16:48:17 -0500 Subject: [U-Boot-Users] [PATCH] fdt_support: add crypto node handling for MPC8{3, 5}xxE processors In-Reply-To: <20080609190308.77e3adaf.kim.phillips@freescale.com> References: <20080609190308.77e3adaf.kim.phillips@freescale.com> Message-ID: <21B39D3C-EEBA-4D12-BAD1-AB8518A1416D@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > > > 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); > + This is wrong or you need to fix the IS_E_PROCESSOR() macro. IS_E_PROCESSOR(svr) should be defined: svr & 0x80000 or you want: IS_E_PROCESSOR(SVR_SOC_VER(get_svr())) - k > > #if defined(CONFIG_HAS_ETH0) || defined(CONFIG_HAS_ETH1) ||\ > defined(CONFIG_HAS_ETH2) || defined(CONFIG_HAS_ETH3) > fdt_fixup_ethernet(blob, bd); > diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h > index 8bdfb9d..14d3d70 100644 > --- a/include/asm-ppc/processor.h > +++ b/include/asm-ppc/processor.h > @@ -883,6 +883,15 @@ > /* Some parts define SVR[0:23] as the SOC version */ > #define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFFFFF) /* SOC Version > fields */ > > +/* whether MPC8xxxE (i.e. has SEC) */ > +#if defined(CONFIG_MPC85xx) > +#define IS_E_PROCESSOR(svr) (svr & 0x800) > +#else > +#if defined(CONFIG_MPC83XX) > +#define IS_E_PROCESSOR(spridr) (!(spridr & 0x00010000)) > +#endif > +#endif > + > /* > * SVR_SOC_VER() Version Values > */