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 5D4EFC61DA4 for ; Mon, 6 Mar 2023 07:02:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 80FD785BBD; Mon, 6 Mar 2023 08:02:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (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=1678086167; bh=n1t8IiQed8WYCZ0d5agP7LKDEXdWvY+rMfEZAr+qsdo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=BdT4kXZBRwzfECzZVfdr1C2ykkVxQLjJQZQeUiZhYEOFFtrBeed8m00ggPFAQBbOr qJRQJM6ZMPH1130ry97xLxHzOEvCxbt+ylvYRvc6LVe13M3SVV7rrH64zSRGbu4Z68 wWPgJzYEBwdOwunlB9TN6B3xOBkcDyTov76g6SUN6xYrctdgRj5TZj7sp+miA5E7MM 6RfOHCtLHl4DGv2fr0aYGWMaeUeRLUxawom9bu5LLfq2S6yPwQvirQGus76whFLVrZ qoAvVbsIk91gs6X5OVRJ08i2JawDcOmiiQZRWw+NJHoacR12GebBtdIQwHpH6tJxrR 6yTXZouB1q3Qg== Received: by phobos.denx.de (Postfix, from userid 109) id 99D8385BD0; Mon, 6 Mar 2023 08:02:46 +0100 (CET) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:101:465::204]) (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 E9EB78568E for ; Mon, 6 Mar 2023 08:02:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (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-204.mailbox.org (Postfix) with ESMTPS id 4PVTzj4wjQz9sZj; Mon, 6 Mar 2023 08:02:41 +0100 (CET) Message-ID: Date: Mon, 6 Mar 2023 08:02:40 +0100 MIME-Version: 1.0 Subject: Re: [RESEND PATCH] arm: mvebu: Set common SPI flash default speed and mode Content-Language: en-US To: Tony Dinh , U-Boot Mailing List Cc: Tom Rini , Martin Rowe , =?UTF-8?B?UGFsaSBSb2jvv71y?= , Josua Mayer References: <20230303032730.4320-1-mibodhi@gmail.com> From: Stefan Roese In-Reply-To: <20230303032730.4320-1-mibodhi@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.6 at phobos.denx.de X-Virus-Status: Clean On 3/3/23 04:27, Tony Dinh wrote: > CONFIG_SF_DEFAULT_SPEED is used in SPL SPI to configure and probe the > flash device during DM SPI uclass probing process, if the > spi-max-frequency is not available in the DTB. Currently the max > frequency is not available, because of the probing mechanism in SPI > uclass has not been fully updated to DM. > > The CONFIG_SF_DEFAULT_SPEED is set to 1Mhz if a board defconfig > does not specify it. This speed is too slow and result in a few > seconds delay while the u-boot image is loaded from flash. Based on a > survey of the device tree specifications for MVEBU boards, a sane default > value should be 10Mhz. The default of 10Mhz enables an almost > instantaneously loading of the u-boot image. > > Note that this patch depends on this patch series (has been merged to > u-boot-marvell/next): > https://lists.denx.de/pipermail/u-boot/2023-March/511038.html > > - RESEND: correct spelling of SF_DEFAULT_MODE > > Signed-off-by: Tony Dinh Reviewed-by: Stefan Roese Thanks, Stefan > --- > > arch/arm/mach-mvebu/Kconfig | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig > index cdb1776a66..8f744e2177 100644 > --- a/arch/arm/mach-mvebu/Kconfig > +++ b/arch/arm/mach-mvebu/Kconfig > @@ -424,6 +424,16 @@ config SECURED_MODE_CSK_INDEX > default 0 > depends on SECURED_MODE_IMAGE > > +config SF_DEFAULT_SPEED > + int "Default speed for SPI flash in Hz" > + default 10000000 > + depends on MVEBU_SPL_BOOT_DEVICE_SPI > + > +config SF_DEFAULT_MODE > + hex "Default mode for SPI flash" > + default 0x0 > + depends on MVEBU_SPL_BOOT_DEVICE_SPI > + > source "board/solidrun/clearfog/Kconfig" > source "board/kobol/helios4/Kconfig" > 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