Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3840887ybx; Mon, 4 Nov 2019 03:48:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwVe6PDQoJ0vu61VUvlhpiaUWvO4OUWP67LgdvPMXNM/HoQ0P5XuAbX/Bf5ZuBwwPEcLtUG X-Received: by 2002:a17:906:5407:: with SMTP id q7mr23739575ejo.24.1572868100982; Mon, 04 Nov 2019 03:48:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572868100; cv=none; d=google.com; s=arc-20160816; b=0CfZ0E53oxud3Cb5KDU9FLTtcrMR+kAzAPHvz+DUk2kS8iwLEXTSbaSkp84hS0wvg4 txWZ/AxzaU0z7JX3XbIlyccJrRM+gk+6iW+4c0dbz9Jz+FB7kfBQlXQuMRe7PBpWMhJ6 +EaF1vmA3jY6zP7WvNXEsykoruEyvom6M7mVG+i6cTHf5gz2Amg7aSHsRQ1M1LP8Q81l l8oiWUeImxdD9qfFES+CX95cBqIQTZ3iIv8c1PfrFT1/I0tbyo1gJyH3BXItc9YjB59S vC+qcj+hiYP4mpStGIA7T0TR/9RmUIyqpAws0/R0lr32xQnxafD+ghTKPLtU4DeTMiOt JIKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=w2nb0tZy2p5STshq8xrycCai7rsQP0KWou8DElB+hS8=; b=RzvCsk+V9C+eP0rmmsgwtJD43gVLWXQJFpu6qPG+X8vSHNQXLb+vFXCThPfuLOuYoz bQnN+1fmjyJrXfkVkGhEXtqUaIBGBZruwpt2c3FnQcGtNc2v7xaOlw9h3Ibd3e0tRx0l ej6I9A+cPyeuv2/OqnTqiCixHou0fk1QjvDsYTWdKZrFyN83aualnpl9GNEymmL+aWFb tJAmwqQ9KJ8SIifSDTdBkTtWduPD5Z/lgiX+2g13dlCbn8sE+SNZvld3yCL+1cHWv88j MBrawix807EbqKEcFteXaMlRrC7WHj8FKSKmGwDv4dHMr4rq/noDVSrxQp9inrMDwKXA MlHA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m33si7188658edc.126.2019.11.04.03.47.57; Mon, 04 Nov 2019 03:48:20 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728810AbfKDLr0 (ORCPT + 99 others); Mon, 4 Nov 2019 06:47:26 -0500 Received: from mail-sh.amlogic.com ([58.32.228.43]:27110 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727236AbfKDLrZ (ORCPT ); Mon, 4 Nov 2019 06:47:25 -0500 Received: from droid13.amlogic.com (116.236.93.172) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.1591.10; Mon, 4 Nov 2019 19:47:37 +0800 From: Jianxin Pan To: Kevin Hilman , CC: Jianxin Pan , Rob Herring , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , , , , , Jian Hu , Hanjie Lin , Victor Wan , Xingyu Chen Subject: [PATCH v4 2/4] firmware: meson_sm: Add secure power domain support Date: Mon, 4 Nov 2019 19:47:06 +0800 Message-ID: <1572868028-73076-3-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1572868028-73076-1-git-send-email-jianxin.pan@amlogic.com> References: <1572868028-73076-1-git-send-email-jianxin.pan@amlogic.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [116.236.93.172] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Amlogic Meson A1/C1 Secure Monitor implements calls to control power domain. Signed-off-by: Jianxin Pan --- drivers/firmware/meson/meson_sm.c | 2 ++ include/linux/firmware/meson/meson_sm.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/firmware/meson/meson_sm.c b/drivers/firmware/meson/meson_sm.c index 1d5b4d7..7ec09f5 100644 --- a/drivers/firmware/meson/meson_sm.c +++ b/drivers/firmware/meson/meson_sm.c @@ -44,6 +44,8 @@ static const struct meson_sm_chip gxbb_chip = { CMD(SM_EFUSE_WRITE, 0x82000031), CMD(SM_EFUSE_USER_MAX, 0x82000033), CMD(SM_GET_CHIP_ID, 0x82000044), + CMD(SM_PWRC_SET, 0x82000093), + CMD(SM_PWRC_GET, 0x82000095), { /* sentinel */ }, }, }; diff --git a/include/linux/firmware/meson/meson_sm.h b/include/linux/firmware/meson/meson_sm.h index 6669e2a..4ed3989 100644 --- a/include/linux/firmware/meson/meson_sm.h +++ b/include/linux/firmware/meson/meson_sm.h @@ -12,6 +12,8 @@ enum { SM_EFUSE_WRITE, SM_EFUSE_USER_MAX, SM_GET_CHIP_ID, + SM_PWRC_SET, + SM_PWRC_GET, }; struct meson_sm_firmware; -- 2.7.4