From patchwork Tue Sep 25 09:03:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 147417 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp473287lji; Tue, 25 Sep 2018 02:05:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV60KCdo7yeS3HGXPcbPvVtNEDpre06SMumskivHUSycMP90ztkpVQBv5YV03BKIT+LXmGZVn X-Received: by 2002:a62:c08b:: with SMTP id g11-v6mr117481pfk.72.1537866301290; Tue, 25 Sep 2018 02:05:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537866301; cv=none; d=google.com; s=arc-20160816; b=vqEMruxaPADlMLlkR348gvkJB/8KtBcmoBuRJShhOhipWnVBAdFzLHAFli50/dmhFQ HPqw1qTxINDVW3lQH9pGDvyNH35fqrewHr6HoIgaLApuRbOE/ChC+VQuFslicGVTjgVy 8GqvG58FHJpmz88dfDq/zyOGwLSboXcbYe0r5ZJbOWXe4wSRGD9tz8gkvQRqfkaaz5wU Yk7v6lhPUlXseBVGLO10n9G4gqfb7l79FHdOfszxKVbW0XoMX5isxx0COD5BAS1SlW3N 0zxMDNBF1/M6HIcURgsF6BhSsoubyx4mnxugSGffwUs/OyScDLEH5RSR7SsHyAtEO7Eo kURQ== 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:dkim-signature; bh=xaKoq2Z5i+AH80JWe8GKSoRR6ISgaXZtO2Gfftl5H7k=; b=vip/cu8SjALx4sLLZO+rP9s7HhptX+kRyNKe56922FwYIs6qyYNlRBO5GQ9TWI7dt8 u3rSN+j8+oOYUX7R5jkR0xSAV5nk0QFTbfMqm7s9IHvmDG4QRUoNk0N62gKcMcgy0g+P KmVq4cGpOeVEIz5tYd/A7zD5sfxzu8HY7NxVEwfoU+yPZlm/7UmEF0tZXx/HzzPQ5AX0 00ppzK4Gj68nbqVU3AwgEiJgPvft/5NcCFIOiIlPZc0rJSi2BjZQA7OiMM6rj8WqI6ZF 6qthmXEbeg/MkfiJYeMM5SYJA9IzDngcOn//ssZ93i4JQ487GnkWu23Et29yvXsB6Qhk 1aag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ewS1y75l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 75-v6si1753115pfy.169.2018.09.25.02.05.01; Tue, 25 Sep 2018 02:05:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ewS1y75l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728927AbeIYPLa (ORCPT + 32 others); Tue, 25 Sep 2018 11:11:30 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39806 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727550AbeIYPL3 (ORCPT ); Tue, 25 Sep 2018 11:11:29 -0400 Received: by mail-wr1-f68.google.com with SMTP id s14-v6so22457168wrw.6 for ; Tue, 25 Sep 2018 02:04:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xaKoq2Z5i+AH80JWe8GKSoRR6ISgaXZtO2Gfftl5H7k=; b=ewS1y75l1+/fHRqN/ts2a8WT3bknw2zaVcpHBeb2sONr4psMZ1KR2jC/1E204J2bpL S/QO/x51Ws1NGos9hHrjUx4/n0dJa3KuNN6u68uOALxcth+qHAPDFFfKN19QejfUDfn0 L6QMSU13bwzIrbYBsKJFjqM1OQ01k67v/XA8o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xaKoq2Z5i+AH80JWe8GKSoRR6ISgaXZtO2Gfftl5H7k=; b=OMm2WqwMQj+XipulWS2umt0uO5WAHzgcNb+p1IhgflLQgqpzQmQesXEBP2OtcvyIsG ZyfZVk77FenUHm4nGo+ifmvN4qaxKu6mn5j/+7ISgnWfUW0tXBz+cCGDBFHLaPWWMsmX 7WHV/EBCQUDNA1Sxs5SKbxGAlgOZiz3WYAWTvKN2kb+AfQrVgLRUUBTqavKIAB61Hnom W5FuBP8ctzCrcpPe5zjJISW1pCIn4IhW02hrgmMrLdtLPtAbx7JsNpUt1s/Q1EBkitQC Cc2BcrZTgfsde5ownN55/d8qrbEUrGeTrFUfaU7rFQqNzZpRrxpddRIJLFO9FaSdJBam lCzA== X-Gm-Message-State: ABuFfoiYt9kMJ27rAfmvDacIim2e/waMNHfxM2JyWfX5aaCR0MGEH22F /yvUjEHr+WCmW51VbtsGW/12ig== X-Received: by 2002:adf:a599:: with SMTP id g25-v6mr90065wrc.88.1537866295905; Tue, 25 Sep 2018 02:04:55 -0700 (PDT) Received: from localhost.localdomain (251.150.136.77.rev.sfr.net. [77.136.150.251]) by smtp.gmail.com with ESMTPSA id y206-v6sm1523828wmg.14.2018.09.25.02.04.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Sep 2018 02:04:55 -0700 (PDT) From: Daniel Lezcano To: edubezval@gmail.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, daniel.lezcano@linaro.org, leo.yan@linaro.org, Zhang Rui Subject: [PATCH 12/14] thermal/drivers/hisi: Add more sensors channel Date: Tue, 25 Sep 2018 11:03:10 +0200 Message-Id: <1537866192-12320-13-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537866192-12320-1-git-send-email-daniel.lezcano@linaro.org> References: <1537866192-12320-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the sensor channels id for the little, g3d and modem. Signed-off-by: Daniel Lezcano --- drivers/thermal/hisi_thermal.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.7.4 diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c index 87d8a13..ba89cb9 100644 --- a/drivers/thermal/hisi_thermal.c +++ b/drivers/thermal/hisi_thermal.c @@ -56,7 +56,12 @@ #define HI3660_TEMP_LAG (4000) #define HI6220_CLUSTER0_SENSOR 2 +#define HI6220_CLUSTER1_SENSOR 1 + +#define HI3660_LITTLE_SENSOR 0 #define HI3660_BIG_SENSOR 1 +#define HI3660_G3D_SENSOR 2 +#define HI3660_MODEM_SENSOR 3 struct hisi_thermal_data;