aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/i8k.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-06-21 11:08:12 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-09 19:41:36 -0400
commit7b88344631536cdc258b83c7a67f9117dd05e208 (patch)
tree5af1246574fef7ec4d5eaa89a94951c9d44c7980 /drivers/char/i8k.c
parentd5d222605503dd39513b3baeb9475ddf316511d7 (diff)
i8k: Add support for Dell Precision 490 and Latitude D520
Both systems need non-standard parameters for fan multiplier and maximum fan speed. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Cc: Andreas Mohr <andi@lisas.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/i8k.c')
-rw-r--r--drivers/char/i8k.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/char/i8k.c b/drivers/char/i8k.c
index 6a6c085efa69..4e10c4b3c8e3 100644
--- a/drivers/char/i8k.c
+++ b/drivers/char/i8k.c
@@ -648,11 +648,21 @@ struct i8k_config_data {
648}; 648};
649 649
650enum i8k_configs { 650enum i8k_configs {
651 DELL_LATITUDE_D520,
652 DELL_PRECISION_490,
651 DELL_STUDIO, 653 DELL_STUDIO,
652 DELL_XPS_M140, 654 DELL_XPS_M140,
653}; 655};
654 656
655static const struct i8k_config_data i8k_config_data[] = { 657static const struct i8k_config_data i8k_config_data[] = {
658 [DELL_LATITUDE_D520] = {
659 .fan_mult = 1,
660 .fan_max = I8K_FAN_TURBO,
661 },
662 [DELL_PRECISION_490] = {
663 .fan_mult = 1,
664 .fan_max = I8K_FAN_TURBO,
665 },
656 [DELL_STUDIO] = { 666 [DELL_STUDIO] = {
657 .fan_mult = 1, 667 .fan_mult = 1,
658 .fan_max = I8K_FAN_HIGH, 668 .fan_max = I8K_FAN_HIGH,
@@ -686,6 +696,14 @@ static struct dmi_system_id i8k_dmi_table[] __initdata = {
686 }, 696 },
687 }, 697 },
688 { 698 {
699 .ident = "Dell Latitude D520",
700 .matches = {
701 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
702 DMI_MATCH(DMI_PRODUCT_NAME, "Latitude D520"),
703 },
704 .driver_data = (void *)&i8k_config_data[DELL_LATITUDE_D520],
705 },
706 {
689 .ident = "Dell Latitude 2", 707 .ident = "Dell Latitude 2",
690 .matches = { 708 .matches = {
691 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), 709 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
@@ -707,6 +725,15 @@ static struct dmi_system_id i8k_dmi_table[] __initdata = {
707 }, 725 },
708 }, 726 },
709 { 727 {
728 .ident = "Dell Precision 490",
729 .matches = {
730 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
731 DMI_MATCH(DMI_PRODUCT_NAME,
732 "Precision WorkStation 490"),
733 },
734 .driver_data = (void *)&i8k_config_data[DELL_PRECISION_490],
735 },
736 {
710 .ident = "Dell Precision", 737 .ident = "Dell Precision",
711 .matches = { 738 .matches = {
712 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), 739 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),