From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88B0DC433F5 for ; Fri, 29 Oct 2021 12:10:24 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D35B4610EA for ; Fri, 29 Oct 2021 12:10:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D35B4610EA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B9C7F835C1; Fri, 29 Oct 2021 14:10:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="mopIerDH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1BFF983480; Fri, 29 Oct 2021 14:10:18 +0200 (CEST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D8EEE835BA for ; Fri, 29 Oct 2021 14:10:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: by mail.kernel.org (Postfix) with ESMTPSA id 85EF060FC1; Fri, 29 Oct 2021 12:10:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635509411; bh=ilThOKI3LfQz/zSjd4BAfi+Nd+NcTAuBvksOMRUHOEw=; h=From:To:Cc:Subject:Date:From; b=mopIerDHBzg+LuhwBwGwc+3M01qTDqgDRy5dh4RVgE3hXhxBjdnOuC/Brd/7jAGbI DQqBETLhLBQaZKVnXnty3vPORKIKzzYjID3nb54/S2w+gavQLLFmk4fA2KwcEMV5N7 CtTjJfVEAhCTXYbUipaZh+oRDVvEv1mOAR0k0QuogO2hdcNF1QvoUo7ML1sAOMAm/d n52ii4q2JJsSYEu7toXYEMsn8fYWd6/5EHSINOhUJG6jzeWSIe6znCjfd3eb5odPWu hP61cG3kKeKLCi0v6Xh7ewxpHDgzF/IqawOp4CGVZXPS83igHWoZXDD3ZzFMH8dxFx ayneJ48ofAn8A== Received: by pali.im (Postfix) id 26056B57; Fri, 29 Oct 2021 14:10:09 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese Cc: =?UTF-8?q?Marek=20Beh=C3=BAn?= , u-boot@lists.denx.de Subject: [PATCH] arm: mvebu: Fix booting from SATA Date: Fri, 29 Oct 2021 14:09:48 +0200 Message-Id: <20211029120948.29997-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Use proper SATA macro for boot_device switch in spl_boot_device() function. Signed-off-by: Pali Rohár Fixes: 2226ca173486 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header") --- arch/arm/mach-mvebu/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c index cad3f0a48893..73c4b9af3e6d 100644 --- a/arch/arm/mach-mvebu/spl.c +++ b/arch/arm/mach-mvebu/spl.c @@ -199,8 +199,8 @@ u32 spl_boot_device(void) return BOOT_DEVICE_MMC1; #endif #ifdef CONFIG_SPL_SATA - case BOOT_FROM_SATA: - return BOOT_FROM_SATA; + case BOOT_DEVICE_SATA: + return BOOT_DEVICE_SATA; #endif #ifdef CONFIG_SPL_SPI_FLASH_SUPPORT case BOOT_DEVICE_SPI: -- 2.20.1