From: sachin.kamat@linaro.org (Sachin Kamat)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/4] ARM: SAMSUNG: Introduce generic Exynos4 and 5 helpers
Date: Wed, 19 Mar 2014 17:55:54 +0530 [thread overview]
Message-ID: <1395231957-22032-2-git-send-email-sachin.kamat@linaro.org> (raw)
In-Reply-To: <1395231957-22032-1-git-send-email-sachin.kamat@linaro.org>
Add helpers to check for Exynos4 and 5 family of SoCs.
This will eliminate comparing long list of SoCs and make
code simpler.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
arch/arm/plat-samsung/include/plat/cpu.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/plat-samsung/include/plat/cpu.h b/arch/arm/plat-samsung/include/plat/cpu.h
index d762533b856f..b9ae39ca1b7f 100644
--- a/arch/arm/plat-samsung/include/plat/cpu.h
+++ b/arch/arm/plat-samsung/include/plat/cpu.h
@@ -166,6 +166,10 @@ IS_SAMSUNG_CPU(exynos5440, EXYNOS5440_SOC_ID, EXYNOS5_SOC_MASK)
# define soc_is_exynos5440() 0
#endif
+#define soc_is_exynos4() (soc_is_exynos4210() || soc_is_exynos4212() || \
+ soc_is_exynos4412())
+#define soc_is_exynos5() (soc_is_exynos5250() || soc_is_exynos5420())
+
#define IODESC_ENT(x) { (unsigned long)S3C24XX_VA_##x, __phys_to_pfn(S3C24XX_PA_##x), S3C24XX_SZ_##x, MT_DEVICE }
#ifndef KHZ
--
1.7.9.5
next prev parent reply other threads:[~2014-03-19 12:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-19 12:25 [PATCH 0/4] Consolidate Exynos machine code Sachin Kamat
2014-03-19 12:25 ` Sachin Kamat [this message]
2014-03-19 12:25 ` [PATCH 2/4] ARM: EXYNOS: Consolidate Exynos4 and 5 machine files Sachin Kamat
2014-03-19 12:25 ` [PATCH 3/4] ARM: EXYNOS: Add generic compatible strings Sachin Kamat
2014-03-19 12:25 ` [PATCH 4/4] ARM: dts: Update Exynos DT files with " Sachin Kamat
2014-03-19 13:29 ` [PATCH 0/4] Consolidate Exynos machine code Arnd Bergmann
2014-03-20 2:06 ` Kukjin Kim
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=1395231957-22032-2-git-send-email-sachin.kamat@linaro.org \
--to=sachin.kamat@linaro.org \
--cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).