From: Weijie Gao Date: Mon, 19 Oct 2020 08:48:24 +0800 Subject: [PATCH 12/18] watchdog: add watchdog driver for MediaTek MT7620 SoC In-Reply-To: References: <1602833785-19521-1-git-send-email-weijie.gao@mediatek.com> Message-ID: <1603068504.18736.1.camel@mcddlt001> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 2020-10-16 at 08:13 +0000, Qiang Zhao wrote: > On 2020/10/16 Fri 15:36, Weijie Gao wrote > > > > -----Original Message----- > > From: Weijie Gao > > Sent: 2020?10?16? 15:36 > > To: u-boot at lists.denx.de > > Cc: GSS_MTK_Uboot_upstream ; > > Daniel Schwierzeck ; Stefan Roese > > ; Stefan Roese ; Stefan Roese > > ; Christophe Leroy ; > > Marek Vasut ; Jagan Teki ; > > Suneel Garapati ; Michal Simek > > ; Philippe Reynes > > ; Ashok Reddy Soma > > ; Qiang Zhao ; Jason Li > > ; Alex Nemirovsky > > ; Jan Kiszka ; > > Weijie Gao > > Subject: [PATCH 12/18] watchdog: add watchdog driver for MediaTek MT7620 > > SoC > > > > This patch adds watchdog support for the Mediatek MT7620 SoC > > > > Signed-off-by: Weijie Gao > > --- > > drivers/watchdog/Kconfig | 7 ++ > > drivers/watchdog/Makefile | 1 + > > drivers/watchdog/mt7620_wdt.c | 119 > > ++++++++++++++++++++++++++++++++++ > > 3 files changed, 127 insertions(+) > > create mode 100644 drivers/watchdog/mt7620_wdt.c > > > > --- /dev/null > > +++ b/drivers/watchdog/mt7620_wdt.c > > @@ -0,0 +1,119 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Copyright (C) 2020 MediaTek Inc. > > + * > > + * Author: Weijie Gao > > + * > > + * Watchdog timer for MT7620 and earlier SoCs */ > > + > > + > > +static const struct wdt_ops mt7620_wdt_ops = { > > + .start = mt7620_wdt_start, > > + .reset = mt7620_wdt_reset, > > + .stop = mt7620_wdt_stop, > > You'd better add expire_now function. ok. I'll add it. > > Best Regards > Qiang Zhao