Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2051579ybp; Thu, 10 Oct 2019 01:16:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHZOud1lWkMN5ouX3pTQArEVnwQ/UIJ1NoEIYYts5wrIW0dfL6a+OKiklaK57DdvI/e4Jm X-Received: by 2002:a05:6402:1a33:: with SMTP id be19mr6840024edb.197.1570695388524; Thu, 10 Oct 2019 01:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570695388; cv=none; d=google.com; s=arc-20160816; b=RJQ22Ry7wn5yR4rddrpoSLJsM309yK2r/INKsLjVB+hbSaj8fxFYLY/b/G/4C2IuHM 9kTLYe5cPNFEFPUC0sGEq3iOf3g16iCeIMPHZKh12bJPwCJ9/ekuKdeyjHtKrgW3Twn9 rWiSOCtZNILJHCw/zPgULBbiVWCb//cPGsRUFKddPj8/BTYBfOfYQXZBl2epCj8361xb rU8aBDak+Yvyjk68YyqKaYlXjHXOxobiclvN62HyOFtrB01qW2E1KiiPhJBTGayo0upo iom/67q+7zVk4czuKzswBjgExOozknTesG8owt3DMLm+tdk6HOQZQFkrxyX3OghoEJgE R8JA== 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=IB32gkuVSVC9RNLcvHvDkN0FQUIHZ7m7/6adinUJ+2ss2jtN05DxgVioEx/lwImCRR kojk+q0jYDp2UR5T01BEUPLV28OgmromnGj42YLfVZcQwrdtPfY21xRaXIIcQXsYeCZG 05hQ0wgMB0ZX1ikLt33Ydue2vKAb4AOXuBjP+r05bo6+0VCE9Ic/B/kbHOkb5xd5Yzll z1sci56iCF47FBG1+PNqhXILXD5Z+b/TJiJkmqMYyP4/eDZAnZm4c14kORp8pjyzHVHK O6uxed+CQprpFgXTiwHZK1fuh/cAK1FhrxQCNwWqTTRFcsQ4DXSUhPHiRWfzQrElqpSS smfA== 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 i12si3062764edb.133.2019.10.10.01.16.05; Thu, 10 Oct 2019 01:16:28 -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; 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 S1733193AbfJJIP5 (ORCPT + 99 others); Thu, 10 Oct 2019 04:15:57 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:11342 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733163AbfJJIP4 (ORCPT ); Thu, 10 Oct 2019 04:15:56 -0400 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; Thu, 10 Oct 2019 16:15:57 +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 v2 2/4] firmware: meson_sm: Add secure power domain support Date: Thu, 10 Oct 2019 04:15:42 -0400 Message-ID: <1570695345-54178-3-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1570695345-54178-1-git-send-email-jianxin.pan@amlogic.com> References: <1570695345-54178-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