From patchwork Fri Oct 28 16:11:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asen Dimov X-Patchwork-Id: 122439 X-Patchwork-Delegate: albert.aribaud@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 944971007DB for ; Sat, 29 Oct 2011 03:53:34 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 34AAD298DF; Fri, 28 Oct 2011 18:53:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MXqmU0ihIXHL; Fri, 28 Oct 2011 18:53:31 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DC57E298B1; Fri, 28 Oct 2011 18:53:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4BAE8298B1 for ; Fri, 28 Oct 2011 18:53:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eLjDjTVrEVmN for ; Fri, 28 Oct 2011 18:53:26 +0200 (CEST) X-Greylist: delayed 2552 seconds by postgrey-1.27 at theia; Fri, 28 Oct 2011 18:53:25 CEST X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from localhost.localdomain (sofia30-122.pip.digsys.bg [193.68.122.30]) by theia.denx.de (Postfix) with ESMTPS id 866C329879 for ; Fri, 28 Oct 2011 18:53:25 +0200 (CEST) Received: from localhost.localdomain (asenbox [127.0.0.1]) by localhost.localdomain (8.14.4/8.14.4) with ESMTP id p9SGBCBV028066; Fri, 28 Oct 2011 19:11:12 +0300 Received: (from dimov@localhost) by localhost.localdomain (8.14.4/8.14.4/Submit) id p9SGBCq8028064; Fri, 28 Oct 2011 19:11:12 +0300 From: Asen Chavdarov Dimov To: u-boot@lists.denx.de Date: Fri, 28 Oct 2011 19:11:10 +0300 Message-Id: <1319818270-28002-1-git-send-email-dimov@ronetix.at> X-Mailer: git-send-email 1.7.4.4 Cc: Asen Chavdarov Dimov Subject: [U-Boot] [PATCH] pm9g45: add mach-type localy for the board X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Asen Chavdarov Dimov --- board/ronetix/pm9g45/mach-type.h | 31 +++++++++++++++++++++++++++++++ board/ronetix/pm9g45/pm9g45.c | 1 + 2 files changed, 32 insertions(+), 0 deletions(-) create mode 100644 board/ronetix/pm9g45/mach-type.h diff --git a/board/ronetix/pm9g45/mach-type.h b/board/ronetix/pm9g45/mach-type.h new file mode 100644 index 0000000..3f8902f --- /dev/null +++ b/board/ronetix/pm9g45/mach-type.h @@ -0,0 +1,31 @@ +/* + * This was manually generated from arch/arm/include/asm/mach-types.h + * and add this machine ID removed with commit + * 47af6f61bcd9fdd5dcf389cff0a7406eba756c6. + * Do fix this. + */ + +#ifndef __ASM_ARM_MACH_TYPE_PM9G45_H +#define __ASM_ARM_MACH_TYPE_PM9G45_H + +#ifndef __ASSEMBLY__ +/* The type of machine we're running on */ +extern unsigned int __machine_arch_type; +#endif + +/* see arch/arm/kernel/arch.c for a description of these */ +#define MACH_TYPE_PM9G45 2672 + +#ifdef CONFIG_MACH_PM9G45 +# ifdef machine_arch_type +# undef machine_arch_type +# define machine_arch_type __machine_arch_type +# else +# define machine_arch_type MACH_TYPE_PM9G45 +# endif +# define machine_is_pm9g45() (machine_arch_type == MACH_TYPE_PM9G45) +#else +# define machine_is_pm9g45() (0) +#endif + +#endif diff --git a/board/ronetix/pm9g45/pm9g45.c b/board/ronetix/pm9g45/pm9g45.c index f3374a4..9aff01a 100644 --- a/board/ronetix/pm9g45/pm9g45.c +++ b/board/ronetix/pm9g45/pm9g45.c @@ -28,6 +28,7 @@ */ #include +#include "mach-type.h" #include #include #include