ARM: SAMSUNG: Introduce generic Exynos4 and 5 helpers
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 20 Mar 2014 17:00:21 +0000 (02:00 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Thu, 20 Mar 2014 17:00:21 +0000 (02:00 +0900)
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>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/plat-samsung/include/plat/cpu.h

index 335beb3413556637510b10ced41cc7f0a62f0b48..4763f11744bccea8cfe5a742a24c502e7d1cb8be 100644 (file)
@@ -160,6 +160,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