diff options
author | Minkyu Kang <mk7.kang@samsung.com> | 2012-10-15 03:06:32 +0000 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2016-04-11 12:53:15 +0900 |
commit | 08413d96d642bc0364a849fa33df9f95b92a98ef (patch) | |
tree | caebe8ef4f5f9e5c030d67d3b06f540ecba29c97 | |
parent | 40342008fbc2443b1fec7f2a6f8f83ab1b24ec29 (diff) | |
download | u-boot-artik-08413d96d642bc0364a849fa33df9f95b92a98ef.tar.gz u-boot-artik-08413d96d642bc0364a849fa33df9f95b92a98ef.tar.bz2 u-boot-artik-08413d96d642bc0364a849fa33df9f95b92a98ef.zip |
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>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Conflicts:
arch/arm/include/asm/arch-exynos/cpu.h
Change-Id: I91ba4b23035a1fb8212d80afbaf3eb048476e255
-rw-r--r-- | arch/arm/include/asm/arch-exynos/cpu.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-exynos/cpu.h b/arch/arm/include/asm/arch-exynos/cpu.h index 8952dabf6..ca36b8c0a 100644 --- a/arch/arm/include/asm/arch-exynos/cpu.h +++ b/arch/arm/include/asm/arch-exynos/cpu.h @@ -320,6 +320,25 @@ static inline int exynos_pkg_is_##type(void) \ IS_SAMSUNG_PKG_TYPE(pop, 0x2) +#define IS_EXYNOS_TYPE(type, id) \ +static inline int proid_is_##type(void) \ +{ \ + return s5p_cpu_id == id; \ +} + +IS_EXYNOS_TYPE(exynos3250, 0x3250) +IS_EXYNOS_TYPE(exynos4210, 0x4210) +IS_EXYNOS_TYPE(exynos4212, 0x4212) +IS_EXYNOS_TYPE(exynos4412, 0x4412) +IS_EXYNOS_TYPE(exynos4415, 0x4415) +IS_EXYNOS_TYPE(exynos5250, 0x5250) +IS_EXYNOS_TYPE(exynos5260, 0x5260) +IS_EXYNOS_TYPE(exynos5410, 0x5410) +IS_EXYNOS_TYPE(exynos5420, 0x5420) +IS_EXYNOS_TYPE(exynos5422, 0x5422) +IS_EXYNOS_TYPE(exynos5800, 0x5422) +IS_EXYNOS_TYPE(exynos5430, 0x5430) + #define SAMSUNG_BASE(device, base) \ static inline unsigned int samsung_get_base_##device(void) \ { \ |