mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] imx: convert cpu_is to IS_BUILTIN
Date: Fri, 12 Aug 2011 15:32:07 +0200	[thread overview]
Message-ID: <1313155927-30300-2-git-send-email-plagnioj@jcrosoft.com> (raw)
In-Reply-To: <1313155927-30300-1-git-send-email-plagnioj@jcrosoft.com>

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 arch/arm/mach-imx/include/mach/generic.h |   82 ++++++++----------------------
 1 files changed, 21 insertions(+), 61 deletions(-)
 rewrite arch/arm/mach-imx/include/mach/generic.h (73%)

diff --git a/arch/arm/mach-imx/include/mach/generic.h b/arch/arm/mach-imx/include/mach/generic.h
dissimilarity index 73%
index 8ff04fb..54a6bd3 100644
--- a/arch/arm/mach-imx/include/mach/generic.h
+++ b/arch/arm/mach-imx/include/mach/generic.h
@@ -1,61 +1,21 @@
-
-int imx_silicon_revision(void);
-#define IMX27_CHIP_REVISION_1_0   0
-#define IMX27_CHIP_REVISION_2_0   1
-
-#define IMX35_CHIP_REVISION_1_0   0x10
-#define IMX35_CHIP_REVISION_2_0   0x20
-
-u64 imx_uid(void);
-
-
-#ifdef CONFIG_ARCH_IMX1
-#define cpu_is_mx1()	(1)
-#else
-#define cpu_is_mx1()	(0)
-#endif
-
-#ifdef CONFIG_ARCH_IMX21
-#define cpu_is_mx21()	(1)
-#else
-#define cpu_is_mx21()	(0)
-#endif
-
-#ifdef CONFIG_ARCH_IMX25
-#define cpu_is_mx25()	(1)
-#else
-#define cpu_is_mx25()	(0)
-#endif
-
-#ifdef CONFIG_ARCH_IMX27
-#define cpu_is_mx27()	(1)
-#else
-#define cpu_is_mx27()	(0)
-#endif
-
-#ifdef CONFIG_ARCH_IMX31
-#define cpu_is_mx31()	(1)
-#else
-#define cpu_is_mx31()	(0)
-#endif
-
-#ifdef CONFIG_ARCH_IMX35
-#define cpu_is_mx35()	(1)
-#else
-#define cpu_is_mx35()	(0)
-#endif
-
-#ifdef CONFIG_ARCH_IMX51
-#define cpu_is_mx51()	(1)
-#else
-#define cpu_is_mx51()	(0)
-#endif
-
-#ifdef CONFIG_ARCH_IMX53
-#define cpu_is_mx53()	(1)
-#else
-#define cpu_is_mx53()	(0)
-#endif
-
-#define cpu_is_mx23()	(0)
-#define cpu_is_mx28()	(0)
+
+int imx_silicon_revision(void);
+#define IMX27_CHIP_REVISION_1_0   0
+#define IMX27_CHIP_REVISION_2_0   1
+
+#define IMX35_CHIP_REVISION_1_0   0x10
+#define IMX35_CHIP_REVISION_2_0   0x20
+
+u64 imx_uid(void);
+
+
+#define cpu_is_mx1()	IS_BUILTIN(CONFIG_ARCH_IMX1)
+#define cpu_is_mx21()	IS_BUILTIN(CONFIG_ARCH_IMX21)
+#define cpu_is_mx25()	IS_BUILTIN(CONFIG_ARCH_IMX25)
+#define cpu_is_mx27()	IS_BUILTIN(CONFIG_ARCH_IMX27)
+#define cpu_is_mx31()	IS_BUILTIN(CONFIG_ARCH_IMX31)
+#define cpu_is_mx35()	IS_BUILTIN(CONFIG_ARCH_IMX35)
+#define cpu_is_mx51()	IS_BUILTIN(CONFIG_ARCH_IMX51)
+#define cpu_is_mx53()	IS_BUILTIN(CONFIG_ARCH_IMX53)
+#define cpu_is_mx23()	(0)
+#define cpu_is_mx28()	(0)
-- 
1.7.5.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2011-08-12 13:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-12 13:32 [PATCH 1/2] kconfig: sync with linux v3.1-rc1 Jean-Christophe PLAGNIOL-VILLARD
2011-08-12 13:32 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2011-08-15  6:56 ` Sascha Hauer
2011-08-15  7:00   ` Jean-Christophe PLAGNIOL-VILLARD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1313155927-30300-2-git-send-email-plagnioj@jcrosoft.com \
    --to=plagnioj@jcrosoft.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox