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 <h...@denx.de> > --- > > 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 > <plagn...@jcrosoft.com> + * > + * 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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot