From patchwork Fri May 19 10:43:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783715 X-Patchwork-Delegate: sbabic@denx.de Return-Path: 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=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=lf+TZJws; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=GJPoj/+J; 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 4QN3Qc1R8Kz20dX for ; Fri, 19 May 2023 20:45:28 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 41CFC862B5; Fri, 19 May 2023 12:44:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493080; bh=MkRsfgLA8newUQ/FpTNKgA++EzZiG1VEEj6YUPm+zs8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=lf+TZJwsce9av7CGkugwyEUN5XFj0Qw3HsJOxTnOJNV6VAuNOzDPGftvdzI9jcqF0 XM8ngMaIkuQ+ft1j/EzzISFv3g/pR492RCpIJiMwwGk9H84UTbUpuFRzf7yTAfMoFQ o9D1fDgOhaieltKsJa41uNVIVKGhMo7MYU74RA18wXcw7brK2Hatx+ItsJ8FDIuL1x SRCOO8bpZ0bh72HJ9VsKyCID1gwWkkO8ZwpCDZAUZphAN5h1UjIrhlKOqJdSpqv7T7 B/K9CVrokMt4YaYgjjb9Y8xm6IX3NYA0v68WnPbY/s+K1kKokBu7lYfL+ZcCHyJaHj PuetClFuz5nJA== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id AA7CA85EE7; Fri, 19 May 2023 12:44:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493069; bh=MkRsfgLA8newUQ/FpTNKgA++EzZiG1VEEj6YUPm+zs8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GJPoj/+Jh+UcbdrEX5pMftsh7LI/lJrvgg3y8b0/o/lPpc82aCGVw/w5nhg+U2CBE FeQDwUQmqU8PyVVl3zRcgqkVjxFvm+/Kl5qQMwM/03rcfIr4ivgNwZxPQGoL2pFNy7 JfAlqyYX16HdIutD7wTmxhEL6lYVXgmPDqoZG7HVYJ7b3ywekaJeJiiSRc6piFZ+4Q ciXdUHIkEw7BWjH+dytAeN57cVm62VPmG7tabX9qAqeu2o+sVLhezrUffj90NmJ/XQ +7cvb3wAChM6ir7OluPYXDezMlsChQZg1Jai0leBS6+ozeXj5U26xswrJPAtJAKREn YB0jkfuYd9RTw== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 04/16] spl: xea: Provide stub DM driver for imx28 clocks Date: Fri, 19 May 2023 12:43:46 +0200 Message-Id: <20230519104359.2048821-5-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 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 This code fixes following WARNING: DTOC spl/dts/dt-plat.c fsl_imx28_clkctrl: WARNING: the driver fsl_imx28_clkctrl was not found in the driver list As imx28 doesn't yet support common clock framework, this prevents from DTOC warnings during SPL build. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/xea.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/board/liebherr/xea/xea.c b/board/liebherr/xea/xea.c index 38e841c5f6..ed2b39f70e 100644 --- a/board/liebherr/xea/xea.c +++ b/board/liebherr/xea/xea.c @@ -203,5 +203,22 @@ int ft_board_setup(void *blob, struct bd_info *bd) return 0; } #endif - +/* + * NOTE: + * + * IMX28 clock "stub" DM driver! + * + * Only used for SPL stage, which is NOT using DM; serial and + * eMMC configuration. + */ +static const struct udevice_id imx28_clk_ids[] = { + { .compatible = "fsl,imx28-clkctrl", }, + { } +}; + +U_BOOT_DRIVER(fsl_imx28_clkctrl) = { + .name = "fsl_imx28_clkctrl", + .id = UCLASS_CLK, + .of_match = imx28_clk_ids, +}; #endif /* CONFIG_SPL_BUILD */