Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp747301ybl; Thu, 12 Dec 2019 04:20:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyigiBGYyeZtJQ7Xev0zqaazI/SbWEGjFRwlvEw5qF3p7P/Rqs8+hpqcHAJomeAs4TXGOMM X-Received: by 2002:a9d:53cb:: with SMTP id i11mr8137740oth.158.1576153256659; Thu, 12 Dec 2019 04:20:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576153256; cv=none; d=google.com; s=arc-20160816; b=S/7z6a+AR4wZFeu7Ob1nHNIyWWyG1BprtOXqa3FA211HWlZKTydfelppnoHa/DwlCE lNnb/iz58vjVTwJxHDHlz4xozBtdM6WnAdun+fxaxH+cYakPIXjWahZMxyKAr8IB3CnJ GS27KbsAYtUitNOevphAQhoL4qDK8gtHehNidDbR/Em2tdAy0L2eXdAjphPb+0JenSU8 7zGgqTkhoQ0VF9B8Z/MB4SyeKKIIXBA3TjNOPMSrt3CXrkVruk9m9uTbssLvabPjRSmJ oEkp5bzwFiNb+CBDWtyy1Ubi+V0RpGZZwQ3Far8uEhy0j1Vpj93nvChxwmV4e+x5YxQd xN3w== 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=f/QGYLubPrhDp5fxOGfQvYnR0bVVKt0wSJaRa51gQw+unwtm6WlxU6BZ6A5VCaCuZQ T6sRHQJlfM5yuZT04kZFhGAzI2QT6wm28FpcOslP9+8Sh7MbijhjMsy/QnK1DDyAAgvd DMgroxSW7V0zVfyL35fX8HcEPPICEWig1Q8If/NYmCSvllE4qswDBKVYDXP3z2CE8ZBg YeUQi2GhaT27fHFx/rOP5Gw1JZZUNtD7qU9HFa+VehJLu1SYroO90RKDV5b9wuJppzRX NFjoc/OgN1+QCiKSAUG7bs/LiXmCFpalcaLl9pIUz54/2r75ibhqbmS4g7ktmTPhM7m1 OGPQ== 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 i9si3208501otp.139.2019.12.12.04.20.44; Thu, 12 Dec 2019 04:20:56 -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 S1729190AbfLLMUK (ORCPT + 99 others); Thu, 12 Dec 2019 07:20:10 -0500 Received: from mail-sz.amlogic.com ([211.162.65.117]:53857 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729179AbfLLMUI (ORCPT ); Thu, 12 Dec 2019 07:20:08 -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; Thu, 12 Dec 2019 20:20:37 +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 v5 1/4] firmware: meson_sm: add new SMC ID support for accessing secure watchdog Date: Thu, 12 Dec 2019 20:19:44 +0800 Message-ID: <1576153187-28378-2-git-send-email-xingyu.chen@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576153187-28378-1-git-send-email-xingyu.chen@amlogic.com> References: <1576153187-28378-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