Message ID | 20200929141835.38435-2-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=sIuLv08i; 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C11jL0hKPz9ryj for <incoming@patchwork.ozlabs.org>; Wed, 30 Sep 2020 00:19:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 38E2682252; Tue, 29 Sep 2020 16:18:56 +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="sIuLv08i"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 82EF38174F; Tue, 29 Sep 2020 16:18:51 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) (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 DDD9D8174F for <u-boot@lists.denx.de>; Tue, 29 Sep 2020 16:18:48 +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-x744.google.com with SMTP id v123so4430430qkd.9 for <u-boot@lists.denx.de>; Tue, 29 Sep 2020 07:18:48 -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=UH+trUJg48A0yAujMaZuxe1svnDWUlTjy00sFZOi2Bs=; b=sIuLv08ieQTLk6G/w+BXjGwu28MRT0432MNWPT0AEQocxXupnvI/5KmVaM/JdcSh0k H5dveVcSSv0FXvynfkorGkmezOks2M+sHLAfo1tyU9yh78uyOZ25bFxdwsdSjZnxNVhH ZIO43xW1OZmk4otGWcq+XLox2PvO/YgTFow2LJ3WvBdyC89m59en1HcUn3QQ5IB7UNSv BSTjy63MTIp6QFa8A2lcRgrpZorshRjv0kHEh7keofIO+lT4K/bdzPb2gR6iZzRLJKu2 tYgXNJ+QFk7YYzUoFDlWkRvVn/XHE4ulifkNnEOp2LOeeyB5+FLS9KrivUbey4tG3rI1 GXhA== 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=UH+trUJg48A0yAujMaZuxe1svnDWUlTjy00sFZOi2Bs=; b=uRzv0upsvoAf97LQaFSKAi5RqWL74//xJwkg1LCLlwcqWtCd0MhgfX0R2rSjNAdSZj jSgfWsUmtImkB4ycgI5pmySsZE/9U78DUl/GSUT5n/8sAIiCX4x4xULplrl+0Pi9RCib jcCzD1YflDbcmCuXmgYk1e8teOf3XyuxKTJJeIc89/iN4kbAelh8cZE+CANt5kGr+gGi 7u69MbWJKwa4r7U5VMxXvohUuTc0BSAJ9EudfCzkw7IjfEAp40a1M4xItFjZzAwLQZOa +0cfrXKF2OzeIGeN1pnoI256RwAWCKvVoZS+9y2Zj3B3e1MDh7EsasaWJw2g8+w3WZsf /1yA== X-Gm-Message-State: AOAM531r/d59LTja4kCqh+Ui/bHPFIthVmhVoQl6mycqZFs+CxAPr+EF QQSPc65DbzrmlXxIt8jdyO1KB8eImic7jQ== X-Google-Smtp-Source: ABdhPJwoeyRLE8pEd/QDRRylbp72rSj1vknjKWWXTt9z5exROpLJwWVQXBCNAYL1I5MF+iMUqbgpBw== X-Received: by 2002:a37:a654:: with SMTP id p81mr4475628qke.255.1601389127486; Tue, 29 Sep 2020 07:18:47 -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 l6sm117535qkb.56.2020.09.29.07.18.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 07:18:47 -0700 (PDT) From: Sean Anderson <seanga2@gmail.com> To: u-boot@lists.denx.de Cc: Bin Meng <bmeng.cn@gmail.com>, Rick Chen <rickchen36@gmail.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Sean Anderson <seanga2@gmail.com>, Damien Le Moal <Damien.LeMoal@wdc.com>, Lukasz Majewski <lukma@denx.de> Subject: [PATCH 01/10] clk: k210: Fix PLLs not being enabled Date: Tue, 29 Sep 2020 10:18:26 -0400 Message-Id: <20200929141835.38435-2-seanga2@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200929141835.38435-1-seanga2@gmail.com> References: <20200929141835.38435-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 |
riscv: k210: Enable use of AI ram bank
|
expand
|
diff --git a/drivers/clk/kendryte/pll.c b/drivers/clk/kendryte/pll.c index ab6d75d585..f198920113 100644 --- a/drivers/clk/kendryte/pll.c +++ b/drivers/clk/kendryte/pll.c @@ -531,6 +531,7 @@ static int k210_pll_enable(struct clk *clk) k210_pll_waitfor_lock(pll); reg &= ~K210_PLL_BYPASS; + reg |= K210_PLL_EN; writel(reg, pll->reg); return 0; @@ -550,6 +551,7 @@ static int k210_pll_disable(struct clk *clk) writel(reg, pll->reg); reg &= ~K210_PLL_PWRD; + reg &= ~K210_PLL_EN; writel(reg, pll->reg); return 0; }
After starting or setting the rate of a PLL, the enable bit must be set. This fixes a bug where the AI ram would not be accessible, because it requires PLL1 to be running. Signed-off-by: Sean Anderson <seanga2@gmail.com> --- drivers/clk/kendryte/pll.c | 2 ++ 1 file changed, 2 insertions(+)