Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/samsung Redefine IS_EXYNOS4_P() to check for th...



details:   https://anonhg.NetBSD.org/src/rev/710027378d63
branches:  trunk
changeset: 328686:710027378d63
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Sun Apr 13 17:06:02 2014 +0000

description:
Redefine IS_EXYNOS4_P() to check for the product family instead of summing up
variants

diffstat:

 sys/arch/arm/samsung/exynos_var.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r e939c83fd704 -r 710027378d63 sys/arch/arm/samsung/exynos_var.h
--- a/sys/arch/arm/samsung/exynos_var.h Sun Apr 13 15:45:26 2014 +0000
+++ b/sys/arch/arm/samsung/exynos_var.h Sun Apr 13 17:06:02 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exynos_var.h,v 1.1 2014/04/13 02:26:26 matt Exp $ */
+/* $NetBSD: exynos_var.h,v 1.2 2014/04/13 17:06:02 reinoud Exp $ */
 /*-
  * Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -58,7 +58,8 @@
 #define IS_EXYNOS4412_R0_P() \
                        ((EXYNOS_PRODUCT_ID(exynos_soc_id) == 0xe4412) && \
                         (EXYNOS_PRODUCT_REV(exynos_soc_id) == 0))
-#define IS_EXYNOS4_P() (IS_EXYNOS4410 || IS_EXYNOS4412)
+
+#define IS_EXYNOS4_P() (EXYNOS_PRODUCT_FAMILY(exynos_soc_id) == EXYNOS4_PRODUCT_FAMILY)
 
 #define IS_EXYNOS5410_P()      (EXYNOS_PRODUCT_ID(exynos_soc_id) == 0xe5410)
 #define IS_EXYNOS5440_P()      (EXYNOS_PRODUCT_ID(exynos_soc_id) == 0xe5440)



Home | Main Index | Thread Index | Old Index