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 6FAD9C6FD1D for ; Thu, 30 Mar 2023 04:55:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E9FCA85CA1; Thu, 30 Mar 2023 06:55:35 +0200 (CEST) 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=1680152136; bh=pZJwJd4WAf/9g6yuesL0WjnPTuYTaLml0qgWoMgUgA0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=SnEaWjMDOvYvIFBd64iY49LjgvaleALVahw45NurydICwkQjre4u1Ru3NATkh12m/ pEMDs0M7vX0VxMV06tBZrXk3zLBAnBghP1OqLYidYN/4hVrD7PugRtRlSEdIrmaemw hkswzSSQiKxLIotwUuCsp42NOIcgHTy4DVtAnEMG+m4HXuLHrEZ+xeFSmONZkyeAKl w4U1+OdzOweIFLj7gsaqLnFcgJ4lldredptM88OUCzFwz/m6IISoUj67CZmUDKcRhs OJxxwkCoG9z+Nf3S0mKr7jsvQSSZcyuiIllSyzvqpouE0KiAAv0rwxC1XH7ytbW7tG vdrhsWAczhJpg== Received: by phobos.denx.de (Postfix, from userid 109) id A0F4685C5D; Thu, 30 Mar 2023 06:55:33 +0200 (CEST) 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 C9BA685B43 for ; Thu, 30 Mar 2023 06:55:30 +0200 (CEST) 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 smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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 4PnB1r4b25z9sWs; Thu, 30 Mar 2023 06:55:28 +0200 (CEST) Message-ID: <008d1297-4d1b-89fc-4aef-405d30adc824@denx.de> Date: Thu, 30 Mar 2023 06:55:27 +0200 MIME-Version: 1.0 Subject: Re: [PATCH v2 u-boot-mvebu 1/6] arm: mvebu: Remove A38x BOOT_FROM_UART_ALT 0x3f constant To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: u-boot@lists.denx.de References: <20230304105036.19189-1-pali@kernel.org> <20230329190335.9861-1-pali@kernel.org> <20230329190335.9861-2-pali@kernel.org> Content-Language: en-US From: Stefan Roese In-Reply-To: <20230329190335.9861-2-pali@kernel.org> 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 3/29/23 21:03, Pali Rohár wrote: > A385 BootROM treats strapping configuration 0x3f as invalid. When booting > fails (e.g. because of invalid configuration) then BootROM fallbacks to > UART booting. > > Detecting BootROM fallback to UART booting is implemented in U-Boot since > commit 2fd4284051e3 ("ARM: mach-mvebu: handle fall-back to UART boot"). > > So there is no need to define BOOT_FROM_UART_ALT constant and special > handling for it anymore, remove it. > > This change effectively revers commit f3a88e2ca17a ("arm: mvebu: fix boot > from UART on ClearFog Base"). > > Signed-off-by: Pali Rohár > Tested-by: Tony Dinh > Tested-by: Martin Rowe Reviewed-by: Stefan Roese Thanks, Stefan > --- > arch/arm/mach-mvebu/cpu.c | 3 --- > arch/arm/mach-mvebu/include/mach/soc.h | 1 - > 2 files changed, 4 deletions(-) > > diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c > index 8b91e174c4c1..b72037d45b1c 100644 > --- a/arch/arm/mach-mvebu/cpu.c > +++ b/arch/arm/mach-mvebu/cpu.c > @@ -111,9 +111,6 @@ u32 get_boot_device(void) > return BOOT_DEVICE_MMC1; > #endif > case BOOT_FROM_UART: > -#ifdef BOOT_FROM_UART_ALT > - case BOOT_FROM_UART_ALT: > -#endif > return BOOT_DEVICE_UART; > #ifdef BOOT_FROM_SATA > case BOOT_FROM_SATA: > diff --git a/arch/arm/mach-mvebu/include/mach/soc.h b/arch/arm/mach-mvebu/include/mach/soc.h > index 6edd2e2d79c7..4a9463292fcb 100644 > --- a/arch/arm/mach-mvebu/include/mach/soc.h > +++ b/arch/arm/mach-mvebu/include/mach/soc.h > @@ -164,7 +164,6 @@ > #define BOOT_FROM_SATA 0x22 > #define BOOT_FROM_UART 0x28 > #define BOOT_FROM_SATA_ALT 0x2A > -#define BOOT_FROM_UART_ALT 0x3f > #define BOOT_FROM_SPI 0x32 > #define BOOT_FROM_MMC 0x30 > #define BOOT_FROM_MMC_ALT 0x31 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