From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Scharsig Date: Mon, 31 Oct 2011 08:28:50 +0100 Subject: [U-Boot] [PATCH] ARM: re-introduce the MACH_TYPE_XXXXXX for EB_CPUX9K2 board In-Reply-To: <4EAD27CB.9020907@aribaud.net> References: <1319883627-9817-1-git-send-email-js_at_ng@scharsoft.de> <201110300047.46696.marek.vasut@gmail.com> <4EAD27CB.9020907@aribaud.net> Message-ID: <4EAE4E32.50603@scharsoft.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 30.10.2011 11:32, schrieb Albert ARIBAUD: > Hi Jens, Marek, > > Le 30/10/2011 00:47, Marek Vasut a ?crit : >>> * re-introduce the MACH_TYPE_XXXXXX for EB_CPUX9K2 board >>> >>> Signed-off-by: Jens Scharsig >>> --- >>> include/configs/eb_cpux9k2.h | 4 ++++ >>> 1 files changed, 4 insertions(+), 0 deletions(-) >>> >>> diff --git a/include/configs/eb_cpux9k2.h b/include/configs/eb_cpux9k2.h >>> index 4324172..e437f25 100644 >>> --- a/include/configs/eb_cpux9k2.h >>> +++ b/include/configs/eb_cpux9k2.h >>> @@ -42,6 +42,10 @@ >>> #define CONFIG_BOARD_EARLY_INIT_F >>> >>> /*------------------------------------------------------------------------ >>> --*/ >>> +#ifndef MACH_TYPE_EB_CPUX9K2 >>> +#define MACH_TYPE_EB_CPUX9K2 1977 >>> +#endif >>> +/*------------------------------------------------------------------------ >>> --*/ >>> #define CONFIG_SYS_TEXT_BASE 0x00000000 >>> #define CONFIG_SYS_LOAD_ADDR 0x21000000 /* default load address */ >> >> You don't need the ifndef. Cheers > > I'd even say you need to not have them: this way, when the MACH_ID shows > up eventually in machine-type, the preprocessor will emit a warning for > the redefinition in the config file, thus letting us know it is time to > remove the temporary MACH_TYPE there. > > Amicalement, Ok, I will send a straightforward variant as V2 patch Regards Jens