Skip to contentSkip to conversation

ARCH: EXYNOS: add support to match product id

PATCH Superseded Chander Kashyap 2 participants 3 messages Oct 15, 2012

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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
index 2cd4ae1..2bde10c 100644
@@ -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
#1 lore raw

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.

---
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 +2 -0
index 2cd4ae1..2bde10c 100644
@@ -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.
#2 lore raw

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