From patchwork Thu Apr 19 15:49:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 133830 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp788907ljf; Thu, 19 Apr 2018 08:50:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx49+hKZmefMlyPkEpg0yYAEuOvmwq6unC2yO2+IolqND/9zL/dcOmyozeH6V05m1zl4aZMZB X-Received: by 10.80.139.249 with SMTP id n54mr9260273edn.216.1524153007408; Thu, 19 Apr 2018 08:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524153007; cv=none; d=google.com; s=arc-20160816; b=tKWpE7v3zXms9LNlVJxQBM8JuAOyqNUj5Z4mjq/9/ZUEBoblQsz6QLKMZ5oiK7Dd6p F65Smz/eIiUk9qHCphr60HU46y4aQtCnmMbUy9og6UIzv8GvVMR7eXN6/SPCGvfruoog txpTPTxN6J0L4M2Hzx1Avse07nPvkFb65gsjzuZ8UjWaUulfB0j8qVoHGwYxBFwNCpF6 c9j1Ybql87Tls5L+WDrT9DfS91VE0MhLM8LFHfzyrcvy1WcdIpkDlUxFFKK/J7LaREC4 9+Oo88zq0wFB3fzjXUft3jWlk70R6Ez5AemoCjR6rng3HnR/x5HxERG4tBA/E9MuZmtk iWiA== 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=MSvzSp1IykHGH9tDHp9+XKWQQds98nj3g373nbIzfvM=; b=SwaXm7a9Sn8qCvom7zQMs05cFkEjzx3ScFxMa9pWNlkJ14z8wT0CRWV14fIxb8rrql YRVrs2sQxeEXEF6eWcbkWFyXYX+okYQ34M/FXnxyjZgQ1jvbKNKVktatXbkfSDmL4LXM UK9722t4RRxmD0DK83/PJU3Va4mcr6FB8IqEX2KfUS6vqAdUC0t32J1ZegMJc08UtFeD 7S69I2u+aac1IR8MAtxlxtS6WmFSWMBsg8bJ978ajECUCu4HGfd2HsYNdP98Q4NlfAfe hilCV0nwAMMj6HeIr4SSfUSfOZp54W110b12iemxRdQa0M/UH/kmSUCEzX1lxFxDkn9g mnMA== 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 x50si3729045edb.80.2018.04.19.08.50.07; Thu, 19 Apr 2018 08:50:07 -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 DFF6EC21FBB; Thu, 19 Apr 2018 15:49:49 +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 70E30C21FB6; Thu, 19 Apr 2018 15:49:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 91961C21D8A; Thu, 19 Apr 2018 15:49:26 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 86974C21D8A for ; Thu, 19 Apr 2018 15:49:25 +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 32CB2AF82; Thu, 19 Apr 2018 15:49:25 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Thu, 19 Apr 2018 17:49:21 +0200 Message-Id: <20180419154923.70719-7-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180419154923.70719-1-agraf@suse.de> References: <20180419154923.70719-1-agraf@suse.de> Cc: Heinrich Schuchardt , schwab@suse.de, Greentime Hu Subject: [U-Boot] [PATCH v2 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 VCI or UEFI naming conventions for RISC-V file paths yet, we need to search for something. So let's make up a few defines that at least allow us to get started until the specs officially include RISC-V. Signed-off-by: Alexander Graf --- v1 -> v2: - Use edk2 default boot file names --- include/config_distro_bootcmd.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index f567cebd38..eefdfb51cc 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 @@ -250,7 +254,15 @@ #elif defined(CONFIG_X86) /* Always assume we're running 64bit */ #define BOOTENV_EFI_PXE_ARCH "0x7" -#define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00007:UNDI:003000" +#define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:0000:UNDI:003000" +#elif defined(CONFIG_CPU_RISCV_32) +/* TODO: Register VCI identifier via RFC */ +#define BOOTENV_EFI_PXE_ARCH "0x5032" +#define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:5032:UNDI:003000" +#elif defined(CONFIG_CPU_RISCV_64) +/* TODO: Register VCI identifier via RFC */ +#define BOOTENV_EFI_PXE_ARCH "0x5064" +#define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:5064:UNDI:003000" #else #error Please specify an EFI client identifier #endif