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 B2BB3EB64DD for ; Thu, 13 Jul 2023 08:16:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CA4ED8637D; Thu, 13 Jul 2023 10:16:42 +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=1689236203; bh=8hnQX+2123dzzjuO6SI5+1KzehixJTe56YRKjqi507A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=GmWPBpjJ2GdvQHobZAbrQH4SyjCDEtYZHR80pig9iKkB8NkXthwNOikbMnSsnp9ae ZaTshbBdIe2i3558FoKVE533uVwEL2ckXoFNlS0Ln5eAITsaG5gbn6ZUWnn7WKRyEg vv/r9iKlBLG9k042CrRo//E3ez8vIqW4pV+RShlBMKTQ+MfmUyX0Gof655y28k2NOy nqT2D4S8c7gvXD4GjpkmRBXxplgm/6NKhSbEansahXuwcG1jg6+F2t/Nt372MWlS/W qcrs3FP95XM5/beCu7N96mTjFhCdlDA0jWm2wZhzANDY7Bv9l33lkw9tn4aFqzVqcE FX2HRy1HC0YSg== Received: by phobos.denx.de (Postfix, from userid 109) id 9DC4B8637D; Thu, 13 Jul 2023 10:16:41 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [80.241.59.207]) (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 670A3861CE for ; Thu, 13 Jul 2023 10:16:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4R1nWT2znVz9sQF; Thu, 13 Jul 2023 10:16:37 +0200 (CEST) Message-ID: Date: Thu, 13 Jul 2023 10:16:36 +0200 MIME-Version: 1.0 Subject: Re: [PATCH v2 2/6] arm: mvebu: ac5: Define mvebu_get_nand_clock() Content-Language: en-US To: Chris Packham , dario.binacchi@amarulasolutions.com, michael@amarulasolutions.com Cc: chris.packham@alliedtelesis.co.nz, u-boot@lists.denx.de References: <20230709224737.338525-1-judge.packham@gmail.com> <20230709224737.338525-3-judge.packham@gmail.com> From: Stefan Roese In-Reply-To: <20230709224737.338525-3-judge.packham@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 On 7/10/23 00:47, Chris Packham wrote: > The NF_CLK for the AC5 SoC runs at 400MHz. There's no strapping > or gating require so just add a mvebu_get_nand_clock() that > returns this value. > > Signed-off-by: Chris Packham Reviewed-by: Stefan Roese Thanks, Stefan > --- > arch/arm/mach-mvebu/alleycat5/soc.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/arm/mach-mvebu/alleycat5/soc.c b/arch/arm/mach-mvebu/alleycat5/soc.c > index dc69f46eedb2..734b0a87dd49 100644 > --- a/arch/arm/mach-mvebu/alleycat5/soc.c > +++ b/arch/arm/mach-mvebu/alleycat5/soc.c > @@ -255,6 +255,12 @@ void soc_print_clock_info(void) > printf("\tMSS %4d MHz\n", 200); > } > > +/* Return NAND clock in Hz */ > +u32 mvebu_get_nand_clock(void) > +{ > + return 400 * 1000000; > +} > + > /* > * Override of __weak int mach_cpu_init(void) : > * SoC/machine dependent CPU setup Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de