Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4151261rwl; Sat, 7 Jan 2023 12:05:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXuwewQudIsGlb71Vk5C+RlrFb3u28+DkNhp+8bF9kSJaNn0AtjGUS/EPbxZABaB/QPEgaOQ X-Received: by 2002:a17:907:72d3:b0:7c0:fd1e:972e with SMTP id du19-20020a17090772d300b007c0fd1e972emr66359091ejc.46.1673121904228; Sat, 07 Jan 2023 12:05:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673121904; cv=none; d=google.com; s=arc-20160816; b=f3kui1IsxXTQourwcWCsHcucDpTLWhWLusYnFhCGsCpzuGWA69HwGxEhoeaowWUE3l H3LHEI4iINAKYee76ZwxKdLx0JedFU1GWZJYktE86u/sUGDG7XThn4z4Ei69XD6GqZSf lJkZFpONssIBz+LWQjGBN8hq2LyMd8duhXaaxHcwD1GristN3Yip4Ami+CR4eAGP+1my /K22T6C2ayXYi4Sg84wKFOnDZYbnkKQhISUrEu4vZnit5f3c2bvAOiFQgkKmCyoKKO6G k+EZ2p2jvi50r5cOBwJ7NXIRwmn/3vU1Rs517I30DxMCnbIQpMZpTwN36jeWFAc8ylkj ZjBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wjoYBhHb1xemkHjwyaOaf4Lbus52EEftky0kl8Q/6rI=; b=kIWcGK07JvQGrjvd+xUxd/GteHLw6AjddykMPbVtTz1+NOs+CfnVti3NA7/IIS4dAY Pu+2DAWyNUh4ssNvf61GmtPjxjPhns8sL2Zv/LDdZnW/DfK89xUuZok+DQQvrYQuVUFY szgy5O9cocRzXml0m0OlCdlNt9cKqiOT9sD5i/Zs0Ak5ssHp2uRCi+PF7EDTJsnqAyNF gdUW1zeAFPrgpd9n/Bk5dMJiRsAlq5SSCmziR/OPCgoqCMtaYp+qXAMsRXpj8ZGfsT3n ZW417M8DUIBaPArtKlFkb+7eJjdeO/dawEh6wK6zzDxOlmOA4SlQfW9UM8Llm+DKF5jn bTzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux4.de header.s=linux4 header.b=yWsFb7a2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux4.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ww2-20020a170907084200b0084cbde35b49si5171659ejb.990.2023.01.07.12.04.51; Sat, 07 Jan 2023 12:05:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux4.de header.s=linux4 header.b=yWsFb7a2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux4.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232151AbjAGTm4 (ORCPT + 53 others); Sat, 7 Jan 2023 14:42:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbjAGTmy (ORCPT ); Sat, 7 Jan 2023 14:42:54 -0500 X-Greylist: delayed 601 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 07 Jan 2023 11:42:52 PST Received: from linux4.de (de-fsn1.linux4.de [88.99.243.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40F8E48297; Sat, 7 Jan 2023 11:42:52 -0800 (PST) Received: from localhost.localdomain (unknown [IPv6:2a02:8071:3183:b960::2]) by linux4.de (Postfix) with ESMTPSA id 8283F1A80538; Sat, 7 Jan 2023 20:26:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux4.de; s=linux4; t=1673119602; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=wjoYBhHb1xemkHjwyaOaf4Lbus52EEftky0kl8Q/6rI=; b=yWsFb7a2LNklNaGRFS/xeiEjljfEy0SJqSM3dHax0aO/7/hFjWVR4wBN+fPDa/ecHZVxJ9 Xfav2/hz9h9zoeO7o4XkXtxuOv2znU9PILbniI1CKx/STrLf5r5L97NYJacZ4RyJv14tIi Q3PiI8n7DqBhtbQIgJf+yJfWDCPn3FU= From: Tim Zimmermann To: Tushar Dave , Zhang Rui Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Tim Zimmermann Subject: [PATCH] thermal: intel: pch: Add support for Wellsburg PCH Date: Sat, 7 Jan 2023 20:25:13 +0100 Message-Id: <20230107192513.118172-1-tim@linux4.de> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=tim@linux4.de smtp.mailfrom=tim@linux4.de X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds the PCI ID for the Wellsburg C610 series chipset PCH. The driver can read the temperature from the Wellsburg PCH with only the PCI ID added and no other modifications. Signed-off-by: Tim Zimmermann --- 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 dabf11a687a1..9e27f430e034 100644 --- a/drivers/thermal/intel/intel_pch_thermal.c +++ b/drivers/thermal/intel/intel_pch_thermal.c @@ -29,6 +29,7 @@ #define PCH_THERMAL_DID_CNL_LP 0x02F9 /* CNL-LP PCH */ #define PCH_THERMAL_DID_CML_H 0X06F9 /* CML-H PCH */ #define PCH_THERMAL_DID_LWB 0xA1B1 /* Lewisburg PCH */ +#define PCH_THERMAL_DID_WBG 0x8D24 /* Wellsburg PCH */ /* Wildcat Point-LP PCH Thermal registers */ #define WPT_TEMP 0x0000 /* Temperature */ @@ -350,6 +351,7 @@ enum board_ids { board_cnl, board_cml, board_lwb, + board_wbg, }; static const struct board_info { @@ -380,6 +382,10 @@ static const struct board_info { .name = "pch_lewisburg", .ops = &pch_dev_ops_wpt, }, + [board_wbg] = { + .name = "pch_wellsburg", + .ops = &pch_dev_ops_wpt, + }, }; static int intel_pch_thermal_probe(struct pci_dev *pdev, @@ -495,6 +501,8 @@ static const struct pci_device_id intel_pch_thermal_id[] = { .driver_data = board_cml, }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_LWB), .driver_data = board_lwb, }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_WBG), + .driver_data = board_wbg, }, { 0, }, }; MODULE_DEVICE_TABLE(pci, intel_pch_thermal_id); -- 2.39.0