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 6F172C433F5 for ; Fri, 11 Mar 2022 13:50:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9117F8306E; Fri, 11 Mar 2022 14:50:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=akkea.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=akkea.ca header.i=@akkea.ca header.b="jMJjpSsF"; dkim=pass (1024-bit key) header.d=akkea.ca header.i=@akkea.ca header.b="jMJjpSsF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2FEF083ADA; Fri, 11 Mar 2022 14:50:27 +0100 (CET) Received: from node.akkea.ca (li1434-30.members.linode.com [45.33.107.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E9A0F8306E for ; Fri, 11 Mar 2022 14:50:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=akkea.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=angus@akkea.ca Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id D627D4E200E; Fri, 11 Mar 2022 13:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1647006620; bh=AYsv/0ZMxdcEMh2bdeu8LZtpbrhQjGxhZRHrmfeLnU4=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=jMJjpSsFBa+qq9kMQm3LSQHDCz4rWXXYgzEIdA0GxrPTXfJ23NZjB9b8ZeTkLl/U3 uJlgbRFjMyseCHUQyuDKsma5vNVuRfJpOPTOGwMnVuFM3wgWfATSW1o0KezUi1U9O8 PCBO0RvS5f2mDibl6W132HYtrafDJoAn02mFnDBc= Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aGDwOESwQZWI; Fri, 11 Mar 2022 13:50:20 +0000 (UTC) Received: from www.akkea.ca (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id 2C9AC4E200C; Fri, 11 Mar 2022 13:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1647006620; bh=AYsv/0ZMxdcEMh2bdeu8LZtpbrhQjGxhZRHrmfeLnU4=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=jMJjpSsFBa+qq9kMQm3LSQHDCz4rWXXYgzEIdA0GxrPTXfJ23NZjB9b8ZeTkLl/U3 uJlgbRFjMyseCHUQyuDKsma5vNVuRfJpOPTOGwMnVuFM3wgWfATSW1o0KezUi1U9O8 PCBO0RvS5f2mDibl6W132HYtrafDJoAn02mFnDBc= MIME-Version: 1.0 Date: Fri, 11 Mar 2022 05:50:20 -0800 From: Angus Ainslie To: Marek Vasut Cc: u-boot@lists.denx.de, Lukasz Majewski , Sean Anderson , sbabic@denx.de, festevam@gmail.com, kernel@puri.sm Subject: Re: [PATCH] clk: imx8mq: Add a clock driver for the imx8mq In-Reply-To: <4f4067bf-abb9-9281-61ec-d5191103b259@denx.de> References: <20220311005302.4038985-1-angus@akkea.ca> <4f4067bf-abb9-9281-61ec-d5191103b259@denx.de> Message-ID: X-Sender: angus@akkea.ca User-Agent: Roundcube Webmail/1.3.17 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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.5 at phobos.denx.de X-Virus-Status: Clean On 2022-03-11 02:18, Marek Vasut wrote: > On 3/11/22 01:53, Angus Ainslie wrote: >> Based off the imx8mm u-boot driver and the linux kernel driver > > What does this patch do again ? (it is impossible to tell from the > one-line commit message above unless you have it back-to-back with > Subject). > > Also, if these tables come from Linux, please include the upstream > linux kernel commit ID from which these tables come from, so next time > the tables need to be synchronized from Linux to U-Boot, we could only > pick the new commits from Linux since the base commit. > Ok I'll update the description. > [...] > >> +static const char *imx8mq_a53_core_sels[] = {"arm_a53_div", >> "arm_pll_out", }; >> +static const char *imx8mq_a53_sels[] = {"clock-osc-25m", >> "arm_pll_out", "sys_pll2_500m", >> + "sys_pll2_1000m", "sys_pll1_800m", "sys_pll1_400m", >> + "audio_pll1_out", "sys_pll3_out", }; >> + >> +static const char *imx8mq_ahb_sels[] = {"clock-osc-25m", >> "sys_pll1_133m", "sys_pll1_800m", >> + "sys_pll1_400m", "sys_pll2_125m", "sys_pll3_out", >> + "audio_pll1_out", "video_pll1_out", }; >> + >> +static const char *imx8mq_enet_axi_sels[] = {"clock-osc-25m", >> "sys_pll1_266m", "sys_pll1_800m", >> + "sys_pll2_250m", "sys_pll2_200m", "audio_pll1_out", >> + "video_pll1_out", "sys_pll3_out", }; >> + >> +#ifndef CONFIG_SPL_BUILD > > You might want to invert the logic -- ifdef CONFIG_SPL_BUILD -- and > then NOT include a lot of these clock in SPL to reduce the size of the > SPL. > I don't use it in the SPL so just mirrored what was in the imx8mm driver. I think I prefer to just drop them and then if there is an SPL user they can figure out where to disable SPL clocks based on the subsystems enabled rather than the SPL_BUILD flag. > [...] > > The rest looks good to me, thanks. Thanks can I add a Reviewed-by ?