From patchwork Wed Apr 18 13:40:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 133629 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp5895861ljb; Wed, 18 Apr 2018 06:44:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx49kXndSxoxMgqUL/njD7aH5Tql/1wS+2/aRJHFqJwddVuS28bA0/55pj1iR+LREmPlLWSxm X-Received: by 10.80.146.166 with SMTP id k35mr3284763eda.110.1524059048407; Wed, 18 Apr 2018 06:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524059048; cv=none; d=google.com; s=arc-20160816; b=sIJ2hhwWXyYFKRt2OeGTAnyh7mUAtQyXu3z1DMUoDmgtyoSRDaolvVCT3hLdNd/A+4 UyDmSroZWZXy0juofBmiqyV2iETyu2QK1ghsHDrmCQDZZTc+MRA/Z6+Ozykkf1S0/J/J zaOWV4gxasS0NHmjbEwpYYGT1NFTJ9G0TqN8+Lp0MDRDPCCxd399N6g98TrWdlQR9vRL PWBu8R5fFU2U2m0eiBwpw0bz9EXguwDQrPocmWjE1S4I08lVNgg4VuK/pyUrNILjxk2J HcSk9OcSd/wq2Aa0axdTBjcg2vXd4rCx2X6kawMUBxV2MwSNbgV67CZ57FPJMonGpdku Y/dg== 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=5eTxJ6E/l952YcXOQZg6VPk3DuBDklkoGC6miocZPLE=; b=GgMDIoMAZjD0QyazkFKdJwHV4JcH+9nbAshCWiTqlyWLcylvECxjPwjf72iQpdkuaK 3zk4zcXzPU0v28VpuzOfkubv1voxQDv9EKU7jq5JSpIebTazzFyhKKZVRf9XE2rBb4w5 Yrgv3mGIXz47ahsdrfvXKDlU623lEH2MEhU6yS4e2l5E3RZWVfMG2C6LbNbS5PO48ch1 xZBaaZH6tPBPPlnmLdkb7VG7X9xjS9ehAt70Z9TmZzL8gkOvYE23dXuXVu7+LD0NuZ7O neayaLLX485U2ccEClCMQAXxj5NLPH8Ri6tT0wLmiG6Y3n9Zx/Pc7JqXilpDkKuUEaHd LfTg== 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 z3si632655eda.417.2018.04.18.06.44.08; Wed, 18 Apr 2018 06:44:08 -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 D04F0C21C8B; Wed, 18 Apr 2018 13:42:06 +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 CF6B8C21F00; Wed, 18 Apr 2018 13:40:41 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 87335C21D4A; Wed, 18 Apr 2018 13:40:34 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id A2E7FC21C93 for ; Wed, 18 Apr 2018 13:40:33 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 040CEAC99; Wed, 18 Apr 2018 13:40:33 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Wed, 18 Apr 2018 15:40:28 +0200 Message-Id: <20180418134030.55127-7-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180418134030.55127-1-agraf@suse.de> References: <20180418134030.55127-1-agraf@suse.de> Cc: Heinrich Schuchardt , Greentime Hu Subject: [U-Boot] [PATCH 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 --- 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..7b95872958 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 "bootrv32.efi" +#elif defined(CONFIG_CPU_RISCV_64) +#define BOOTEFI_NAME "bootrv64.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