* [U-Boot] [PATCH v2] ARCH: EXYNOS: add support to match product id
@ 2012-10-15 11:58 Chander Kashyap
2012-10-15 12:28 ` Albert ARIBAUD
0 siblings, 1 reply; 3+ messages in thread
From: Chander Kashyap @ 2012-10-15 11:58 UTC (permalink / raw)
To: u-boot
From: Minkyu Kang <mk7.kang@samsung.com>
Based upon single SoC there can be multiple varients.
This patch add support to match the complete product ID.
Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
---
Changes from v1:
- Author name changed
arch/arm/include/asm/arch-exynos/cpu.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/include/asm/arch-exynos/cpu.h b/arch/arm/include/asm/arch-exynos/cpu.h
index 2cd4ae1..2bde10c 100644
--- a/arch/arm/include/asm/arch-exynos/cpu.h
+++ b/arch/arm/include/asm/arch-exynos/cpu.h
@@ -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) \
{ \
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* [U-Boot] [PATCH v2] ARCH: EXYNOS: add support to match product id
2012-10-15 11:58 [U-Boot] [PATCH v2] ARCH: EXYNOS: add support to match product id Chander Kashyap
@ 2012-10-15 12:28 ` Albert ARIBAUD
2012-10-15 13:03 ` Chander Kashyap
0 siblings, 1 reply; 3+ messages in thread
From: Albert ARIBAUD @ 2012-10-15 12:28 UTC (permalink / raw)
To: u-boot
Hi Chander,
On Mon, 15 Oct 2012 17:28:23 +0530, Chander Kashyap
<chander.kashyap@linaro.org> wrote:
> From: Minkyu Kang <mk7.kang@samsung.com>
>
> Based upon single SoC there can be multiple varients.
Typo here (varients => variants)
> This patch add support to match the complete product ID.
>
> Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
> ---
> Changes from v1:
> - Author name changed
> arch/arm/include/asm/arch-exynos/cpu.h | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/arch/arm/include/asm/arch-exynos/cpu.h b/arch/arm/include/asm/arch-exynos/cpu.h
> index 2cd4ae1..2bde10c 100644
> --- a/arch/arm/include/asm/arch-exynos/cpu.h
> +++ b/arch/arm/include/asm/arch-exynos/cpu.h
> @@ -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) \
> { \
Amicalement,
--
Albert.
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot] [PATCH v2] ARCH: EXYNOS: add support to match product id
2012-10-15 12:28 ` Albert ARIBAUD
@ 2012-10-15 13:03 ` Chander Kashyap
0 siblings, 0 replies; 3+ messages in thread
From: Chander Kashyap @ 2012-10-15 13:03 UTC (permalink / raw)
To: u-boot
Hi Albert,
Thanks.
On 15 October 2012 17:58, Albert ARIBAUD <albert.u.boot@aribaud.net> wrote:
> Hi Chander,
>
> On Mon, 15 Oct 2012 17:28:23 +0530, Chander Kashyap
> <chander.kashyap@linaro.org> wrote:
>
>> From: Minkyu Kang <mk7.kang@samsung.com>
>>
>> Based upon single SoC there can be multiple varients.
>
> Typo here (varients => variants)
I will fix it.
--
with warm regards,
Chander Kashyap
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-15 13:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 11:58 [U-Boot] [PATCH v2] ARCH: EXYNOS: add support to match product id Chander Kashyap
2012-10-15 12:28 ` Albert ARIBAUD
2012-10-15 13:03 ` Chander Kashyap
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.