diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-03-20 13:00:21 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-03-20 13:00:21 -0400 |
commit | 58553078c1feb40e0a02d7c72ae41dd6b923f231 (patch) | |
tree | 202ad796a6caffa2a2202f24f5da1bc2261b9c37 /arch/arm/plat-samsung/include/plat | |
parent | 7ed30015007c32c006783526dc54a2a88bd5e13b (diff) |
ARM: SAMSUNG: Introduce generic Exynos4 and 5 helpers
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>
Diffstat (limited to 'arch/arm/plat-samsung/include/plat')
-rw-r--r-- | arch/arm/plat-samsung/include/plat/cpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/include/plat/cpu.h b/arch/arm/plat-samsung/include/plat/cpu.h index 335beb341355..4763f11744bc 100644 --- a/arch/arm/plat-samsung/include/plat/cpu.h +++ b/arch/arm/plat-samsung/include/plat/cpu.h | |||
@@ -160,6 +160,10 @@ IS_SAMSUNG_CPU(exynos5440, EXYNOS5440_SOC_ID, EXYNOS5_SOC_MASK) | |||
160 | # define soc_is_exynos5440() 0 | 160 | # define soc_is_exynos5440() 0 |
161 | #endif | 161 | #endif |
162 | 162 | ||
163 | #define soc_is_exynos4() (soc_is_exynos4210() || soc_is_exynos4212() || \ | ||
164 | soc_is_exynos4412()) | ||
165 | #define soc_is_exynos5() (soc_is_exynos5250() || soc_is_exynos5420()) | ||
166 | |||
163 | #define IODESC_ENT(x) { (unsigned long)S3C24XX_VA_##x, __phys_to_pfn(S3C24XX_PA_##x), S3C24XX_SZ_##x, MT_DEVICE } | 167 | #define IODESC_ENT(x) { (unsigned long)S3C24XX_VA_##x, __phys_to_pfn(S3C24XX_PA_##x), S3C24XX_SZ_##x, MT_DEVICE } |
164 | 168 | ||
165 | #ifndef KHZ | 169 | #ifndef KHZ |