Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp911541rwb; Wed, 26 Jul 2023 05:04:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlHImZimQyLn/J5lj7PA5PohfN0F+UMiUJrTep41FzSgFfE+BSk04Bi/ASiYahpyX24MH8K8 X-Received: by 2002:a17:907:7daa:b0:986:38ab:ef99 with SMTP id oz42-20020a1709077daa00b0098638abef99mr5749335ejc.9.1690373099260; Wed, 26 Jul 2023 05:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690373099; cv=none; d=google.com; s=arc-20160816; b=GWdrO6/DLjKZ/aqAW9bNsYtt8LeTrvvci18/3z0/T2ZmmLeY1+zHcx7a510HtwxlwD QAF1Iws/nzk30YmhhKyEtV392OFr9mLY305h6DPQUfIBNdPzR1ZYZaXohB3V6lbqCvvg EMT+kz6iX5Cd9Xbbx1HChZJb3qkX6uLAmjPLOvmyxQwXLb2fmWHP7ZluCMb487cbzV+5 ODuQC5+qkg1ntFDFU0pDNudzYzk2bX52Kp/qkt8pKQtN7b9sVTDcey1ZGOaATenkkNnT MgcVrgax/nHSuFyJpnzWXBIeIvc669LfQ/oM0EBAwgRxVwi9ylQhoWUY+BjYjYkwegu+ /hwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6OrOunRbobEVYxEiv7Iyx0lwT+G6sADpP2biil22mPU=; fh=lHtUygPuyDqDXmLQa3x6TuiEioC8bNshDFp//Fz2cIM=; b=FVX2d702FdvSfxGnsKdzD4HOvAP/UREcqN2XbaqcYk8YqHctzD+eB3w25eAU0eBqvM rDx7W7N37WelmpWvmbKll3BGKJ9PZPKfMSAsm7Wnm1w8dODhjACNsfIw3ilzXF/oJXeJ AI8rT2rORKZ+1KPdActZAdQmHiPFqga2V7tLWvNEn9rUcE4QMi0L7agFK2XJynhjW3dg 06EjfTFf7OZPmjIJRCdYhm3T7adyNU0Jfwq+McNtHeH5KbwDqPuW8oNmPa2mVE/iEMJJ qe3vCaN+BzHq0jYvpKf+qPftJZcTa8ofyMgjMSsHZmci0f3m8xPWSACEW1oZOWgkKnh1 Ammg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a1709066b8e00b00982a267a399si9145829ejr.561.2023.07.26.05.04.34; Wed, 26 Jul 2023 05:04:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233238AbjGZLX0 (ORCPT + 99 others); Wed, 26 Jul 2023 07:23:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233222AbjGZLXW (ORCPT ); Wed, 26 Jul 2023 07:23:22 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 377A3131; Wed, 26 Jul 2023 04:22:34 -0700 (PDT) Received: from rd02-sz.amlogic.software (10.28.11.83) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Wed, 26 Jul 2023 19:22:09 +0800 From: Huqiang Qin To: , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH 3/4] watchdog: Add support for Amlogic-T7 SoCs Date: Wed, 26 Jul 2023 19:21:45 +0800 Message-ID: <20230726112146.1127145-4-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230726112146.1127145-1-huqiang.qin@amlogic.com> References: <20230726112146.1127145-1-huqiang.qin@amlogic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.28.11.83] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Compared with the previous Amlogic-GXBB, the watchdog of Amlogic-T7 has a different reset enable bit. Signed-off-by: Huqiang Qin --- drivers/watchdog/meson_gxbb_wdt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/watchdog/meson_gxbb_wdt.c b/drivers/watchdog/meson_gxbb_wdt.c index a6c0d743b607..dc48b0a332c3 100644 --- a/drivers/watchdog/meson_gxbb_wdt.c +++ b/drivers/watchdog/meson_gxbb_wdt.c @@ -147,8 +147,13 @@ static const struct wdt_params gxbb_params = { .rst_shift = 21, }; +static const struct wdt_params t7_params = { + .rst_shift = 22, +}; + static const struct of_device_id meson_gxbb_wdt_dt_ids[] = { { .compatible = "amlogic,meson-gxbb-wdt", .data = &gxbb_params, }, + { .compatible = "amlogic,t7-wdt", .data = &t7_params, }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, meson_gxbb_wdt_dt_ids); -- 2.37.1