Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4466474ybx; Sat, 9 Nov 2019 16:36:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyjISVIVr/G9laW8dgUt6aRvnw0ZK9BBXgZl22JsE6NBlJAcQX2+Nzu2XdCVyML9V6O9Ttu X-Received: by 2002:aa7:c716:: with SMTP id i22mr18611036edq.237.1573346189702; Sat, 09 Nov 2019 16:36:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573346189; cv=none; d=google.com; s=arc-20160816; b=x09z2QJsc6jBFLjNfybvmx/6sjNxsbkTyqLI7TmqCPwD3CuyMHkspAo90KDPmhXR9u s7S46j9DwVobFa4r1PE30zm5IOe521t0Rf/XKRHGgsOwBGuQmimv/jzLMg7LwFC6jOxp YVs+9hBfiEVZ3hlFUCM8pKya///RFEB17gxFMn4ULQ0cxqXzI3XGteHuVhHS+Tf8jsSI SzFMg2Hxy9f4i3H6VPb81BkU7n2BjmmnYDCwIJpZRCOOM66pL9/5D85EwYMyUCnojAPX WjbUqPTsHx59Av6+VIxupf335PuOpWHPaW9RBbPVIB1j8g7IyUKsTI2CZSisJZUpZyuW Rodg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=FxRt4BUNwVB8zpfl5d2aejL9uK6mBbXTP9pbXJEAVIA=; b=V1VD8471vhMb01jZuM1pTDxH3cdvPd0H51NSbttmVY+GLWjF7btbEyJtdTATkbklPP QfjQTmrkCow1+9D11lPWWyXy54PlZ9iQy6EsN7vEHhtIgyBRKW45/z8kNYUfBwcaQ7T+ sXjjlwwdCmW3evAYvIDbUcc1ETmAP/meosngXrQ0tlMcaVEFWcO2eD17IhwqLA280k5C KY1BewQeGuBysFZSfyGm3pzm3ASJK+vGWMirtysYb3QdLZHvHhTxh8QEP9p1i6N4nu0n JriboGwOD/T/aoOQTp9jIl7Zp+VPukRUZYoNYsSZW2M4JNX5WI1oaJvFGuN8HwXVgC7U rArQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=hiJmGSln; 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 t18si6567369ejf.351.2019.11.09.16.36.06; Sat, 09 Nov 2019 16:36:29 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=hiJmGSln; 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 S1726720AbfKJAak (ORCPT + 99 others); Sat, 9 Nov 2019 19:30:40 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:37884 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726650AbfKJAaj (ORCPT ); Sat, 9 Nov 2019 19:30:39 -0500 Received: by mail-pg1-f194.google.com with SMTP id z24so6609828pgu.4 for ; Sat, 09 Nov 2019 16:30:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=FxRt4BUNwVB8zpfl5d2aejL9uK6mBbXTP9pbXJEAVIA=; b=hiJmGSlnDpaF08YRgBaxyr5f68zjU/4xnmI2rZb2yHXrJ1OZXYRrhl8+qkrr+c1C+l EbOMxgoRmtBsn2DjinkASy5uaaEf4N42L3g9V6T33JIv8OsXTEb0pvk7bbZQUMjbclEW XxXWO9yFY8Cc0Rkr0nqGX0uMnF5CBJyvOav2c0wtaH1l3MVAV2yngr/8YpOjwN2GYOoX qtHMUzLYJ1DUO2kBPcErJTGREA+ykx7mVZZbuwcK2g0qOlPdimrE2jtAmteGys5e0mhe Ux5OkTsaK+1mLq1wmj6ricPdwe4/SfZS7Jdbbbaz2RnCccIxpR4iKPOc3NBU9/wiPycj M0lg== 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:in-reply-to:references:date :message-id:mime-version; bh=FxRt4BUNwVB8zpfl5d2aejL9uK6mBbXTP9pbXJEAVIA=; b=QfdAf4tpTe3pWMe3KtK6fVcMdbBQdlqavi/3z/QdjeaeosQ2J3ZsFJB1zvHc4tuwba qlbk4r1DlWSMcd4TcS6T42eXO/fUzTcVCw1uhUV1KWpqorrXlYWzg5O+kqW8msgHxSov UdQ67smLsT4RlQ5rLC+jx7MyXp+YFtzyIqFoXJ+iqemRBwAIeYlFH2sdMfbUSOjmXzXd 5QFhaT3R4pMA8HGJHNn9llgKIiTgYdIWhrr4rdvrReqip4azEip1ymsMHDniUmzXu0AV VVOobaXCIIL6u8ELC1I1oEGwqKvPxqTAuw1drCzaYjlpnsgyxc7TnPmfdQBgYadAOHR3 uhyg== X-Gm-Message-State: APjAAAVNlkf0sVQxvcLDbdiT1g5mpLsq4ib9XSkBTGCLLY9AQoS6ci4B nnnzNe2N3UMt9ey7i4vv8b2oAah1DzS0uQ== X-Received: by 2002:a63:6b82:: with SMTP id g124mr20819408pgc.178.1573345837340; Sat, 09 Nov 2019 16:30:37 -0800 (PST) Received: from localhost ([2601:602:9200:a1a5:7c60:912:1380:6df8]) by smtp.gmail.com with ESMTPSA id f19sm4460187pfk.109.2019.11.09.16.30.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Nov 2019 16:30:36 -0800 (PST) From: Kevin Hilman To: Jianxin Pan , linux-amlogic@lists.infradead.org Cc: Jianxin Pan , Rob Herring , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Jian Hu , Hanjie Lin , Victor Wan , Xingyu Chen Subject: Re: [PATCH v4 2/4] firmware: meson_sm: Add secure power domain support In-Reply-To: <1572868028-73076-3-git-send-email-jianxin.pan@amlogic.com> References: <1572868028-73076-1-git-send-email-jianxin.pan@amlogic.com> <1572868028-73076-3-git-send-email-jianxin.pan@amlogic.com> Date: Sat, 09 Nov 2019 21:11:09 +0100 Message-ID: <7hk188stcy.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jianxin Pan writes: > 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, These new IDs are unique to the A1/C1 family. Maybe we should add a prefix to better indicate that. Maybe: SM_A1_PWRC_SET, SM_A1_PWRC_GET, Thoughts? Kevin