From patchwork Sat Jan 7 19:25:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Zimmermann X-Patchwork-Id: 640273 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F03F1C46467 for ; Sat, 7 Jan 2023 19:42:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231533AbjAGTmz (ORCPT ); Sat, 7 Jan 2023 14:42:55 -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 Authentication-Results: ORIGINATING; auth=pass smtp.auth=tim@linux4.de smtp.mailfrom=tim@linux4.de Precedence: bulk List-ID: X-Mailing-List: linux-pm@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);