Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4767197ybl; Mon, 13 Jan 2020 20:32:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxBcvrEQRnYg/wjmqqr1i4OJBtshEBjo+ZIIvFJuKVJ8q8rp2w4mJ5WE1BHZKtVCWtSnXEn X-Received: by 2002:aca:ea46:: with SMTP id i67mr14866373oih.149.1578976363771; Mon, 13 Jan 2020 20:32:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578976363; cv=none; d=google.com; s=arc-20160816; b=QFzPLyklW+wSy9pMmaYuztq5cC13TFCxEn4QH2cbgciuWS/jQwPrl08cxlADv73aVV Qx+gDADaCitraQ6F3wxvaHlkQbcd+sUyRCiLyImD0PZAYXKSk13+i9hl48eCjEqR/U42 B2OCkpTwbVjU2701rwKTWlgNmcxA+n3gRk9dQCnpywHgzT98q3kbY0RgwbzINLI/Z+EU 4SzLm2NzPuITYyHXhwx9RKZVk9xT8h5ievU7hmArRhaOYrln0uS0lTIpUmpeDq3rsZJO ne6y6ziAMq073TyA3B0eGEWzxWGxVZU2ple+AwzK+wY0gw7dz5302dVXXjQ4PjAPUzQM 6WEg== 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=OvcZnqno1jSds1Tag2TdwiT0tFlhvOKIR0I0x6ECb/0=; b=I2OXCKZ30kvKAoqDgfpYlpnSMVjjXC0/SH1I7MmcHk5h/pwLA3A+zNWHxZOw56N4l4 GiSevR6MljM37C38yfkdgcSU0EGFL1skBK3zqPBfEAFJT9S0gVhY92IwOCfsALsc9skq BqezGE44I+sW8mRSxlcqD5TubcvxBg7DU/tfO4hoWFNMgZa5Iw06+Iqq1e2c3cz8cy0R e1j6qdv95ostqBv7t11ZhG5xv6Fn+00k4DeqnpbcrksircmzIRkWIwdfC9RwvnWdZEg+ lv5jFq09hFlT7iUkt1X0T2hJHjZ5iCn5QrWNEzsIwTxiYcVHmtRvmxT+Jf5SFZh3vG58 Jhcg== 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 92si8144990otr.25.2020.01.13.20.32.31; Mon, 13 Jan 2020 20:32:43 -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 S1729715AbgANDpj (ORCPT + 99 others); Mon, 13 Jan 2020 22:45:39 -0500 Received: from mail-sz.amlogic.com ([211.162.65.117]:56845 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729580AbgANDpf (ORCPT ); Mon, 13 Jan 2020 22:45:35 -0500 Received: from droid12-sz.software.amlogic (10.28.8.22) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server id 15.1.1591.10; Tue, 14 Jan 2020 11:45:58 +0800 From: Xingyu Chen To: Wim Van Sebroeck , Guenter Roeck , Kevin Hilman , Neil Armstrong CC: Xingyu Chen , Rob Herring , Jerome Brunet , Martin Blumenstingl , Qianggui Song , Jianxin Pan , Jian Hu , , , , Subject: [PATCH v6 1/5] firmware: meson_sm: add new SMC ID support for accessing secure watchdog Date: Tue, 14 Jan 2020 11:45:23 +0800 Message-ID: <1578973527-4759-2-git-send-email-xingyu.chen@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1578973527-4759-1-git-send-email-xingyu.chen@amlogic.com> References: <1578973527-4759-1-git-send-email-xingyu.chen@amlogic.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.28.8.22] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The new SMC ID is used to access secure registers by meson secure watchdog driver. Signed-off-by: Xingyu Chen --- drivers/firmware/meson/meson_sm.c | 1 + include/linux/firmware/meson/meson_sm.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/firmware/meson/meson_sm.c b/drivers/firmware/meson/meson_sm.c index 1d5b4d7..8cdd405 100644 --- a/drivers/firmware/meson/meson_sm.c +++ b/drivers/firmware/meson/meson_sm.c @@ -44,6 +44,7 @@ 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_WATCHDOG_OPS, 0x82000086), { /* sentinel */ }, }, }; diff --git a/include/linux/firmware/meson/meson_sm.h b/include/linux/firmware/meson/meson_sm.h index 6669e2a..9ef1524 100644 --- a/include/linux/firmware/meson/meson_sm.h +++ b/include/linux/firmware/meson/meson_sm.h @@ -12,6 +12,7 @@ enum { SM_EFUSE_WRITE, SM_EFUSE_USER_MAX, SM_GET_CHIP_ID, + SM_A1_WATCHDOG_OPS, }; struct meson_sm_firmware; -- 2.7.4