Skip to content
Snippets Groups Projects
Commit 6fcc059f authored by Minkyu Kang's avatar Minkyu Kang
Browse files

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: default avatarMinkyu Kang <mk7.kang@samsung.com>
Signed-off-by: default avatarChander Kashyap <chander.kashyap@linaro.org>
parent ab23304d
No related branches found
No related tags found
No related merge requests found
...@@ -139,6 +139,15 @@ static inline int cpu_is_##type(void) \ ...@@ -139,6 +139,15 @@ static inline int cpu_is_##type(void) \
IS_SAMSUNG_TYPE(exynos4, 0x4) IS_SAMSUNG_TYPE(exynos4, 0x4)
IS_SAMSUNG_TYPE(exynos5, 0x5) 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) \ #define SAMSUNG_BASE(device, base) \
static inline unsigned int samsung_get_base_##device(void) \ static inline unsigned int samsung_get_base_##device(void) \
{ \ { \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment