From patchwork Wed Feb 12 08:37:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1236696 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48HY1p4Xdmz9sPJ; Wed, 12 Feb 2020 19:38:06 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1j1nX1-00043F-FW; Wed, 12 Feb 2020 08:38:03 +0000 Received: from mail-pj1-f67.google.com ([209.85.216.67]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1j1nX0-00042Y-D5 for kernel-team@lists.ubuntu.com; Wed, 12 Feb 2020 08:38:02 +0000 Received: by mail-pj1-f67.google.com with SMTP id m13so581902pjb.2 for ; Wed, 12 Feb 2020 00:38:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DKuZuxIZfVuELH2YrX0tdm8mkBmG1Wu7Ym98DZ3w4jg=; b=pXDd8BrP8kXYIKR6fxEZmvLu42a09Vwb3UHAuSskEVEktyYEGSiFk74GB5OQoopDVf uV6hiFBCjWCiVGDOHApa3OO2EGeHKq0LvtrqOWf9w8SfnHoWHcLZ+1X4TGxxFyqXTkTv DyypjVX0zKAAp3jLCY0Pn+s6MJPn6RqwHkP3hQf1LrRHW4IM9GJaQjTT55ut3Xl7zw0o reiX57BEE+hb+I2AL8Y52K1Tn7UZI566+/+rZlgAYfXQG/zujJ0/9lQ3jj8/j7XwtL0R 0fAVOwBs2UIy+XMk+dqTF8zUmVMXFL9WF1MoR2esPFHm7MsqCV6mdNR92F8UI9+ocGKk 9nKQ== X-Gm-Message-State: APjAAAVl5VtqHUYzgaa9K4dCNJxe25eA6bnry++/U1BW0wjTfWBRYz/K egDzEysdbE988ceW6SSSFbDFSjvMvsI= X-Google-Smtp-Source: APXvYqzPrQsImqTrdsA9qOlEifIGT9zGyxXTiwkgAG++bZxGmSOaKJVLiaYgq7nBswY4MylE5s6lkw== X-Received: by 2002:a17:90a:a409:: with SMTP id y9mr8700760pjp.119.1581496680536; Wed, 12 Feb 2020 00:38:00 -0800 (PST) Received: from localhost ([2001:67c:1560:8007::aac:c088]) by smtp.gmail.com with ESMTPSA id y23sm7004355pfn.101.2020.02.12.00.37.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2020 00:37:59 -0800 (PST) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [SRU][B/E/F/U][PATCH 1/1] thermal: intel: intel_pch_thermal: Add Comet Lake (CML) platform support Date: Wed, 12 Feb 2020 16:37:42 +0800 Message-Id: <20200212083742.2138718-2-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200212083742.2138718-1-vicamo.yang@canonical.com> References: <20200212083742.2138718-1-vicamo.yang@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Gayatri Kammela BugLink: https://bugs.launchpad.net/bugs/1853219 Add Comet Lake to the list of the platforms to support intel_pch_thermal driver. Cc: Zhang rui Cc: Srinivas Pandruvada Signed-off-by: Gayatri Kammela Acked-by: Zhang Rui Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20191211200043.4985-1-gayatri.kammela@intel.com (cherry picked from commit 35709c4ee772afc3818cd6d42d123d608feeaa33) Signed-off-by: You-Sheng Yang --- drivers/thermal/intel/intel_pch_thermal.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/thermal/intel/intel_pch_thermal.c b/drivers/thermal/intel/intel_pch_thermal.c index 4f0bb8f502e1..9356f3a7f961 100644 --- a/drivers/thermal/intel/intel_pch_thermal.c +++ b/drivers/thermal/intel/intel_pch_thermal.c @@ -23,6 +23,7 @@ #define PCH_THERMAL_DID_SKL_H 0xA131 /* Skylake PCH 100 series */ #define PCH_THERMAL_DID_CNL 0x9Df9 /* CNL PCH */ #define PCH_THERMAL_DID_CNL_H 0xA379 /* CNL-H PCH */ +#define PCH_THERMAL_DID_CML_H 0X06F9 /* CML-H PCH */ /* Wildcat Point-LP PCH Thermal registers */ #define WPT_TEMP 0x0000 /* Temperature */ @@ -272,6 +273,7 @@ enum board_ids { board_wpt, board_skl, board_cnl, + board_cml, }; static const struct board_info { @@ -294,6 +296,10 @@ static const struct board_info { .name = "pch_cannonlake", .ops = &pch_dev_ops_wpt, }, + [board_cml] = { + .name = "pch_cometlake", + .ops = &pch_dev_ops_wpt, + } }; static int intel_pch_thermal_probe(struct pci_dev *pdev, @@ -398,6 +404,8 @@ static const struct pci_device_id intel_pch_thermal_id[] = { .driver_data = board_cnl, }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_CNL_H), .driver_data = board_cnl, }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_CML_H), + .driver_data = board_cml, }, { 0, }, }; MODULE_DEVICE_TABLE(pci, intel_pch_thermal_id);