[U-Boot-Users] [PATCH] fdt_support: add crypto node handling for MPC8{3, 5}xxE processors

Kumar Gala galak at kernel.crashing.org
Tue Jun 10 23:48:17 CEST 2008


>
>
> 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
>  */




More information about the U-Boot mailing list