From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UGP3J-00028f-El for barebox@lists.infradead.org; Fri, 15 Mar 2013 07:27:45 +0000 Date: Fri, 15 Mar 2013 08:27:44 +0100 From: Sascha Hauer Message-ID: <20130315072744.GA1906@pengutronix.de> References: <1363261919-30335-1-git-send-email-shc_work@mail.ru> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1363261919-30335-1-git-send-email-shc_work@mail.ru> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] ARM: Add CPU detection macros for ARM720 To: Alexander Shiyan Cc: barebox@lists.infradead.org On Thu, Mar 14, 2013 at 03:51:59PM +0400, Alexander Shiyan wrote: > > Signed-off-by: Alexander Shiyan Applied, thanks Sascha > --- > arch/arm/include/asm/system_info.h | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/include/asm/system_info.h b/arch/arm/include/asm/system_info.h > index 56ebb11..13171cc 100644 > --- a/arch/arm/include/asm/system_info.h > +++ b/arch/arm/include/asm/system_info.h > @@ -14,6 +14,9 @@ > #define CPU_ARCH_ARMv6 8 > #define CPU_ARCH_ARMv7 9 > > +#define CPU_IS_ARM720 0x41007200 > +#define CPU_IS_ARM720_MASK 0xff00fff0 > + > #define CPU_IS_ARM920 0x41009200 > #define CPU_IS_ARM920_MASK 0xff00fff0 > > @@ -55,11 +58,13 @@ > #else > #define ARM_ARCH CPU_ARCH_ARMv4T > #endif > +#define cpu_is_arm720() cpu_is_arm(ARM720) > #define cpu_is_arm920() cpu_is_arm(ARM920) > #define cpu_is_pxa250() cpu_is_arm(PXA250) > #define cpu_is_pxa255() cpu_is_arm(PXA255) > #define cpu_is_pxa270() cpu_is_arm(PXA270) > #else > +#define cpu_is_arm720() (0) > #define cpu_is_arm920() (0) > #define cpu_is_pxa250() (0) > #define cpu_is_pxa255() (0) > -- > 1.7.3.4 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox