From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 21 Jul 2015 03:59:06 +0200 Subject: [U-Boot] [PATCH 1/3] ARM: at91: add cpu.h In-Reply-To: <1434372182-8967-2-git-send-email-hs@denx.de> References: <1434372182-8967-1-git-send-email-hs@denx.de> <1434372182-8967-2-git-send-email-hs@denx.de> Message-ID: <201507210359.07022.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, June 15, 2015 at 02:42:59 PM, Heiko Schocher wrote: > add cpu.h from linux: > > 7538ec7d1e5: ARM: at91: remove no-MMU at91x40 support > > so it is easier to port linux code, which is based on it. > > Signed-off-by: Heiko Schocher > --- > > arch/arm/mach-at91/include/mach/cpu.h | 149 > ++++++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) > create mode 100644 arch/arm/mach-at91/include/mach/cpu.h > > diff --git a/arch/arm/mach-at91/include/mach/cpu.h > b/arch/arm/mach-at91/include/mach/cpu.h new file mode 100644 > index 0000000..a5e698d > --- /dev/null > +++ b/arch/arm/mach-at91/include/mach/cpu.h > @@ -0,0 +1,149 @@ > +/* > + * from linux: > + * 7538ec7d1e5: ARM: at91: remove no-MMU at91x40 support > + * > + * arch/arm/mach-at91/include/mach/cpu.h > + * > + * Copyright (C) 2006 SAN People > + * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD > + * > + * SPDX-License-Identifier: GPL-2.0+ > + * > + */ > + > +#ifndef __AT91_MACH_CPU_H__ > +#define __AT91_MACH_CPU_H__ > + > +#ifdef CONFIG_AT91RM9200 > +#define cpu_is_at91rm9200() (1) > +#else > +#define cpu_is_at91rm9200() (0) > +#endif The () are not needed . Best regards, Marek Vasut