Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202505
b: refs/heads/master
c: 14d10f0
h: refs/heads/master
i:
  202503: 2609fef
v: v3
  • Loading branch information
Sreedhara DS authored and Matthew Garrett committed Aug 3, 2010
1 parent 023dade commit afbdf62
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a00cd11b3986f4ab9b43f553785c3f9e8fb64323
refs/heads/master: 14d10f0a48cdfa76773cadcbf0deb233282f6b94
19 changes: 12 additions & 7 deletions trunk/drivers/platform/x86/intel_scu_ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <linux/pm.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <asm/setup.h>
#include <asm/mrst.h>
#include <asm/intel_scu_ipc.h>

/* IPC defines the following message types */
Expand Down Expand Up @@ -78,12 +78,9 @@ struct intel_scu_ipc_dev {

static struct intel_scu_ipc_dev ipcdev; /* Only one for now */

static int platform = 1;
module_param(platform, int, 0);
MODULE_PARM_DESC(platform, "1 for moorestown platform");



#define PLATFORM_LANGWELL 1
#define PLATFORM_PENWELL 2
static int platform; /* Platform type */

/*
* IPC Read Buffer (Read Only):
Expand Down Expand Up @@ -817,6 +814,14 @@ static struct pci_driver ipc_driver = {

static int __init intel_scu_ipc_init(void)
{
if (boot_cpu_data.x86 == 6 &&
boot_cpu_data.x86_model == 0x27 &&
boot_cpu_data.x86_mask == 1)
platform = PLATFORM_PENWELL;
else if (boot_cpu_data.x86 == 6 &&
boot_cpu_data.x86_model == 0x26)
platform = PLATFORM_LANGWELL;

return pci_register_driver(&ipc_driver);
}

Expand Down

0 comments on commit afbdf62

Please sign in to comment.