ARCH: EXYNOS: add support to match product id
Subsystems (2)
PATCH v2 1/1 ARCH: EXYNOS: add support to match product id
From: Minkyu Kang <[email protected]>
Based upon single SoC there can be multiple varients. This patch add support to match the complete product ID.
---
Changes from v1:
- Author name changed
arch/arm/include/asm/arch-exynos/cpu.h | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/include/asm/arch-exynos/cpu.h +9 -0
@@ -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) \ { \
Signature · 1 line
1.7.9.5
PATCH v2 1/1 ARCH: EXYNOS: add support to match product id
Hi Chander,
Quoted 3 lines · Chander Kashyap
From: Minkyu Kang <[email protected]>
Based upon single SoC there can be multiple varients.
Typo here (varients => variants)
Quoted 19 lines
This patch add support to match the complete product ID.
Signed-off-by Chander Kashyap <[email protected]>---
Changes from v1:
- Author name changedarch/arm/include/asm/arch-exynos/cpu.h | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm/include/asm/arch-exynos/cpu.h +2
-0@@ -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) \
arch/arm/include/asm/arch-exynos/cpu.h static inline int cpu_is_##type(void) \ · line 153
Quoted 10 lines
arch/arm/include/asm/arch-exynos/cpu.h +7
-0+{ \ +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) \ { \
Amicalement,
Signature · 1 line
Albert.
PATCH v2 1/1 ARCH: EXYNOS: add support to match product id
Hi Albert,
Thanks.
Quoted 10 lines · Albert ARIBAUD
Hi Chander,
Quoted 3 lines · Chander Kashyap
From: Minkyu Kang <[email protected]>
Based upon single SoC there can be multiple varients.
Typo here (varients => variants)
I will fix it.
Signature · 2 lines
with warm regards, Chander Kashyap