Message ID | 20230427203726.11835-5-ivprusov@sberdevices.ru |
---|---|
State | RFC |
Delegated to: | Sean Anderson |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=sberdevices.ru header.i=@sberdevices.ru header.a=rsa-sha256 header.s=mail header.b=kgZQIFDj; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q6ndw0blnz23s0 for <incoming@patchwork.ozlabs.org>; Fri, 28 Apr 2023 06:39:16 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D7E538628C; Thu, 27 Apr 2023 22:38:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=sberdevices.ru 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=sberdevices.ru header.i=@sberdevices.ru header.b="kgZQIFDj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0F37C86385; Thu, 27 Apr 2023 22:38:29 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F1B998639E for <u-boot@lists.denx.de>; Thu, 27 Apr 2023 22:38:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=sberdevices.ru Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=IVPrusov@sberdevices.ru Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 524B75FD19; Thu, 27 Apr 2023 23:38:22 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1682627902; bh=4nYVzLCpEMTTcFXfO70EDG+BkICmQWckwNKqSIHwL0Y=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=kgZQIFDjn10uQZjuAXZKcxjtmUw4HeMoeN7ImKCcjltC3pdC0an/687m9Za0xnv5z f7KggEv2yKFisUj0s2DP/g3bT6VO9SMh9mnrpES4GEa7gKwk3twFU/aB4EybSMTi3k cYipVuuJHqz7QRv+dFjJW86ABLueOn1u9txpLyM4H3A9xRlsf6Wa6RUTSh6SyEYSGn 6v5HtHyugKFcOZDSfRjzLeEwjNaP0okK8Aj4cUYIz9C26wtCqdFlOGvygOyiiLH/y+ xfi2dRPwC/qokcD95prU5hMSPjUyahunSJPNKw19Aq/tXJqhAnKTRLFupzdl0OSBmm oZ8KcTaNDcNuQ== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Thu, 27 Apr 2023 23:38:22 +0300 (MSK) From: Igor Prusov <ivprusov@sberdevices.ru> To: Michal Simek <michal.simek@amd.com>, Daniel Schwierzeck <daniel.schwierzeck@gmail.com>, Lukasz Majewski <lukma@denx.de>, Sean Anderson <seanga2@gmail.com>, Ryan Chen <ryan_chen@aspeedtech.com>, Chia-Wei Wang <chiawei_wang@aspeedtech.com>, Aspeed BMC SW team <BMC-SW@aspeedtech.com>, Joel Stanley <joel@jms.id.au>, Stefan Roese <sr@denx.de>, Patrick Delaunay <patrick.delaunay@foss.st.com>, Patrice Chotard <patrice.chotard@foss.st.com> CC: <prusovigor@gmail.com>, <kernel@sberdevices.ru>, Igor Prusov <ivprusov@sberdevices.ru>, <u-boot@lists.denx.de>, <uboot-stm32@st-md-mailman.stormreply.com> Subject: [RFC PATCH v1 4/7] clk: Add dump operation to clk_ops Date: Thu, 27 Apr 2023 23:37:23 +0300 Message-ID: <20230427203726.11835-5-ivprusov@sberdevices.ru> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230427203726.11835-1-ivprusov@sberdevices.ru> References: <20230427203726.11835-1-ivprusov@sberdevices.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH02.sberdevices.ru (172.16.1.5) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/04/27 14:43:00 #21175431 X-KSMG-AntiVirus-Status: Clean, skipped X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
clk: Switch from soc_clk_dump to clk_ops function
|
expand
|
diff --git a/include/clk-uclass.h b/include/clk-uclass.h index 65ebff9ed2..f29f4c0d01 100644 --- a/include/clk-uclass.h +++ b/include/clk-uclass.h @@ -39,6 +39,9 @@ struct clk_ops { int (*set_parent)(struct clk *clk, struct clk *parent); int (*enable)(struct clk *clk); int (*disable)(struct clk *clk); +#if IS_ENABLED(CONFIG_CMD_CLK) + int (*dump)(struct udevice *dev); +#endif }; #if 0 /* For documentation only */
This adds dump function to struct clk_ops which should replace soc_clk_dump. It allows clock drivers to provide custom dump implementation without overriding generic CCF dump function. Signed-off-by: Igor Prusov <ivprusov@sberdevices.ru> --- include/clk-uclass.h | 3 +++ 1 file changed, 3 insertions(+)