From patchwork Thu Mar 23 19:18:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9641825 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D572660327 for ; Thu, 23 Mar 2017 19:19:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9CF5283FD for ; Thu, 23 Mar 2017 19:19:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BEEB02841C; Thu, 23 Mar 2017 19:19:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D224283FD for ; Thu, 23 Mar 2017 19:19:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753358AbdCWTTH (ORCPT ); Thu, 23 Mar 2017 15:19:07 -0400 Received: from mail-wr0-f177.google.com ([209.85.128.177]:36647 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752321AbdCWTTG (ORCPT ); Thu, 23 Mar 2017 15:19:06 -0400 Received: by mail-wr0-f177.google.com with SMTP id u108so154102236wrb.3 for ; Thu, 23 Mar 2017 12:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fFyh7E2Z2LH1UUoLwuXh8drXrbPP05dxWi0x/mYAYbQ=; b=XJG03xMmOKmGKlPvWdhzOe2dtWocMpJyNxmkMmpnEdoFseey7g6AnXmcphEoNSWQv+ PFxCzqi7e5bYFX/637YITvNq9gEl2nWmCw0DAK/SRfZsBZUIG+Pa2P/ege1MGX476Miv x0YPXQhRc6pXFzVwL/sVtdLuibKSRY7yffhtA= 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=fFyh7E2Z2LH1UUoLwuXh8drXrbPP05dxWi0x/mYAYbQ=; b=VKYDkDdNZBzGYnrbSZc8bhxb1sTwbPAfFm3fgPn8a1SSkxV7XMANQ3rxm5mPJXJl9z 93tWUSmcdudHfq9ne0cT7jiRprsCORcis1bL6dZiSqBTDarEh78qlLwSWq9yw07CYdCj NnL1JeysXg8bBKuQI1LS6FDAkqnhLgeVmdncZPUYaLupQajUiW7HhYjQEwzz7juEUpNB 38oyFYeOiV7JohzqvvCHsTsmgGJFuv7VFhX+OdoUYQ0DlzZQ9C4mOVAyrZs7JyzoG6Vo AppqipIa5SrGeQNuaomi/+KwxhdpsQgUMFMY7gtAPHmM8U33m3ZIj8LSrPEWQ3I5hpJb BzUQ== X-Gm-Message-State: AFeK/H1bGPFIC+D3/EMJQYhiIMpa98ZXR6ALbYzXHA7J82wjeGyfYwY4NAgLMWFfkYAjxdub X-Received: by 10.223.155.211 with SMTP id e19mr3961113wrc.74.1490296744165; Thu, 23 Mar 2017 12:19:04 -0700 (PDT) Received: from venom.dhcp.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id s26sm7050408wra.66.2017.03.23.12.19.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Mar 2017 12:19:03 -0700 (PDT) From: Jon Mason To: zajec5@gmail.com Cc: Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: [RFC 1/3] thermal: broadcom: Allow for NSP to use ns-thermal driver Date: Thu, 23 Mar 2017 15:18:46 -0400 Message-Id: <1490296728-14733-2-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490296728-14733-1-git-send-email-jon.mason@broadcom.com> References: <1490296728-14733-1-git-send-email-jon.mason@broadcom.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Change the iProc Kconfig to select THERMAL and THERMAL_OF, which allows the ns-thermal driver to be selected via menuconfig. Also, change the ns-thermal driver to work on any iProc based SoC. Signed-off-by: Jon Mason --- arch/arm/mach-bcm/Kconfig | 2 ++ drivers/thermal/broadcom/Kconfig | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig index f9389c5..b96840a 100644 --- a/arch/arm/mach-bcm/Kconfig +++ b/arch/arm/mach-bcm/Kconfig @@ -19,6 +19,8 @@ config ARCH_BCM_IPROC select GPIOLIB select ARM_AMBA select PINCTRL + select THERMAL + select THERMAL_OF help This enables support for systems based on Broadcom IPROC architected SoCs. The IPROC complex contains one or more ARM CPUs along with common diff --git a/drivers/thermal/broadcom/Kconfig b/drivers/thermal/broadcom/Kconfig index 08457a4..39b92a1 100644 --- a/drivers/thermal/broadcom/Kconfig +++ b/drivers/thermal/broadcom/Kconfig @@ -1,6 +1,6 @@ config BCM_NS_THERMAL tristate "Northstar thermal driver" - depends on ARCH_BCM_5301X || COMPILE_TEST + depends on ARCH_BCM_IPROC || COMPILE_TEST help Northstar's DMU (Device Management Unit) block contains a thermal sensor that allows checking CPU temperature. This driver provides