Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2056689ybp; Thu, 10 Oct 2019 01:22:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4Jk3kPM2EtLu+0PLJv3nv4xp6oC4Wv8ZSfHpnqhz4Z2fPLUcnX68fWmkzhgm1mPDPPCdB X-Received: by 2002:a50:d70c:: with SMTP id t12mr6933887edi.252.1570695724666; Thu, 10 Oct 2019 01:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570695724; cv=none; d=google.com; s=arc-20160816; b=pEtwX+vvpkZvGLmbSwpnMpzym89T56ZpQIjMSJScVJv8HMB7VQjadKIUWp+vjStl/6 ldkopE0lnggoqWG7RXCpZwT3clXklg01MLFlOr0DW8E5i/9PqCnOUlEHdqjzb6AMZytk tTUqWODgCxP4RaCoROS7n/ALWWTEFrimuXQNii7vRsjpghrFrhU93iqKxCXpwl8LPtMj kDlNrNHPjvART+FS/QN6v/zCZfxApNkjtyArO4Xv684gr9wLeEFtLuBohl+HXanL1L8a Qvs5U3jZoIyTId7lHwEDS96CmWX2MUIsZl/VYI77ivCFocPgF/Q4mN7iIprsYgQQRomf RGdQ== 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=pcq6EMMHzq803PFgJ2fMPEhwmesyYXDxm52yZS1QloJ2tkc3wpOrlV1cheKgT+G3Al FvKtYUq83CXu4imbwjjCY1GRHqMsHAodhjFbIVqGtMVEB5SydK5GaLeWLxCLbv9SzP6N sWgs4J5UakWEpKYvj7pJgIVlWL9/LIINXpngLu55+RN4aK6a/z0RfoOyLkpLlCtHXr+z oIbhbL+gX7K9xQw9VQlO9lbjQhCaB1RcLQXLylQnAKwzMRmMZUk/btgkvBajxe3v4L2e inQWL6g8eJhzAGURW1PKB9N+RZsel5S6RoDwxZQSzGoa1Dpg6gzmB2LubQFKrGfoEHAb apYw== 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 g21si2621122ejk.23.2019.10.10.01.21.41; Thu, 10 Oct 2019 01:22:04 -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 S1733265AbfJJIV1 (ORCPT + 99 others); Thu, 10 Oct 2019 04:21:27 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:20799 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733232AbfJJIV1 (ORCPT ); Thu, 10 Oct 2019 04:21:27 -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:21:27 +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 RESED v2 2/4] firmware: meson_sm: Add secure power domain support Date: Thu, 10 Oct 2019 04:21:16 -0400 Message-ID: <1570695678-42623-3-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1570695678-42623-1-git-send-email-jianxin.pan@amlogic.com> References: <1570695678-42623-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