diff options
| -rw-r--r-- | drivers/platform/x86/intel_scu_ipc.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel_scu_ipc.c index bb2f1fba637b..b6a03447ea63 100644 --- a/drivers/platform/x86/intel_scu_ipc.c +++ b/drivers/platform/x86/intel_scu_ipc.c | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | #include <linux/pm.h> | 23 | #include <linux/pm.h> |
| 24 | #include <linux/pci.h> | 24 | #include <linux/pci.h> |
| 25 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
| 26 | #include <asm/setup.h> | 26 | #include <asm/mrst.h> |
| 27 | #include <asm/intel_scu_ipc.h> | 27 | #include <asm/intel_scu_ipc.h> |
| 28 | 28 | ||
| 29 | /* IPC defines the following message types */ | 29 | /* IPC defines the following message types */ |
| @@ -78,12 +78,9 @@ struct intel_scu_ipc_dev { | |||
| 78 | 78 | ||
| 79 | static struct intel_scu_ipc_dev ipcdev; /* Only one for now */ | 79 | static struct intel_scu_ipc_dev ipcdev; /* Only one for now */ |
| 80 | 80 | ||
| 81 | static int platform = 1; | 81 | #define PLATFORM_LANGWELL 1 |
| 82 | module_param(platform, int, 0); | 82 | #define PLATFORM_PENWELL 2 |
| 83 | MODULE_PARM_DESC(platform, "1 for moorestown platform"); | 83 | static int platform; /* Platform type */ |
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | 84 | ||
| 88 | /* | 85 | /* |
| 89 | * IPC Read Buffer (Read Only): | 86 | * IPC Read Buffer (Read Only): |
| @@ -817,6 +814,14 @@ static struct pci_driver ipc_driver = { | |||
| 817 | 814 | ||
| 818 | static int __init intel_scu_ipc_init(void) | 815 | static int __init intel_scu_ipc_init(void) |
| 819 | { | 816 | { |
| 817 | if (boot_cpu_data.x86 == 6 && | ||
| 818 | boot_cpu_data.x86_model == 0x27 && | ||
| 819 | boot_cpu_data.x86_mask == 1) | ||
| 820 | platform = PLATFORM_PENWELL; | ||
| 821 | else if (boot_cpu_data.x86 == 6 && | ||
| 822 | boot_cpu_data.x86_model == 0x26) | ||
| 823 | platform = PLATFORM_LANGWELL; | ||
| 824 | |||
| 820 | return pci_register_driver(&ipc_driver); | 825 | return pci_register_driver(&ipc_driver); |
| 821 | } | 826 | } |
| 822 | 827 | ||
