From patchwork Thu Jun 4 20:39:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1332 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0F0273F086 for ; Thu, 4 Jun 2020 22:40:30 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id f12sf5464921plr.14 for ; Thu, 04 Jun 2020 13:40:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591303228; cv=pass; d=google.com; s=arc-20160816; b=J99IgdXpiW+6PXUvZ/DOBZhZv7L/t7DdVQOtwqzDuq5rMHgI3Z9YTc68jsJSu3Is1m HTtjv4Hcg5Xb6qXNjUW3kouO4sg3lGn36A+jTuMtRf/BeuvBs47uZA+orL7iuG1Vca8B zeE/SxbLS+aBxGi0DtdPYHf7EefCAEB+Pos6yCIJRIdPWGvYaF4hqJ0MqZBC474+X0mo Bss+tK2fitccTSy/YvmlWT6H4K3+6ZVnRTG7tVifcgUc74d0FdVWzopIjahMMX98U4kh 36qpTs7qxF251N8BBFlWoWHg15OPzcjI0RhZbSn8xt9LRpldG4ELf9W4cw3adufinDRc VOUQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=A+aDVEZgV7vLAAReLND+Yvmrndg7lT9N04Txi+dXG5w=; b=Q6SHxJBucfppuNjaEyjJAek4Pb1rDOCYfgAEpb79C2f5EAQXn5tnU/eZulp64GcaSi mY43Zhp/yk8nGGxMpGK4XEOJPEaH8Ws0ERDDrH+xYBicskihecdFNS9uFJLqGepdK4V7 qdBY006WsWbm8FoHzwpVqI2zNlMVzjqyL2JMkdiTvGbdRrUzP0YS3LJ9Nd/m7tErvj4w 53kpzBOq9SisEbadDwUCXo0wnhTEnpxUcxFSnnODbvlAaiKfvw81HWM7V2urMOyGzSrQ RmA+OwY/zv/hfhj/x8xUUHtiYT1u2VMG3zCt2TO0ItJpToU5lpA/+qWayafubjfyFJjo ADVw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DaxsljM2; 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=A+aDVEZgV7vLAAReLND+Yvmrndg7lT9N04Txi+dXG5w=; b=Hk/N0HQ769aWfSiuXRSlrwCPDNbyu0ANwuHRoV0fPhMtzS/eGm3BiD/f/beLX+OcUi RybVh9rUSEbFARdYWdrQHtCajQfDX97kFOHzSDCFa3gcFJ63K7xYKya0Dms0/u23vd8M PYvm9xcqQ7SELtcpVBjyilsfT+1/8S7oQcZdQ= 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: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=A+aDVEZgV7vLAAReLND+Yvmrndg7lT9N04Txi+dXG5w=; b=dtxQoi1UbXuxGHHLk/0l8S2Nc0qnYoKUHDHQpu+Xa0Bod26kZy3cstBzSU1mc0J7e3 Eo0RN3iTiLF6fQXpcuk9puxWXnLOCVAypX8d9s6IjpawZumdwvLdpphP3glap9Rh6NDw /oQKzoerLBmQDTaotKPAZLGXttz8wzmZakaIUaEYhNy8T/DKO1k3TLsHOaQHAhr1NstO psFJ44ej85cURnlBOAC/YvNAQGw0MMd4w3kfB8U2WddtOmUUtVtx33vCRr+d5eK/HrCT /iPnkh6uY8/xOnBpJMWmV5dy4G9STpUkojrSIi5fIBUwZ4dRvX21rq7ZevA3LMUlLRc3 DmxA== X-Gm-Message-State: AOAM533hfq+TaRXDLDb/mwJPlP1yx6ifscSPuvK0QhMna3JlGtBBxNPa VdFnD/rvFbvTRleuF1v3kZLjHrOd X-Google-Smtp-Source: ABdhPJyr/PMDESoreK46XfF1TTkMS6FIqebAz2XOAFKMJKKYSbRmNXBp+dIDu3RBELa31h3548fTyg== X-Received: by 2002:a62:7c15:: with SMTP id x21mr6295600pfc.189.1591303227761; Thu, 04 Jun 2020 13:40:27 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:7b82:: with SMTP id w2ls2546983pll.1.gmail; Thu, 04 Jun 2020 13:40:27 -0700 (PDT) X-Received: by 2002:a17:90a:7787:: with SMTP id v7mr8286625pjk.199.1591303227303; Thu, 04 Jun 2020 13:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591303227; cv=none; d=google.com; s=arc-20160816; b=UtC+VZI+Pq3JQUlxY9YfmwVhiiTnZpMaFnWWrWEJ2lVhNsn3q+pmqr/WVPecUnvnQr 2EZzhjwsnm0VjHON42oB7AtvmR+kkUo6NuKqQ8drL1IdcL/ZHHwDTL/KootUYDAIDoFc L8pHlJQTAw5bt8r3sfgmQ95lcT9BUf8Retfq8AXPgfoJJv7h3vZgPCaELoc19q4yb6Wb 7SwH6UE6ariBteRrT2+JRZ34N6yDCNc2FUu3u+gevU/L67b9+SSekOJSfFQRrYZhKtH+ DVgm8QzL/UBSIkRXdp5UbiDQhLZnVdX6tOfAo+NBA4CZbjajm86YaBRgPRNXG1YPehsb 9agQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=NPsaBswJ9GICa3Ddhq+9/H/5sOiQJjbHidGQiB9F5b4=; b=Z0H25YjeTT84ZYewClN/4pR1msHdpIq5LiF4vRR14VTvo8rrl4/IgJ7+AVAC4PDkL4 jgD1zZI5ZRO3s1mxDGLptOIjkiC660XwosJ09k8nHQ8Dj+PvER2Ddk1u8G4xantKUyIV ME/9IyT05gEI6IGf6zKr030mYf7JoRpICkZle2JS0j5QIaEUjb7+ZA+L7r810k0M+CpZ BnoTEINAOTtWU+Cug7qSGpSa7sAqlFoV3Xbg5kUXA+SpAMd54Gd3NhD28jqnj2XjoZrq Sr7n+TqCjo3P5UQ4sK4eIlZRHWFnz4BKJIUmJnJrRKCelZ3WasluyLNghZCReo8hwKAe Wapg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DaxsljM2; 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 n4sor8124354pjc.41.2020.06.04.13.40.26 for (Google Transport Security); Thu, 04 Jun 2020 13:40:26 -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:90a:7643:: with SMTP id s3mr8118686pjl.183.1591303226092; Thu, 04 Jun 2020 13:40:26 -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.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 13:40:25 -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 0/6] riscv: sifive/fu540: SPI boot Date: Fri, 5 Jun 2020 02:09:43 +0530 Message-Id: <20200604203949.550290-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 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=DaxsljM2; 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: , Updated series with boot device detection directly on spl_boot_device function instead of having separate board driver. Previous version changes are at [1]. Changes for v3: - fixed env definitions build - added boot device detection in board Changes for v2: - fu540 board driver - runtime bootmode detection - rebase on Pragnesh v11 series [1] https://patchwork.ozlabs.org/project/uboot/cover/20200519192340.16624-1-jagan@amarulasolutions.com/ Any inputs? Jagan. Jagan Teki (6): sifive: fu540: Add runtime boot mode detection sifive: fu540: Add Booting from SPI env: Enable SPI flash env for SiFive FU540 sifive: fu540: Mark the default env as SPI flash sifive: fu540: Add boot flash script offset, size sifive: fu540: Enable SF distro bootcmd arch/riscv/cpu/fu540/Kconfig | 15 +++++++ .../dts/hifive-unleashed-a00-u-boot.dtsi | 12 ++++++ board/sifive/fu540/Kconfig | 1 + board/sifive/fu540/fu540.c | 25 ++++++++--- configs/sifive_fu540_defconfig | 4 ++ doc/board/sifive/fu540.rst | 41 +++++++++++++++++++ include/configs/sifive-fu540.h | 7 +++- 7 files changed, 98 insertions(+), 7 deletions(-)