Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp442592rwo; Tue, 1 Aug 2023 21:02:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlHAuH+aEaJtkFFHX6T7w41ykDXS2Cv6WbxuLkEws+aszzeTfDac9iEvEoB/pbgAyIwasfk6 X-Received: by 2002:a05:6402:12c4:b0:51b:f669:9df3 with SMTP id k4-20020a05640212c400b0051bf6699df3mr3769562edx.4.1690948973585; Tue, 01 Aug 2023 21:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690948973; cv=none; d=google.com; s=arc-20160816; b=lKEbL9Eb7PedBUC5RkrxbUe8DentxkFomTgX2tZ6HPjTppJqrtrGLb4UZ6M0mN0Drm KjWfXM1r8rb0xmhbBjgb2o2T/QaaYa9YNQ443hXHJsojhxfJU/CO2ciOjKiYJ0KqmY36 pAqD92mTQctIwx8Icy2DYUAXNubiWVKSVfPVu8vn0jHn/K1F255hnIst1A93Uh6u3ryS 8EdjgUZuXo4P8YSo/TyRN7iuYrfjcWJDtOsImQsecuMn2CN4m9Fu8Pn91rMkpyfTWgn5 /UDwuAzXQZsTX3lfMeSjDVoTY2vs7U+p+IcvytqyKTs6yKGjWQbi5un6UFXXaArioM30 3Kxg== 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=bwRYQRtKuJF2V5JGF+XcLaedlN3tb5uFidzADfNWLe8=; fh=lHtUygPuyDqDXmLQa3x6TuiEioC8bNshDFp//Fz2cIM=; b=qHdzcVC0ikvkcYluczAzFsVjxLeJQmla7EYigJM5wwFL3aMoFQPvT66R7Fy16IFyl5 VqZe4yKbjGFQLTkeBeBrdpBEOZkmVThltB+rgFNRBUMlNZPIFMaAYT5xGXVHZvK2Gxgo q2eBk/DLd+LtgO/msyIjj94PyfAtG8yod2XyVfRu4CCf9hdLH/IXn/7GRd3Chn+Pucag RqZdIubQsF1erhqdCO+OfCICFqb7E9/+cuWTKYWVi+eRe9YSX+9nOjb2rvUbDM6SEhtm +fgv2PgZGVx9Vy6WB+yyrV+2sQe0SZhs43nR0A75WNlO/CvvpvRzSk0uHhLIwA4zRh6+ 6fuA== 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 c9-20020aa7df09000000b00522d725a332si3121616edy.669.2023.08.01.21.02.15; Tue, 01 Aug 2023 21:02:53 -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 S232222AbjHBDeM (ORCPT + 99 others); Tue, 1 Aug 2023 23:34:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231732AbjHBDdj (ORCPT ); Tue, 1 Aug 2023 23:33:39 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 120CE1BD; Tue, 1 Aug 2023 20:32:51 -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, 2 Aug 2023 11:32:30 +0800 From: Huqiang Qin To: , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH V2 3/4] watchdog: Add support for Amlogic-T7 SoCs Date: Wed, 2 Aug 2023 11:32:21 +0800 Message-ID: <20230802033222.4024946-4-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230802033222.4024946-1-huqiang.qin@amlogic.com> References: <20230802033222.4024946-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, RCVD_IN_DNSWL_BLOCKED,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 --- V1 -> V2: Use the BIT() macro to build rst initial value. 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 18180d91543e..a48622d11ad7 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 = BIT(21), }; +static const struct wdt_params t7_params = { + .rst = BIT(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