From patchwork Mon Apr 23 05:59:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 133957 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp619247lji; Sun, 22 Apr 2018 23:05:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx48J+XWYSh79eg8n3nCgSZgI3qCowd0h5VGARoM2Tt+nVJphH4GJ0RpmAGMKiJ64wIc5pImt X-Received: by 10.80.170.135 with SMTP id q7mr26477197edc.124.1524463542668; Sun, 22 Apr 2018 23:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524463542; cv=none; d=google.com; s=arc-20160816; b=qUZC3bWi/TI7ozEjztUOJJMIYV3jtMhK/ibWhiDXdsHMeSxDUkdSNZEyT5046s5shD JM+HZRm/7nWkknhEJSpPfHkTPxs00JBIdl//jqhTwDeyl4iGcgIe+QQ3Ny7lfYrRztcU d6ZzZ/1TZDxIyrrZkASUvE2f65dIsxn6ho5S/py+txZnZjW7gwPYS1Rhz5uyBL+qE24s GsFdsRwGUd17g3my1i/rrIqF/IsL/15CBcafRFuFbErgAB8wHyFs6J6GtKuOlpRBTnYw oTKVhMeZepI2OjMz2J6hLvi89eMQvaC62T+k9LimngPd6Xb7dRKJq7Mr9n+kANHHKenv Oqtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=IrTHxzkVCN8+z9+2qvr6/iX1wIt/APVlou4c/FACISY=; b=EAfCYLay9NRlY+AqywShnr+PD5g6TpdodeN7xsvrxzELjPEd/6TOnwesk+ZKb2JbFn sYG5Uhj5IpYHp29HqLNUMOAsu6LC+Bl6T1rOlxHSu4ZY3g3scCUIKJLzYOYcwMcQhn4H UGa/aUzrTSQbCvk7RHduq87IGcAq0lTFJ0DwuJWn4gUphFwptVvZaokMkHds0xyjuGZ7 x3FJz8u1sO28/9O3M6gSojI9Qdw07+/N16Ym2ER/i/NbEd2prbgircrdSCeERZ/vBfD6 Mp2TXYlp1m9kwPgS++3/iunWajcuKFcA8alPyvgBxqmcPwzzxIkgtVAh3+JiRsgFF519 7kkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id t5si3376231edt.292.2018.04.22.23.05.42; Sun, 22 Apr 2018 23:05:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 390ACC21DD9; Mon, 23 Apr 2018 06:02:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 57889C21E31; Mon, 23 Apr 2018 06:00:09 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BCF0CC21D74; Mon, 23 Apr 2018 05:59:52 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id D51B8C21BE5 for ; Mon, 23 Apr 2018 05:59:51 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 84FDCAE8F; Mon, 23 Apr 2018 05:59:51 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Mon, 23 Apr 2018 07:59:48 +0200 Message-Id: <20180423055950.78818-7-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180423055950.78818-1-agraf@suse.de> References: <20180423055950.78818-1-agraf@suse.de> Cc: Heinrich Schuchardt , schwab@suse.de, Greentime Hu Subject: [U-Boot] [PATCH v3 6/8] distro: Extend with RISC-V defines X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" While we don't have UEFI naming conventions for RISC-V file paths yet, we need to search for something. So let's copy the removable file paths from the RISC-V edk2 port. Also add the official VCI strings that contain the standardized RISC-V architecture ID fields. Signed-off-by: Alexander Graf Reviewed-by: Heinrich Schuchardt --- v1 -> v2: - Use edk2 default boot file names v2 -> v3: - Use official values for vci --- include/config_distro_bootcmd.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index f567cebd38..989b5556af 100644 --- a/include/config_distro_bootcmd.h +++ b/include/config_distro_bootcmd.h @@ -100,6 +100,10 @@ #define BOOTEFI_NAME "bootia32.efi" #elif defined(CONFIG_X86_RUN_64BIT) #define BOOTEFI_NAME "bootx64.efi" +#elif defined(CONFIG_CPU_RISCV_32) +#define BOOTEFI_NAME "bootriscv32.efi" +#elif defined(CONFIG_CPU_RISCV_64) +#define BOOTEFI_NAME "bootriscv64.efi" #endif #endif @@ -241,6 +245,7 @@ #if defined(CONFIG_CMD_DHCP) #if defined(CONFIG_EFI_LOADER) +/* http://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xml */ #if defined(CONFIG_ARM64) #define BOOTENV_EFI_PXE_ARCH "0xb" #define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00011:UNDI:003000" @@ -251,6 +256,12 @@ /* Always assume we're running 64bit */ #define BOOTENV_EFI_PXE_ARCH "0x7" #define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00007:UNDI:003000" +#elif defined(CONFIG_CPU_RISCV_32) +#define BOOTENV_EFI_PXE_ARCH "0x19" +#define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00025:UNDI:003000" +#elif defined(CONFIG_CPU_RISCV_64) +#define BOOTENV_EFI_PXE_ARCH "0x1b" +#define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00027:UNDI:003000" #else #error Please specify an EFI client identifier #endif