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 7D00FC76188 for ; Mon, 3 Apr 2023 20:51:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 39CC885F06; Mon, 3 Apr 2023 22:49:30 +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="FJOA9hVo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 25C5685D37; Mon, 3 Apr 2023 22:48:39 +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 9CD2485D77 for ; Mon, 3 Apr 2023 22:48:31 +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=VK+/dyNemqJPaEnvjzimFb+qPYuxCKWGvMI7wG/WRJc=; b=FJOA9hVoDP5armlgJ0wGwpF1hkeDCa2IKUuVRCGcLbOr5EH69whO1hrMhIOm1eaJ1eTq 7z+Ep6oID5wrtBRwqdCvJPQ7HieWll6469R48NnyJt9SDzPAOfxOhqkvppvcWOjKZ1qyOc pc+4pgHcnS6lhZFZsHSwG7uyQxokcBGV2zI5OEiuh5owuR07agPxQ4KVx0KFI/rEttTpUa +Z81yo80JJ7UoJ2naknM2s95ww3Jnqc3iz5Os2yZ4zvzs7Wms7L2h1pYfktEkq2FbAjw9f fL9fjjfjpEk5bnzdEReAgAXH3Iwsw/UBzVYS5oPbsiO9l5QKLnCJaI98uEjDK5Vw== Received: by filterdrecv-59cb65cf6d-lt5nr with SMTP id filterdrecv-59cb65cf6d-lt5nr-1-642B3B9E-6 2023-04-03 20:48:30.261700351 +0000 UTC m=+3532525.046793250 Received: from bionic.localdomain (unknown) by geopod-ismtpd-10 (SG) with ESMTP id klD9V5NbRy2KhU0GPhgIZg Mon, 03 Apr 2023 20:48:30.068 +0000 (UTC) From: Jonas Karlman Subject: [PATCH 15/17] clk: rockchip: rk3588: Add limited TMCLK_EMMC clock support Date: Mon, 03 Apr 2023 20:48:30 +0000 (UTC) Message-Id: <20230403204812.2049612-16-jonas@kwiboo.se> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230403204812.2049612-1-jonas@kwiboo.se> References: <20230403204812.2049612-1-jonas@kwiboo.se> MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h4uQw2zuyDDdDaAIU?= =?us-ascii?Q?Teun8VcKkTP6K+fsaMI8Ev1QOg1XP9fi80tLW7c?= =?us-ascii?Q?uXlsqtJogsix5X8uDKe9FIT5lxW2kaUwb5z2uim?= =?us-ascii?Q?YMHGyThkXGK9wbARToasJ2k1+t=2FehSZdAJ4QYCs?= =?us-ascii?Q?k+OhJXwz515ZwfA3eGBisrXuIi9cAmeQ6TC0cw?= To: Kever Yang , Simon Glass , Philipp Tomsich , Lukasz Majewski , Sean Anderson Cc: Eugen Hristev , u-boot@lists.denx.de, Jonas Karlman 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 --- 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