From patchwork Mon Apr 20 14:05:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1095 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 445E93F086 for ; Mon, 20 Apr 2020 16:05:29 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id y12sf8630901plk.23 for ; Mon, 20 Apr 2020 07:05:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587391527; cv=pass; d=google.com; s=arc-20160816; b=MIoJfr4VeI4JcdFF4Un28C1V4gOlEg/Lp9qjjVe/vj0eCJXPc1VblYfPnPBHkOyOGQ r4d6GmDoFSvEHCaNOYg86zxPWSo0vYyuw45SFFaxUJH/gWZht4gTxHWzsyE9EAADLc6L j8lNuIxOmnYkontjFES0BXIrt4Ejm3v3Jtwnn5wVmXMrUVN2taxdzPP1CAAgaNkD0MgA gB8UvRP9EEi10eR9YenIpn12j2OCpCSgBWZnRtdZDQnspobDOQYTXlCq9HSAaRewrwwM 7p4BHBuftdh11Unjm8ZYtgrMQ7SiGNKYB97DaJX2B5puKGlijoi1Z1Dt0j99X7IB1m9z qh1Q== 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:message-id:date:subject:cc:to:from :mime-version:dkim-signature; bh=mrUy4tAVGGvnxLbyeC4qotyJw6KirKG6rcYV7eN/Mh0=; b=cp5Cj1tdpSVSIOEdSsvp73g4V+t+hleIZnDNHC6eIYoJrcXVKqbTdSrvyfmJsUVDOs VKbRD9NoYDSt5Fl0x/lZh36T7nfbCjWxPfV1eLRjYzUj5kwTp5IOPliB1Serc0VUcxan tzjzD676fqxsr1/TuECy3f2LrDWOgGIJqR/WZkka+7FwTKLzKY8c0xAm/QKe+nEbED7N DM3OT8Po1XGjpgNAiMRwGBlovP84I1Wc/QQnzKUWvtJ9x5EMZLDuOrxSO1MXFEcT41Bb 99VDDlRSqJGjJrvAuAD7px4DL8gjjiZ9Y4DLEeZliKvmW7NJWcsLenwofb64HJQ6FF7v ju/A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rAmqRHwP; 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=mime-version:from:to:cc:subject:date:message-id:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=mrUy4tAVGGvnxLbyeC4qotyJw6KirKG6rcYV7eN/Mh0=; b=XzIBHW3DDWR8i+b7fB2XUaPp+1iViK8qpi+6+rE0swDeT/Y+XJvPEWfRQj7NtqoJLS WUKLGhfkznrJea/dpuSgmhqDHJVkfw/Y0w8V0xCjMCM9tTveFax6Gupo41eGkZMGqy+r pbl3htZ2aZIO5P/2AsBYymWwWHK58I+5rYwyo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :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=mrUy4tAVGGvnxLbyeC4qotyJw6KirKG6rcYV7eN/Mh0=; b=jYkkrGMgkK4lhpPAaKkabvk4bqm/7EEuvzdE6bHDWD+DCYtxXlpjESnORu3xFT+zIa ikzn1VXzWM/KGrVtpjm7LI908PftMTbXQ4Rz6n/08lquNsPIV7tvE4X2Q9OK++NLwFSK D13mjWKoLhN7X4HXmpWdn2FAZFVtYV3uPjkC5K/CCNbqOkbG2oBI6maqJSQd+Vs2axCZ we/q6CDM7/GYVGIjGOnqQEd97TyJu8cFAmU8i1nOqxO1RLG8wJ5VesCw0fK/Cr8wOt1c oEQfUjM0/vMTFudXZM+WOXw+6HAILuhwy35HNr482EUpAhNItGsV53B+R8uNGsPjjGAW W27g== X-Gm-Message-State: AGi0PuajfvIUsOs6n7wTGkUnNrJTd2/8xPudn0qyt2jPqydq6SOzONYG 85MIaO7dSfMpwwIW9m7jiCQM2pXP X-Google-Smtp-Source: APiQypLJqQ3qRdAyg4VgKaJWDFqSLPHCiXNh0TursEV0JVk54eJqY/lR36FIGmglRx+lQkydJA5Hsw== X-Received: by 2002:a17:90b:438b:: with SMTP id in11mr20756797pjb.139.1587391527534; Mon, 20 Apr 2020 07:05:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:ed0f:: with SMTP id d15ls2857228pgi.11.gmail; Mon, 20 Apr 2020 07:05:27 -0700 (PDT) X-Received: by 2002:a65:5647:: with SMTP id m7mr16200219pgs.371.1587391527071; Mon, 20 Apr 2020 07:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587391527; cv=none; d=google.com; s=arc-20160816; b=Fmc+sK2jje0M4v6WuCS/PPPBBX/UZp6UcE7dPnBfT7jRnp5XKhdS7YWS94ZPgnOcda veiK11P+Msh3xjPrz9byw6xZ/W1+rvKRd053t7mr0OqaCDEkmhb19PGY4snEmHTMk5WK bXcKpGbGvAEucE/VMEdEeV45u2vDa7c33PSYMjXAU0wYOo8tTvrzHxf+9n/OGzxoCe36 6XIaTp8Ou1WsFVkpG1dYX8GoRi4eCVnHt4rOEie8qE94iAvM/j/kVc/uB21jUrun9qhL mF0FEZ8vcdZ6aUzau1G1ZWXiO/vYX74TA1q6MO4pd6lPd9bUMcWPADFRvt+xjc/aD3HM 23HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=maolRW+b3/qeSvXeLb3Rdo2Nf14rkmTW6hqEpAseegM=; b=Adn6epD9n3gm/MrksMPYF63KvvmlfuSh/I203uXXVexPflxj6AX4v0RAEdC9XIctz2 6x9OvnuebLO0NLeqtJeq1fgEPPmX6La7sMf0PWpg+y6m9PBtsaankwKphAglqIrnkjUh JVdX78DQjjLSlbxPRepQCETMoYuab0vL3MqpyKlcj6nIGN2RDMBmtInpNOppVD9Pd1Tn JSSeeKYInF2bBu4wGK6KV+bfs0VKGOiwUQc3fJOST2YCXB0hCjrLAomhE8VRhfBOQ/Ew CZhxrtCO6lx/bsnDMn6bswnlD0er17Czr+dyHz/comsvIzMMCUL2qK6OSjbl7Bo4n9DE 5FsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rAmqRHwP; 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 f60sor1574249pje.21.2020.04.20.07.05.26 for (Google Transport Security); Mon, 20 Apr 2020 07:05: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:2450:: with SMTP id h74mr21720759pje.57.1587391526191; Mon, 20 Apr 2020 07:05:26 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:7ddc:e17b:a9b3:404]) by smtp.gmail.com with ESMTPSA id z23sm1197219pfr.136.2020.04.20.07.05.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 07:05:25 -0700 (PDT) From: Jagan Teki To: pragnesh.patel@sifive.com, rick@andestech.com, u-boot@lists.denx.de Cc: bmeng.cn@gmail.com, sagar.kadam@sifive.com, paul.walmsley@sifive.com, troy.benjegerdes@sifive.com, palmerdabbelt@google.com, anup.patel@wdc.com, atish.patra@wdc.com, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 0/5] riscv: sifive/fu540: Booting from SPI Date: Mon, 20 Apr 2020 19:35:09 +0530 Message-Id: <20200420140514.25847-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rAmqRHwP; 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: , This series support Boot from SPI on SiFive FU540 HiFive Unleashed board. SPI uses a separate defconfig and it is possible to reuse existing one, but it requires runtime detection of boot mode via MSEL. Any help? let me know. Series depends on [1] and [2]. [1] https://patchwork.ozlabs.org/cover/1263480/ [2] https://patchwork.ozlabs.org/project/uboot/list/?series=169649 Any inputs? Jagan. Jagan Teki (5): 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 .../dts/hifive-unleashed-a00-u-boot.dtsi | 12 ++++++ board/sifive/fu540/Kconfig | 1 + board/sifive/fu540/fu540.c | 3 ++ configs/sifive_fu540_spi_defconfig | 26 +++++++++++ doc/board/sifive/fu540.rst | 43 +++++++++++++++++++ env/Kconfig | 3 ++ include/configs/sifive-fu540.h | 7 ++- 7 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 configs/sifive_fu540_spi_defconfig