Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F171BC77B75 for ; Tue, 18 Apr 2023 16:50:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BBBD986167; Tue, 18 Apr 2023 18:47:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se 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=kwiboo.se header.i=@kwiboo.se header.b="jEqyvZUt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 748A08613D; Tue, 18 Apr 2023 18:46:46 +0200 (CEST) Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) (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 BE02186160 for ; Tue, 18 Apr 2023 18:46:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:in-reply-to:references:mime-version:to:cc: content-transfer-encoding:content-type:cc:content-type:from:subject:to; s=s1; bh=N1iihaopJDjjMnXliIuh4Vu/XV7STZxkc0LYKE6Xtuc=; b=jEqyvZUtCyyNeI5O2MTAHZM1BLNjzaIkxTqNMd8g3eNBdLsn/XAqtKrBVRprjxXyct3+ iCJaalL9c0x//nkiOPfBu/ZSGLwAhm7HiGEINZjPwz7QAsW19uLPHmoz2Y7ipfcfViz0rF nwIxM1+fWjMlI+2IhtI35wdEBxkjgfvRe48SPl2fwbbui4DFdEKGcVfl8J2I0gnHaUE7EJ Tn/rUSJJVx1z8MMEKYkh2JIVe/Yz+pQMHpNCV3kOTmr0EJ0ANk9fc26MwT+3YhowRlBepb jnVB81jEdBQNnzPwsNvy+afymDL30WVFH/6MnHu48QrIps2+uxDEj6yOPKokH/Gg== Received: by filterdrecv-5848969764-xx99g with SMTP id filterdrecv-5848969764-xx99g-1-643EC972-12 2023-04-18 16:46:42.348896529 +0000 UTC m=+4814115.110580039 Received: from bionic.localdomain (unknown) by geopod-ismtpd-4 (SG) with ESMTP id ZQUDanroR5C8657oBKfI7g Tue, 18 Apr 2023 16:46:42.149 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v2 15/17] clk: rockchip: rk3588: Add limited TMCLK_EMMC clock support Date: Tue, 18 Apr 2023 16:46:42 +0000 (UTC) Message-Id: <20230418164618.2571309-16-jonas@kwiboo.se> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230418164618.2571309-1-jonas@kwiboo.se> References: <20230418164618.2571309-1-jonas@kwiboo.se> MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0hw12IXzdChwhxbjEO?= =?us-ascii?Q?TAfo9Mpk2=2FAN7KXqnskgnjSzBSj=2Ffsy9U1SybTq?= =?us-ascii?Q?3CN=2Fj1CB+3o=2FBzogdNRTsDuxPZOLmbmTkmX0oo1?= =?us-ascii?Q?9ySq1rNwXq7qZB5sLnW3V7lm8UkZaU2zGNGKjw3?= =?us-ascii?Q?W0eEN69m1m2tKjBcBCGlBaNLJBYvGCbEHUptaf?= To: Kever Yang , Simon Glass , Philipp Tomsich , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de, Jonas Karlman , Eugen Hristev X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The device tree sdhci node reference the TMCLK_EMMC clock, add limited support this clock to rk3588 cru driver. Fixes probe of sdhci driver. Signed-off-by: Jonas Karlman --- v2: - No change drivers/clk/rockchip/clk_rk3588.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3588.c b/drivers/clk/rockchip/clk_rk3588.c index 41e31b61a55b..d0cc19b47883 100644 --- a/drivers/clk/rockchip/clk_rk3588.c +++ b/drivers/clk/rockchip/clk_rk3588.c @@ -1553,6 +1553,7 @@ static ulong rk3588_clk_get_rate(struct clk *clk) case DCLK_DECOM: rate = rk3588_mmc_get_clk(priv, clk->id); break; + case TMCLK_EMMC: case TCLK_WDT0: rate = OSC_HZ; break; @@ -1702,6 +1703,7 @@ static ulong rk3588_clk_set_rate(struct clk *clk, ulong rate) case DCLK_DECOM: ret = rk3588_mmc_set_clk(priv, clk->id, rate); break; + case TMCLK_EMMC: case TCLK_WDT0: ret = OSC_HZ; break; -- 2.40.0