[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160603001939.D1D7FC2F@viggo.jf.intel.com>
Date: Thu, 02 Jun 2016 17:19:39 -0700
From: Dave Hansen <dave@...1.net>
To: linux-kernel@...r.kernel.org
Cc: x86@...nel.org, jacob.jun.pan@...el.com,
Dave Hansen <dave@...1.net>, dave.hansen@...ux.intel.com,
jacob.jun.pan@...ux.intel.com, rafael.j.wysocki@...el.com,
srinivas.pandruvada@...ux.intel.com
Subject: [PATCH 09/20] x86, platform: use new Intel model number macros
From: Dave Hansen <dave.hansen@...ux.intel.com>
Remove the open-coded model numbers.
Signed-off-by: Dave Hansen <dave.hansen@...ux.intel.com>
Cc: Jacob Pan <jacob.jun.pan@...ux.intel.com>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@...el.com>
Cc: Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
---
b/arch/x86/include/asm/intel-family.h | 4 ++--
b/arch/x86/platform/atom/punit_atom_debug.c | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff -puN arch/x86/include/asm/intel-family.h~x86-intel-familites-punit arch/x86/include/asm/intel-family.h
--- a/arch/x86/include/asm/intel-family.h~x86-intel-familites-punit 2016-06-02 17:10:30.027247326 -0700
+++ b/arch/x86/include/asm/intel-family.h 2016-06-02 17:10:49.390122378 -0700
@@ -53,9 +53,9 @@
#define INTEL_FAM6_ATOM_PENWELL 0x27
#define INTEL_FAM6_ATOM_CLOVERVIEW 0x35
#define INTEL_FAM6_ATOM_CEDARVIEW 0x36
-#define INTEL_FAM6_ATOM_SILVERMONT1 0x37 /* BayTrail/BYT */
+#define INTEL_FAM6_ATOM_SILVERMONT1 0x37 /* BayTrail/BYT / Valleyview */
#define INTEL_FAM6_ATOM_SILVERMONT2 0x4D /* Avaton/Rangely */
-#define INTEL_FAM6_ATOM_AIRMONT 0x4C /* CherryTrail */
+#define INTEL_FAM6_ATOM_AIRMONT 0x4C /* CherryTrail / Braswell */
#define INTEL_FAM6_ATOM_MERRIFIELD1 0x4A /* Tangier */
#define INTEL_FAM6_ATOM_MERRIFIELD2 0x5A /* Annidale */
#define INTEL_FAM6_ATOM_GOLDMONT 0x5C
diff -puN arch/x86/platform/atom/punit_atom_debug.c~x86-intel-familites-punit arch/x86/platform/atom/punit_atom_debug.c
--- a/arch/x86/platform/atom/punit_atom_debug.c~x86-intel-familites-punit 2016-06-02 17:10:30.029247416 -0700
+++ b/arch/x86/platform/atom/punit_atom_debug.c 2016-06-02 17:10:30.034247642 -0700
@@ -23,6 +23,7 @@
#include <linux/seq_file.h>
#include <linux/io.h>
#include <asm/cpu_device_id.h>
+#include <asm/intel-family.h>
#include <asm/iosf_mbi.h>
/* Power gate status reg */
@@ -143,8 +144,8 @@ static void punit_dbgfs_unregister(void)
(kernel_ulong_t)&drv_data }
static const struct x86_cpu_id intel_punit_cpu_ids[] = {
- ICPU(55, punit_device_byt), /* Valleyview, Bay Trail */
- ICPU(76, punit_device_cht), /* Braswell, Cherry Trail */
+ ICPU(INTEL_FAM6_ATOM_SILVERMONT1, punit_device_byt),
+ ICPU(INTEL_FAM6_ATOM_AIRMONT, punit_device_cht),
{}
};
_
Powered by blists - more mailing lists