Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4039149ybg; Fri, 25 Oct 2019 12:26:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9MUAFAcptnl9LKfmxS2/3glPu3CnAZCuNHz8u8aYTMXT+lzcBjJet1tw/s3YUchxBrOVn X-Received: by 2002:a17:907:20f3:: with SMTP id rh19mr3860896ejb.289.1572031588818; Fri, 25 Oct 2019 12:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031588; cv=none; d=google.com; s=arc-20160816; b=YdMBLqQg85g8U1Oi8nRh/OaeLTCcJGffZGGSNOp+Y/EZcrAa/vkHGs9IsK1WXZzuDx V3ZkfzSwMUoIYN4unWc6IxGT71w2d+IhNZhkgr0h6FtTQ4dKk1ROo3ICh4rYbCeLfiQ5 mkOJLdijQUSiw0gJ31T/4P/9YQI2xYMTRRfwR+8abKlRRr8N4QxT4O/uA1zxCjrfdT61 Vpm8M4GJyiH89zHYkDs6xEBNASLdCu8pnFc8dPmV0enNBcp73WQyXWZmgXVuTtAkc04/ yd3JNTbFXtARgIJcyURyHU/4hyUBfC88+OHa7CrCgo1KIPuiQUYysSEXhN8gI95b5YMH 3bCg== 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=emDGbkV0kz8NcGNCPDClDZvikWBi5YkcWYDiksoM9N4=; b=q+8V6niOboXgUpnvAGout4l29852TUNUidWCy2/tE3ObZVDlKVmu+3y8msh5nqpae/ uIGRjAhUlINRw7G/4aDrATx5o4pghdBl+Ccws8WP8m6MjnLAeA/bZTYtvNDMpyLked8l KI6p0ZwvShomCIgOk1TJrGpEgmhdhTWHSv0HPq2QacwgolTXNeNdiHND25m1Y0/og5WL 7cKLBxSnbW8/Dp0vF8/AouWa83JjefSVtmnlnWTj3WsNM4bY6N3FuO6xFZR0xBK6/XFD G550JHQd48gEf5PQWmhOTgT2BDFOjDR2ORsivSLVvuJ7Kk82/1HVG0LeW2i7UzNoDqxE +oeQ== 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 x11si1750295ejw.9.2019.10.25.12.26.04; Fri, 25 Oct 2019 12:26:28 -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 S2404696AbfJYGNN (ORCPT + 99 others); Fri, 25 Oct 2019 02:13:13 -0400 Received: from mail-sz.amlogic.com ([211.162.65.117]:39195 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404648AbfJYGNM (ORCPT ); Fri, 25 Oct 2019 02:13:12 -0400 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; Fri, 25 Oct 2019 14:13:20 +0800 From: Xingyu Chen To: Wim Van Sebroeck , Guenter Roeck , Kevin Hilman , Neil Armstrong CC: Xingyu Chen , Rob Herring , Jerome Brunet , Qianggui Song , Jianxin Pan , Jian Hu , , , , Subject: [PATCH v3 1/4] firmware: meson_sm: add new SMC ID support for accessing secure watchdog Date: Fri, 25 Oct 2019 14:13:01 +0800 Message-ID: <1571983984-11771-2-git-send-email-xingyu.chen@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571983984-11771-1-git-send-email-xingyu.chen@amlogic.com> References: <1571983984-11771-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..46a44de 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_WATCHDOG_OPS, 0x82000086), { /* sentinel */ }, }, }; diff --git a/include/linux/firmware/meson/meson_sm.h b/include/linux/firmware/meson/meson_sm.h index 6669e2a..0934718 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_WATCHDOG_OPS, }; struct meson_sm_firmware; -- 2.7.4