From patchwork Tue Feb 2 02:28:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mario Limonciello X-Patchwork-Id: 8185611 Return-Path: X-Original-To: patchwork-platform-driver-x86@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E4346BEEE5 for ; Tue, 2 Feb 2016 02:33:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2C37A2024D for ; Tue, 2 Feb 2016 02:33:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0675C20259 for ; Tue, 2 Feb 2016 02:33:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754073AbcBBCc7 (ORCPT ); Mon, 1 Feb 2016 21:32:59 -0500 Received: from ausc60ps301.us.dell.com ([143.166.148.206]:24798 "EHLO ausc60ps301.us.dell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754070AbcBBCc6 (ORCPT ); Mon, 1 Feb 2016 21:32:58 -0500 DomainKey-Signature: s=smtpout; d=dell.com; c=nofws; q=dns; h=X-LoopCount0:X-IronPort-AV:From:To:Cc:Subject:Date: Message-Id:X-Mailer:In-Reply-To:References; b=CANVkZarpSJi6159eNC5uYcQTdPBc/oBhR+qCwMT4hoHXjhkSYXTbRXY yzbKByhOs2rITiNNA99OrdcjUqYwj1O0yNlZOICEPRneWH9JUcX242vWP QvsJ2id9y3HlgJLq5KHTpBiQI5J1kQPB0t+otOOUbCdm4i0yFGA6wA1zv A=; DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1454380378; x=1485916378; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=KC/Z70i7kRJd9NUZvTaifN4NIUJOQK1Ut0g3QtgHZJk=; b=G2lLP5lWoLHiL+tGm2tW5umquzYFuW6EoXt3G2Hfrxfea5ndf8FzAIr6 k8fVOksOKdtPngy21H4E56EhK3oY1ALlBY4mlfoQ2OvhMYl6r4DFvjktD PE3xjilzfAMvZde0SjXR0W8HXglaSnbg9SonDoSIigwPVcwn2bMuN0Yz0 8=; X-LoopCount0: from 10.209.151.17 X-IronPort-AV: E=Sophos;i="5.22,383,1449554400"; d="scan'208";a="783904408" From: Mario Limonciello To: dvhart@infradead.org Cc: LKML , platform-driver-x86@vger.kernel.org, Mario Limonciello Subject: [PATCH v2 2/5] Add support for new platform: X51-R3 Date: Mon, 1 Feb 2016 20:28:48 -0600 Message-Id: <1454380131-24662-3-git-send-email-mario_limonciello@dell.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454380131-24662-1-git-send-email-mario_limonciello@dell.com> References: <1454380131-24662-1-git-send-email-mario_limonciello@dell.com> Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The X51-R3 is in the X51 family. It includes 3 internal lighting zones as well as is the first AW desktop that includes support for a graphics amplifier. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c index a8750ed..8e8ea4f 100644 --- a/drivers/platform/x86/alienware-wmi.c +++ b/drivers/platform/x86/alienware-wmi.c @@ -69,11 +69,16 @@ static struct quirk_entry quirk_unknown = { .hdmi_mux = 0, }; -static struct quirk_entry quirk_x51_family = { +static struct quirk_entry quirk_x51_r1_r2 = { .num_zones = 3, .hdmi_mux = 0. }; +static struct quirk_entry quirk_x51_r3 = { + .num_zones = 4, + .hdmi_mux = 0, +}; + static struct quirk_entry quirk_asm100 = { .num_zones = 2, .hdmi_mux = 1, @@ -88,12 +93,12 @@ static int __init dmi_matched(const struct dmi_system_id *dmi) static const struct dmi_system_id alienware_quirks[] __initconst = { { .callback = dmi_matched, - .ident = "Alienware X51 R1", + .ident = "Alienware X51 R3", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Alienware"), - DMI_MATCH(DMI_PRODUCT_NAME, "Alienware X51"), + DMI_MATCH(DMI_PRODUCT_NAME, "Alienware X51 R3"), }, - .driver_data = &quirk_x51_family, + .driver_data = &quirk_x51_r3, }, { .callback = dmi_matched, @@ -102,7 +107,16 @@ static const struct dmi_system_id alienware_quirks[] __initconst = { DMI_MATCH(DMI_SYS_VENDOR, "Alienware"), DMI_MATCH(DMI_PRODUCT_NAME, "Alienware X51 R2"), }, - .driver_data = &quirk_x51_family, + .driver_data = &quirk_x51_r1_r2, + }, + { + .callback = dmi_matched, + .ident = "Alienware X51 R1", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Alienware"), + DMI_MATCH(DMI_PRODUCT_NAME, "Alienware X51"), + }, + .driver_data = &quirk_x51_r1_r2, }, { .callback = dmi_matched,