Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp68551ybc; Mon, 11 Nov 2019 20:30:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxJEVb9UmiHlm1C4NhWK/rB0cm3W4d4+lEmyZ2eIgEMmGvzmf05xJOgqtKVQbF+z4NCfCjk X-Received: by 2002:a17:906:1d59:: with SMTP id o25mr25760433ejh.17.1573533021535; Mon, 11 Nov 2019 20:30:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573533021; cv=none; d=google.com; s=arc-20160816; b=JVoxkCkafhAA3vH49Me8tE2WxVH5nAhpFvPyo0vXUIJUkQd+5crorHWGhrLgM4Gq7v iXZmRIBV62S8JTJurazQ8sxfy2KO687ph/XYHRilx3P9BbnsCyufHnyfGQjOBV5XHMF3 zJMGXV4RquOC7C7STJ8N06mIYGEl5ZsQjHKXfw+WgiXQLJW7R6h6PoahCg2FABZqJ8rJ QsfhHJguF+WBtEZbMMcswvUQ+6igfraQOOqgryF5T1SAyYAeCDbmrAq+zHbS5HhagTD9 o/ypYoKxGIBElGqpZJ8z4eQxyGVNixfxx6IgSkf1xc2Cz2W4kwCh5jxd/6p9woNihvrH yHBw== 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=pv0zBUxnJVAWpG6NHPdLIFzGu7fyeCciktvIBrS9ghM=; b=YBkcCo/WkXoSB35W1vLeNbduH8k2xuKgsim9ppAlVAX8WDBlRFIQqjRmoS00CD4t+n 2bjayDd2acgJL0zbK0j8ZLPwYsRoR94vADQp1YGnP3VKXW1FLolZyp0aB7ZGCERB5cpZ txZE56k4A62GUjlmy3RZOt8swoQLd6GbbQNa303CnTDjS6ohesANbQljBUctrAFn3/Qv vyoFHamOeAfPmdmxpnr8U7WrmU3aD+/W55rEtAvK3z/uT7irKuL+fAk8V7ttRaCbj9dk 5fDKzHHT6++0hTnsLajM2qHlO/87dMmUG5Yb17vC7thlYLlKAbFv+8F4t+WVKTyIOZxS OysA== 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 u11si14400385edi.385.2019.11.11.20.29.57; Mon, 11 Nov 2019 20:30:21 -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 S1727016AbfKLE3W (ORCPT + 99 others); Mon, 11 Nov 2019 23:29:22 -0500 Received: from mail-sh.amlogic.com ([58.32.228.43]:12690 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726910AbfKLE3W (ORCPT ); Mon, 11 Nov 2019 23:29:22 -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; Tue, 12 Nov 2019 12:29:39 +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 v5 2/4] firmware: meson_sm: Add secure power domain support Date: Tue, 12 Nov 2019 12:28:48 +0800 Message-ID: <1573532930-39505-3-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573532930-39505-1-git-send-email-jianxin.pan@amlogic.com> References: <1573532930-39505-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..2854b56 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_A1_PWRC_SET, 0x82000093), + CMD(SM_A1_PWRC_GET, 0x82000095), { /* sentinel */ }, }, }; diff --git a/include/linux/firmware/meson/meson_sm.h b/include/linux/firmware/meson/meson_sm.h index 6669e2a..95b0da2 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_A1_PWRC_SET, + SM_A1_PWRC_GET, }; struct meson_sm_firmware; -- 2.7.4