From patchwork Wed Jul 15 10:09:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1506 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5B8133F1DD for ; Wed, 15 Jul 2020 12:10:49 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id u16sf2069946plq.21 for ; Wed, 15 Jul 2020 03:10:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594807848; cv=pass; d=google.com; s=arc-20160816; b=s4Isc3O5BuV6rFJioIvHKYk5fq9x75SwZVgWVgZOW3lbHfkgAtJ3ZP6ctubP8WTORN 4gIjX3xvh4OTI1agcN8NqcINsXTXTe/jlyEDFWMSPBECpECSEMxoCWGPI3LfA9aRZ2ij brRCz8alxJkMmJf4ElTMzoX2Ifuka62WmSEX5HMEgjldCWvbdyEpnPzYFm/lEJA/0dDJ fG9700l9j2Xr0l+FHEY99zgsWVK/QWyeglxfU87SxIqfaFZ5h/IQUys+D8G7BLY/DIcz Nb+/TgvIJGaBtU1feAHlms6YDCKBAa11ZON0KUQ7JBodDoltu/qzGw7TTbqlZWhW1tiC kNKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=HiaA4n/ZNj0FtkSP/THrPgCoAOagLRL3KFKZ5U+0vak=; b=GwDBvilrN48t+/V4Sh492B5TsKssByyE3WV/AdDRB+BkL+nLlD+ZyyXQCH7CUQvtxK 3g5548pwQ7HCj3sIMPDsRyEe1BtMvWMYhRIUPDGmzv1Seln7O32hWm0iTUA9CpFN+Y00 gx60bpVkKciZOCZiDqyxo60LlWJ1qyCcQEmpgnJFJ3+J5B+XDh+HKi70spRjoXLNLoFT BGOIgz6cnRZOKluK3QJJdhgo6UIe58SyRJ5kS3LG7H2LPfpKhbF0xSiigmRcLqzTF6x8 G8itn3HRYwpWrUFH8YbNzXESdJBILP5kgpGhEFAl2Up/iIhtGTiG9jzmK9f/aA1wZmy9 7vDQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Ndioc2jR; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=HiaA4n/ZNj0FtkSP/THrPgCoAOagLRL3KFKZ5U+0vak=; b=OynzkPK9whqbWe8f6ygia2uTYo7PdUrHYF5lasJ+oYMgJB09WMO/KwADIIxiMnrx1O 1LIL5qm5zkH4cXFJBskV8ZSfNTqzUDVi+HeZ+Iv0ybeixT4oZdRPVU//Cr12jMyQD5d/ cPvTiQsJNzQFCqtC/BwkoJ8Bm2UzfuDzAHaOY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=HiaA4n/ZNj0FtkSP/THrPgCoAOagLRL3KFKZ5U+0vak=; b=a4PWLM+mw0MYpP1K7pTmo6libB/ZsuDUYN5mR3PzXJy4AxQvHZhJvi4v/MtSX1Ya7j y7bG/7afxd5y9x9dKKQ7FoiZiw7bnuNACNx4oSqdSkDWowHBQfQR5JJPzOZXuWFkWUre Qui6NNm6LH3BNyfIJJkVYrMXWTr3P+Dk9GHuc4ZC5rv5oQ0huzEn4oA3qxfeCw6VQ5Ex 7CYWCgmOHPDYzAHj2TSyiAkHi6LCwf2kQLiuqMbBqYN6G9aItxbWU2nDu/85pzNokkDM Bo28+pfi81HDqjGaw9ZCU36MJRJz1PJRVYsUk5VVk3K82AW21fBpzdT2k9rGzqqBNPdl l/Zg== X-Gm-Message-State: AOAM531KqvZXOvdJIyFjRZXrgIUbuoZYwebwJcV0ktZ+gUvp8dnDJXNo mnd2O+Y/tUEy9ca7FMQCPhbVhy6C X-Google-Smtp-Source: ABdhPJzifm8y56UoU8s5rA9iY8jAIwcjnR6Mc4xqiJ2r+FrtInVfHb3PcFQSYAQDrDyH8SHzO59b9Q== X-Received: by 2002:a65:6706:: with SMTP id u6mr7434527pgf.69.1594807847826; Wed, 15 Jul 2020 03:10:47 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:6891:: with SMTP id e17ls721313pgt.3.gmail; Wed, 15 Jul 2020 03:10:47 -0700 (PDT) X-Received: by 2002:a63:8f08:: with SMTP id n8mr7154640pgd.9.1594807847299; Wed, 15 Jul 2020 03:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594807847; cv=none; d=google.com; s=arc-20160816; b=rdMaEUMWcD7OGpyRn0WHDN8sPrxJ2ne6Ah5CAWdXDoCtWIg77iJWM6Qp4ALqaWTq/G FuBK7RS5BdUh2PaJ7M+rrMFLmytgcyYI9D2WE8iWLCy5YGqQxsUoDwdDTgbJ8TV5tGUW qV0tcZ5DuMcqeOfylPfhKy5w1qPMq4Nm2x93lXB7coEFMKhzv7eqyb5DliYLXq9qkvbr GXdGqhoC3DLgm9d3SeUD2nTcfYqVGEh2WpcvVDX5eDsKzvk/2lGyKj2jKz4qo1Fs0X8O tPj1iSFPg0yV0Iq1uMbBygq87ZqOsVN+l7KP0yz4Iw5IhKN2heRCk+qgkdrxHYy1qgi/ vx/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=FgNdabMkvemqpyH+/OeXBbZvLL/r0x+J6aGJf5F0f3M=; b=o3qU1uaxx766+vBGEvy5Qv0Zw/+OOF+QlN0j0hnYO87o0cIMVE7DSWbWAYGW4Ul9ZR Rsv5dG8VtAFWpPP2xreuv5HlYp+V/fOTIDW6NlaCwduIZka1SFQDTGXYm5QNwNbRVoK5 TJN6kGOCvC3ctEkgcc9wHDfhti3uAlA66t/gjeiE4RPL+HFxYF6kDpoPhuTJoUMIQmvD gi76GRK5ZieuCAPxvF+DmlBI3sH071NqINwyPfyu6QHMcPP//pc2ZITmSETvv/Qbih9l T5UDjkql5Eb40WK7e+++aFizXRP4EEdXj6XDfHYw5mpUXgJ3g3ks5wRYU5EkCo0XFvEj ADOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Ndioc2jR; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id l187sor1986623pge.81.2020.07.15.03.10.47 for (Google Transport Security); Wed, 15 Jul 2020 03:10:47 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:5509:: with SMTP id j9mr7323111pgb.195.1594807846982; Wed, 15 Jul 2020 03:10:46 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9887:56a8:c916:cfdb]) by smtp.gmail.com with ESMTPSA id p127sm1658577pfb.17.2020.07.15.03.10.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 03:10:46 -0700 (PDT) From: Jagan Teki To: Rick Chen , Atish Patra , Palmer Dabbelt , Bin Meng , Paul Walmsley , Anup Patel , Sagar Kadam Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki , Bin Meng Subject: [PATCH v5 6/6] sifive: fu540: Enable SF distro bootcmd Date: Wed, 15 Jul 2020 15:39:03 +0530 Message-Id: <20200715100903.161363-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715100903.161363-1-jagan@amarulasolutions.com> References: <20200715100903.161363-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Ndioc2jR; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable SPI flash(SF) distro boot command in Sifive FU540. This distro boot will read the boot script at specific location at the flash and start sourcing the same. Included the SF device at the last of the target devices list since all the rest of the devices on the list have more possibility to boot the distribution due to the size of the SPI flash is concern. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng --- Changes for v5: - rebase on master include/configs/sifive-fu540.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/configs/sifive-fu540.h b/include/configs/sifive-fu540.h index 68fda14d76..f21411a701 100644 --- a/include/configs/sifive-fu540.h +++ b/include/configs/sifive-fu540.h @@ -43,9 +43,11 @@ #ifndef CONFIG_SPL_BUILD #define BOOT_TARGET_DEVICES(func) \ func(MMC, mmc, 0) \ + func(SF, sf, 0) \ func(DHCP, dhcp, na) #include +#include #define TYPE_GUID_LOADER1 "5B193300-FC78-40CD-8002-E86C45580B47" #define TYPE_GUID_LOADER2 "2E54B353-1271-4842-806F-E436D6AF6985" @@ -70,7 +72,8 @@ "type_guid_gpt_loader2=" TYPE_GUID_LOADER2 "\0" \ "type_guid_gpt_system=" TYPE_GUID_SYSTEM "\0" \ "partitions=" PARTS_DEFAULT "\0" \ - BOOTENV + BOOTENV \ + BOOTENV_SF #define CONFIG_PREBOOT \ "setenv fdt_addr ${fdtcontroladdr};" \