From bed5aa87315c6f376f6f94f8c7bcefc984975213 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 2 Mar 2016 10:28:09 -0600 Subject: [PATCH] Add IMX_NCPUS to i.MX6 chip.h file --- arch/arm/include/imx6/chip.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/imx6/chip.h b/arch/arm/include/imx6/chip.h index 7704b21152..c8ef78f00e 100644 --- a/arch/arm/include/imx6/chip.h +++ b/arch/arm/include/imx6/chip.h @@ -46,10 +46,19 @@ * Pre-processor Definitions ****************************************************************************/ /* The i.MX6 6Quad and 6Dual/DualLite are the only support i.MX6 family - * members. + * members. Individual differences between members of the families are not + * accounted for. */ -#define IMX_OCRAM_SIZE (256*1024) /* Size of the On-Chip RAM (OCRAM) */ +#if defined(CONFIG_ARCH_CHIP_IMX6_6QUAD) +# define IMX_OCRAM_SIZE (256*1024) /* Size of the On-Chip RAM (OCRAM) */ +# define IMX_NXCPUS 4 /* 4 CPUs */ +#elif defined(CONFIG_ARCH_CHIP_IMX6_6DUAL) +# define IMX_OCRAM_SIZE (256*1024) /* Size of the On-Chip RAM (OCRAM) */ +# define IMX_NXCPUS 2 /* 2 CPUs */ +#else +# error Unspecified i.MX6 chip +#endif /**************************************************************************** * Public Types