summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2012-10-15 03:06:32 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2012-11-15 21:08:19 +0900
commit6fcc059f81e5c4900d22fe0b1e954330ebbeb720 (patch)
tree56f267320918e31232ba13635d5c24b70d0f92a6 /arch
parentab23304dbcbb7d2123e69a8d3e9fccb7dffb894c (diff)
downloadu-boot-imx-6fcc059f81e5c4900d22fe0b1e954330ebbeb720.zip
u-boot-imx-6fcc059f81e5c4900d22fe0b1e954330ebbeb720.tar.gz
u-boot-imx-6fcc059f81e5c4900d22fe0b1e954330ebbeb720.tar.bz2
ARCH: EXYNOS: add support to match product id
Based upon single SoC there can be multiple variants. This patch add support to match the complete product ID. Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/arch-exynos/cpu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-exynos/cpu.h b/arch/arm/include/asm/arch-exynos/cpu.h
index 2cd4ae1..2bde10c 100644
--- a/arch/arm/include/asm/arch-exynos/cpu.h
+++ b/arch/arm/include/asm/arch-exynos/cpu.h
@@ -139,6 +139,15 @@ static inline int cpu_is_##type(void) \
IS_SAMSUNG_TYPE(exynos4, 0x4)
IS_SAMSUNG_TYPE(exynos5, 0x5)
+#define IS_EXYNOS_TYPE(type, id) \
+static inline int proid_is_##type(void) \
+{ \
+ return s5p_cpu_id == id; \
+}
+
+IS_EXYNOS_TYPE(exynos4210, 0x4210)
+IS_EXYNOS_TYPE(exynos5250, 0x5250)
+
#define SAMSUNG_BASE(device, base) \
static inline unsigned int samsung_get_base_##device(void) \
{ \