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 571FAC6FD18 for ; Wed, 29 Mar 2023 19:05:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C5EDD85E6A; Wed, 29 Mar 2023 21:05:37 +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="a4MPsBxA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 84D4C85E05; Wed, 29 Mar 2023 21:04:46 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (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 37FCF86029 for ; Wed, 29 Mar 2023 21:04:32 +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: 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 60F1EB82421; Wed, 29 Mar 2023 19:04:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3FFDC433A4; Wed, 29 Mar 2023 19:04:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680116671; bh=PCkCJSSmgBd2m58nQtON+7FMWAFAiae6UhSuIAQJ/9c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a4MPsBxA0S4t+e9vxyMst1OnvN0KmF77SZomM1Fps8AgtPsBclPLe4OQsd0GKXzUX AZAZms8t1KqU1PmUsu0lXy3/AcEVxSg8SYbEbBsGy8LbGMUCNUY79gauIjnnODzQkM NarXKm9eAYa4adQOsJ8+y5C6K9EgYyPaGd5dDqLRZcqgN2NKoAziD27NbAQzx25Cx2 s5OsMoMVE5amuzNwHydyyrkdeNgZ4XZrWq4rEs4c+nLGo5ptJVX8U/1uQthdn6PLgq qEywmxKB6YKeQHa/XHQf280IPuP0O1iq8QhCZrco4RMm16Tn65PcMPsNFM9+0l7PzW pyIy4wGjqJz5w== Received: by pali.im (Postfix) id 4558DE85; Wed, 29 Mar 2023 21:04:28 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese Cc: u-boot@lists.denx.de Subject: [PATCH v2 u-boot-mvebu 6/6] arm: mvebu: Define all options for AXP BOOT_FROM_* macros Date: Wed, 29 Mar 2023 21:03:35 +0200 Message-Id: <20230329190335.9861-7-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230329190335.9861-1-pali@kernel.org> References: <20230304105036.19189-1-pali@kernel.org> <20230329190335.9861-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.8 at phobos.denx.de X-Virus-Status: Clean Definitions are according to the MV78460 Hardware Specifications. Signed-off-by: Pali Rohár Tested-by: Tony Dinh Tested-by: Martin Rowe --- 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 c04fa339c31e..dc68d406f99e 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 CFG_SYS_TCLK 250000000 /* 250MHz */ #endif -- 2.20.1