Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1722667ybg; Sat, 19 Oct 2019 01:06:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4Ic8uNRZuUr5grYpPOA38l5ONtmd3v7qnlwIqSpuWnRG3NlRvZUOJTk4DTjejo38vDD74 X-Received: by 2002:a17:906:2ada:: with SMTP id m26mr12349453eje.87.1571472361753; Sat, 19 Oct 2019 01:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571472361; cv=none; d=google.com; s=arc-20160816; b=ja+fv+Po3EwVqszjfUHWHlKBKcRwncTe4itwiSCiRp/K1M3RpUrWROgaWxsv77uRAH PGhDy/9/sR7fckgNDKvjGi10d/EI/UmRF8s3yAM913pLt1vFb/gTU6tqWd0ubZ/Wp+p+ FDtMDtBUDgRDe5OCwP6gTvzAcGs1zSqrqg7HIxzWksYxJd7xYcwcwC0JTiM9x4hVcHk9 i0c4aNH0iCLAaMVhNHczIu4vNRJIOlkzAYT4d1ymCuNH7wqwA7IkPrFSoWsbVWbQRRNg 2DQ9Ihw+82O2LxfOuDcYq0cwNCOYBBU8OUKyTL7Ydo3vjziNRrFw8+1MfJuy3M0hnhHn 2UsA== 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=0dqHksGb3FHaOlfxXRG5W8MGOHvHKivyKiT6LY6V1aAplhJ3kwIJ2OLTYylz8fsU7W 9v1FPblJkkZ+ksrnhqH+ohtX9irwWOObbXfpegR8gT11vomTC6R5K8tMqYsXQrR2WIbw zm1g4ks/Hw3xs6RkmkEqqczrraZhNDZBa7W9fR3MklXvZ6zzhfX2xMjQUDJ+PAevFn9c 29AP6h16MPzVZnuM3mGRZ+u2WlHzguCgqSCdVBUiKz7kL/YK3AG7tRQQFrXWEv/4fm0U VdfXk20ilcmXz0y2aNh8UAhviET8fGmc5mmEnF+mR43Sx5D9utpvYEyX05UYHV4fquXU hyEw== 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 c4si5610413edb.387.2019.10.19.01.05.39; Sat, 19 Oct 2019 01:06:01 -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 S2409823AbfJRJdB (ORCPT + 99 others); Fri, 18 Oct 2019 05:33:01 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:32069 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409780AbfJRJc5 (ORCPT ); Fri, 18 Oct 2019 05:32:57 -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; Fri, 18 Oct 2019 17:33:01 +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 v3 2/4] firmware: meson_sm: Add secure power domain support Date: Fri, 18 Oct 2019 17:32:45 +0800 Message-ID: <1571391167-79679-3-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571391167-79679-1-git-send-email-jianxin.pan@amlogic.com> References: <1571391167-79679-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