Message ID | 20200909210420.243190-5-seanga2@gmail.com |
---|---|
State | Superseded |
Delegated to: | Andes |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Fk/SvyWE; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bmvg06fvkz9sTM for <incoming@patchwork.ozlabs.org>; Thu, 10 Sep 2020 07:05:16 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 19F62822D7; Wed, 9 Sep 2020 23:04:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Fk/SvyWE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B2909822D7; Wed, 9 Sep 2020 23:04:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 16F2382189 for <u-boot@lists.denx.de>; Wed, 9 Sep 2020 23:04:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qk1-x741.google.com with SMTP id v123so3870778qkd.9 for <u-boot@lists.denx.de>; Wed, 09 Sep 2020 14:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JrreX9iKyIbdO+4gya0cpRD1pcSsa4XSaa270bO8Ico=; b=Fk/SvyWE4pBlsfikg9BFqKWOKcypKOW9hGmXOi/dtx3LZbEypunE8nO0/6rOiXEcZE xMypc3mf/IJuJenJe18UBT0nsGuHKhvsYlPaCVCckprnFf4Ag/Kqks8bSKvOlVfZCJoi UPXUHZUcVLbTjy/4EOuxMqOUzMJ/UEoTgra9+kF0tm0XwwQBJ85neNEMSRgQtF0DTZ9g LyFs+WFYUqa/WVlwBNwoacqh0NL9rq26TlrTC6kh20Xb+o3xCvaikv+s3KcenFF+X0ho OF0uq5l+QqCEXmAvjt7Jy+268X7iyWOpY3khBc+kJtKP1YHJKCJoCATPfV+rmktuWBLP tacw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JrreX9iKyIbdO+4gya0cpRD1pcSsa4XSaa270bO8Ico=; b=g8LCQA9HcU3LSn12K/FzoksqtZL3WaWjY8AG0ltzpQ3XywsnOB2tKVWdmBOeAITE7o 7pnZo3wfWXPbyhbetKaR5tI77Dhmj7ISqBkDS0gTxdEBf2Z1QufBisWivd1nvmsY7vAY uAjd4Lq1xtrbShwqYfOLypArDhMeXOmA0T54Nq0jyuc8gkCVbcBOadwW+/eOXKURf2TA pAc0Cx3qTBgy0FnYJm1OTw8CEmdgzKpxwSLCD94tH5S7vaxfMSHlC308Hb7zs5VFdLXs eG3G+m1Dq2xkD/8aUSFUKh3fWDuqD1NZMFP5r4BL85Wv/vtnuVkbhoTkH0Z/Jc7wY8D7 jwzg== X-Gm-Message-State: AOAM530WDUfl45VtwZBtjNtSaLcEcvs3SDkYgmJvon1DcbSzvdP46ZPe UzsxEF1wFhd0L5+QdbVJtcw9U7E9C5RgsniB X-Google-Smtp-Source: ABdhPJxpa75OmJS6idQ/cGOsOOztphu0XZReB3cIBw1WJQ8PBBumhLh7lm46J/UbGRsyOypnpJ4/Sw== X-Received: by 2002:a37:745:: with SMTP id 66mr4909394qkh.344.1599685470803; Wed, 09 Sep 2020 14:04:30 -0700 (PDT) Received: from godwin.fios-router.home (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.gmail.com with ESMTPSA id c40sm4664096qtb.72.2020.09.09.14.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 14:04:30 -0700 (PDT) From: Sean Anderson <seanga2@gmail.com> To: u-boot@lists.denx.de Cc: Bin Meng <bmeng.cn@gmail.com>, Marek Vasut <marex@denx.de>, Jagan Teki <jagan@amarulasolutions.com>, Simon Glass <sjg@chromium.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Sean Anderson <seanga2@gmail.com> Subject: [PATCH v4 4/7] wdt: dw: Enable the clock before using it Date: Wed, 9 Sep 2020 17:04:17 -0400 Message-Id: <20200909210420.243190-5-seanga2@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200909210420.243190-1-seanga2@gmail.com> References: <20200909210420.243190-1-seanga2@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
wdt: Add support for watchdogs on Kendryte K210
|
expand
|
diff --git a/drivers/watchdog/designware_wdt.c b/drivers/watchdog/designware_wdt.c index 41866fa01b..e6f5437056 100644 --- a/drivers/watchdog/designware_wdt.c +++ b/drivers/watchdog/designware_wdt.c @@ -129,6 +129,10 @@ static int designware_wdt_probe(struct udevice *dev) if (ret) return ret; + ret = clk_enable(&clk); + if (ret) + return ret; + priv->clk_khz = clk_get_rate(&clk) / 1000; if (!priv->clk_khz) return -EINVAL;