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 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 ABB2AC678DB for ; Sat, 4 Mar 2023 10:53:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 35A3E85DAF; Sat, 4 Mar 2023 11:51:59 +0100 (CET) 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="pR2whVz9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AA046859D7; Sat, 4 Mar 2023 11:51:48 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (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 3042385D99 for ; Sat, 4 Mar 2023 11:51:41 +0100 (CET) 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: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D45A1B816A0; Sat, 4 Mar 2023 10:51:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 521E9C433EF; Sat, 4 Mar 2023 10:51:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677927099; bh=AUmK7O8/xEqRXez2hDfPkWaCMobEf4irKcnCAiX6TjA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pR2whVz9B9eYLetJXdpa89D5uGRhXLA9QfvZUIq2UkMOU9JEGSKT3UWEv22fIZaGj 41DOSBQjFaSdsyXmkrupyqCIO5Ok92uHA34lS5oRPVtAbdeyowb5y5o6FFuxpTC+/I pdJitbxizq7CMPwz4bckgc3QSbZzQd6g7wNeDylF1G+oGNQCtUQzV+7ocykgC0PQWP dcuilG+/hSQGHDmom/DdhhD1u72AtZJCdktdKu2CMsROQ9gqV/7a1//GLXi2rbcA01 /2EWxrqiGjQpKJFHgt5hGmp62chC/hQmLyyd2onbkrXeMkFic6N1z2OUl2iJnBNumV 0xsyigqpfCMmA== Received: by pali.im (Postfix) id 726E61BDA; Sat, 4 Mar 2023 11:51:35 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Martin Rowe , Tony Dinh , Stefan Roese , Chris Packham , Baruch Siach Cc: u-boot@lists.denx.de Subject: [PATCH RFC u-boot-mvebu 6/6] arm: mvebu: Define all options for AXP BOOT_FROM_* macros Date: Sat, 4 Mar 2023 11:50:36 +0100 Message-Id: <20230304105036.19189-7-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230304105036.19189-1-pali@kernel.org> References: <20230304105036.19189-1-pali@kernel.org> 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.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 Definitions are according to the MV78460 Hardware Specifications. Signed-off-by: Pali Rohár --- arch/arm/mach-mvebu/include/mach/soc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-mvebu/include/mach/soc.h b/arch/arm/mach-mvebu/include/mach/soc.h index 75fe785932c2..49b4c5c7b4d2 100644 --- a/arch/arm/mach-mvebu/include/mach/soc.h +++ b/arch/arm/mach-mvebu/include/mach/soc.h @@ -213,8 +213,12 @@ #define BOOT_DEV_SEL_OFFS 5 #define BOOT_DEV_SEL_MASK (0xf << BOOT_DEV_SEL_OFFS) +#define BOOT_FROM_NOR(x) (x == 0x0) +#define BOOT_FROM_NAND(x) (x == 0x1) #define BOOT_FROM_UART(x) (x == 0x2) #define BOOT_FROM_SPI(x) (x == 0x3) +#define BOOT_FROM_PEX(x) (x == 0x4) +#define BOOT_FROM_SATA(x) (x == 0x5) #define CONFIG_SYS_TCLK 250000000 /* 250MHz */ #endif -- 2.20.1