From patchwork Thu Jun 4 20:39:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1338 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A0DE63F086 for ; Thu, 4 Jun 2020 22:41:39 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id l25sf5916354pgn.8 for ; Thu, 04 Jun 2020 13:41:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591303298; cv=pass; d=google.com; s=arc-20160816; b=ez24tomFEXuoFFDi7jIR6hAGx8AygelWzUgC6TZdnyHJfIx+WkSEI6lUbwUfjqtNTl lt7m/gBFLrdPt4YBk2Cnc4jMEO41yVBGMwlLDZEO7Vd4Skxn5m+NEBrjc2jydqilgJ7Y 5LG1cT1QIv9FR+qalXktYMhcS1MY/zn0n9RtjxncqOgeQOjfjs+qf3j3T9TdHcLBGFLi O6hY+PpUMZyi6jMTbmpSMtuzVcoPuXiElf5gWqUfrmnAcXxJR/ZAmfq2OqSqaLHBo97q ubkP4jl46mynhYATakPUDRSakdzji8HaLzTktJpCuWfD+vSBdxPeJgcCXuQ4Iq01rURm aRRw== 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=TlvNYgLJH6kaFiVwa3jdjNkMGsaZHJKD+PV1YK+pi6o=; b=e8tSkoPT+hCkdnUMNCqiLl/zl0T8b8ySaL+f/2ophCiQyDB50NvtG4xc55a79xhzOX cwazT8aJ44FY/NYKg2lN17wYcgz3cSSMUO2HAB2OpRAjZPk/XiwN/FqRR/Y4zShUteQH yIa7xBJgQHQCNDBIDqqxElT12bp+HgUxd+L1Q++5Lc8xC7AKs658TsqXXMCI2Cs3ESpk xy6lPUeE+B1YoW54qtzRr8Lwbx+PXC3T3Zq5MW32xh1US6vCYEPIHi8g7b0Uis3zjsye a8/dDmAFiWnKaNbqaN/fjHQ3ExtwmS/n0RqS4ZiCBu3TahdrjMyXQqWUsmv8zQ+WuT2d a88w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PfJbGZud; 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=TlvNYgLJH6kaFiVwa3jdjNkMGsaZHJKD+PV1YK+pi6o=; b=l2a8W5X2+9e/wGPNzZ7kI70viz196thTl7N9UKh2OZn3bGD16KMjG7QAzussHRZqhU 3bk2ZseOB/sAV4bz6KGGan2d0K38yj72yemfB5oMKuSteu8vlEIaCFRiHnwIkFzD8q+a S6sQr5vjFi2bm2+KDREVVu9rU4hrTae14UVQg= 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=TlvNYgLJH6kaFiVwa3jdjNkMGsaZHJKD+PV1YK+pi6o=; b=T9m5OljzPdYcM9oos/tTm1GIh3RmNyT8oX/xxcepfZvqOOkx5Bh+dyO1rKSCRpXeeL UHqsbqk5MIUHyTefcQ+l4/EBgOsFGMAJ6+PfnA26UHpznl0Ggt3OelczcDrUQVokXGwg vfoomZ/rnmMcFjx2D8BcS55l+zGvzaMpROzQdRuxOcK+BPEOQEwv4aCGknGG3IEivhqq OEhRwlPnT+JgCviwc/MCuUjum8zE0p7pB4fU2F+CkwnbV3Qe9n6e5dgAbI9+wpL15vVh j6FWBUSTPO1vA11lpmjo7QovyycVL8ImzjHMtqQPsgtAM4WxH6eyIkG0BH+Vn5lDB2NR 75Tg== X-Gm-Message-State: AOAM530k4gzRDTGYI+EuY7ufd+noD6kuiw3K/Df414EJtjptSNZ7Li3y ryvzOmcLavk2cFXSfhE05sOsVO9g X-Google-Smtp-Source: ABdhPJyutoyLxWorHfJUm+UPP0pccMrS6h/WVY6PvD4cKSxQ0Q9eHTwHcngcdPK4bipxMx2YX/HdVQ== X-Received: by 2002:a17:902:c40c:: with SMTP id k12mr6306962plk.11.1591303298394; Thu, 04 Jun 2020 13:41:38 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:104a:: with SMTP id gq10ls3645201pjb.0.canary-gmail; Thu, 04 Jun 2020 13:41:38 -0700 (PDT) X-Received: by 2002:a17:902:502:: with SMTP id 2mr6392562plf.134.1591303297908; Thu, 04 Jun 2020 13:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591303297; cv=none; d=google.com; s=arc-20160816; b=k0i+3ZrUVT3AhU2oOX9PifNhsHbeJlP8TjEv28lL2Y6QSxzqZjVq2CBEVuUdtliZ8D /MmV5C0HxHSo3Vk4jMc+lYdvYYseXfL1qdOKcHhH+g2jT160qjnNeF0SdTH1ed0aCHyu ma8Mlo5cy3RV5WCngYk43Ha31D0IhyetN4DNbISZYFId15ByqlDohyksHgwW2+PtAN0r FJZNxKW64llGIkaBjmDoo32Hzk8qPIBMbHpvvVZz2I7SehfhFfkk7WTZJdcgTOyp5rPK t+BCdvT57SGhKlUui1ANbWMevlzSqjMnywZABU4oZf7DPOgDZ3YB0gGZjHyvzV1Tk/tq Bn0Q== 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=QK1SOCfhakIL/ZiUOpcKO6i0aiV+H7rneHdMgG7Ap5w=; b=xLWcgt1hxh4GntMSyeOh3G+agAImrMhX1Dk1cWnf8jbSImIdUG3W6JdZ+cN96hMztq K3gu/CJssfHhTGUyZj3wcFXIkw+wMpeaJDiKU1opUEOhqZUwWUewJ6Oh4F8ivEhbKOBa Gnkp9WMqF4mnoa7If+3OaQBv50ln+8azodfKGgTjpcnvOW8sdPRx2hnY5dHZlPL7rlwb OL0vPour29xrafFGeeNJk+aSricpDCymz2YLwPKB/gkITzCcuJMzwSwegmYnEf3cHPY9 vvWntVvMicweeGNg2VfiRvb9TFCB133Eqb1biP7cb3VXf24bCaJowRe98JqWBKemzCZ1 7ygA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PfJbGZud; 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 35sor8054919ple.22.2020.06.04.13.41.37 for (Google Transport Security); Thu, 04 Jun 2020 13:41:37 -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:a17:902:c40c:: with SMTP id k12mr6617942plk.105.1591303297581; Thu, 04 Jun 2020 13:41:37 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:41f4:94a8:1af3:a574]) by smtp.gmail.com with ESMTPSA id cm13sm6463775pjb.5.2020.06.04.13.41.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 13:41:36 -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 Subject: [PATCH v3 6/6] sifive: fu540: Enable SF distro bootcmd Date: Fri, 5 Jun 2020 02:09:49 +0530 Message-Id: <20200604203949.550290-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200604203949.550290-1-jagan@amarulasolutions.com> References: <20200604203949.550290-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=PfJbGZud; 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 v3: - none 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};" \