Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1584240ybj; Fri, 8 May 2020 05:00:22 -0700 (PDT) X-Google-Smtp-Source: APiQypJt5NAwOxkr7hq890M86COr1xAcTuQf1gUQqQ3YDCRuOO9UMiwdJouUyohVdjEYbp+Zck1u X-Received: by 2002:a17:906:391:: with SMTP id b17mr1515974eja.91.1588939222178; Fri, 08 May 2020 05:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588939222; cv=none; d=google.com; s=arc-20160816; b=f5q2FWDgwWAfDN7SGJbUdWPd1Q9K92RWUVmCRqGJINwp6VQTJl0Uc15rkT4eGnNwHB nbVv84GD/XaskfUFm+7AbvcOpGomJ9n5LmmpShvJXpXfa50N+bYh12i1VUAtO6g3/2Bj 1vSt/DhEmmi+bAxZkEyfjxnoIdoJTlpFDIiD2QxmCV6jmyUwFo0EN7HH2vYrRhDgtpgi F0ndmVEW5M54xpBlln/q6iXxDe/0ZgE2dMDg9UvhzY+EMcTPNZVlf2I2NNrdN8+4H8u+ 2alg/GjxhrFDYL76srdYLGL5b1LyCLfiH8i0F4XkqEl3guc1PjWpFd//yxT91ry/WnfH /Maw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=UX+6Ye/9fpAa4sE711pT7nAm6BbIFUeRUKOSzehsehY=; b=wWQ6pBHB5fevBCzYC3sJ+ndNR+sYXwP2qOn3q3KV+WMbiDdvr5HNrUG47a4ysZleOS GYQ3LocXEBPKGI+WxXGBOGazLUyGbM+k1o1R84H1K8JYEuS9qJnth8q7zY7jPQBdbWHK Qt3qqG11QhoBLmk2+Z4bwRwQgvHqKLmxG4O6EuMENMqqwyHqAyVvTkjjWJT0Jw3wrodX 3CDxiuHx45haSD/hpZWSbtjJ81H4cTNB7mDUOVba3uBWKkcoAao+VWlUNG8iozn+okiw 37vkmfoz6g+8j1uvbbF71cGjk3ukZrQY784Nb4vM5W9Wku7WoY3o1FBl6VQ8tyVuH2H/ g4ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci25si749299ejb.476.2020.05.08.04.59.57; Fri, 08 May 2020 05:00:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727805AbgEHLz3 (ORCPT + 99 others); Fri, 8 May 2020 07:55:29 -0400 Received: from mail.loongson.cn ([114.242.206.163]:49584 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727783AbgEHLz1 (ORCPT ); Fri, 8 May 2020 07:55:27 -0400 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxX92ZSLVebikyAA--.9S4; Fri, 08 May 2020 19:55:06 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer , Huacai Chen , Jiaxun Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: [PATCH 2/3] MIPS: Loongson: Add hwmon support for generic CPU Date: Fri, 8 May 2020 19:55:03 +0800 Message-Id: <1588938904-924-3-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1588938904-924-1-git-send-email-yangtiezhu@loongson.cn> References: <1588938904-924-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf9DxX92ZSLVebikyAA--.9S4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GvfC2KfnxnUUI43ZEXa7sRRVc_JUUUUU== X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add PRID_IMP_LOONGSON_64G case to enable hwmon support for Loongson generic CPU such as 3A4000 and newer CPU. Signed-off-by: Tiezhu Yang --- drivers/platform/mips/cpu_hwmon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/mips/cpu_hwmon.c b/drivers/platform/mips/cpu_hwmon.c index add5f52..7b4bde1 100644 --- a/drivers/platform/mips/cpu_hwmon.c +++ b/drivers/platform/mips/cpu_hwmon.c @@ -43,6 +43,7 @@ int loongson3_cpu_temp(int cpu) break; case PRID_REV_LOONGSON3A_R3_0: case PRID_REV_LOONGSON3A_R3_1: + case PRID_IMP_LOONGSON_64G: default: reg = (reg & 0xffff)*731/0x4000 - 273; break; -- 2.1.0