public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [PATCH v4 5/5] sifive: fu540: Enable spi-nor flash support
Date: Thu, 23 Apr 2020 22:30:57 +0530	[thread overview]
Message-ID: <20200423170057.1976-6-jagan@amarulasolutions.com> (raw)
In-Reply-To: <20200423170057.1976-1-jagan@amarulasolutions.com>

HiFive Unleashed A00 support is25wp256 spi-nor flash,
So enable the same and add test result log for future
reference.

Tested on SiFive FU540 board.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---
Changes for v4:
- none

 arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi | 1 +
 board/sifive/fu540/Kconfig                      | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
index 8a784b5661..2aebfab646 100644
--- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
+++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
@@ -5,6 +5,7 @@
 
 / {
 	aliases {
+		spi0 = &qspi0;
 		spi2 = &qspi2;
 	};
 };
diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig
index 5ca21474de..75661f35f8 100644
--- a/board/sifive/fu540/Kconfig
+++ b/board/sifive/fu540/Kconfig
@@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	imply CMD_FS_GENERIC
 	imply CMD_NET
 	imply CMD_PING
+	imply CMD_SF
 	imply CLK_SIFIVE
 	imply CLK_SIFIVE_FU540_PRCI
 	imply DOS_PARTITION
@@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	imply SIFIVE_SERIAL
 	imply SPI
 	imply SPI_SIFIVE
+	imply SPI_FLASH
+	imply SPI_FLASH_ISSI
 	imply MMC
 	imply MMC_SPI
 	imply MMC_BROKEN_CD
-- 
2.17.1

  parent reply	other threads:[~2020-04-23 17:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-23 17:00 [PATCH v4 0/5] riscv: sifive/fu540: Enable SPI-NOR support Jagan Teki
2020-04-23 17:00 ` [PATCH v4 1/5] spi: sifive: Add spi-mem exec op Jagan Teki
2020-04-23 17:00 ` [PATCH v4 2/5] spi: sifive: Fix format register proto field Jagan Teki
2020-04-23 17:00 ` [PATCH v4 3/5] spi: sifive: Fix QPP transfer Jagan Teki
2020-04-23 17:00 ` [PATCH v4 4/5] riscv: dts: hifive-unleashed-a00: Add -u-boot.dtsi Jagan Teki
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA46FCB06@ATCPCS16.andestech.com>
2020-04-27  1:55     ` Rick Chen
2020-04-23 17:00 ` Jagan Teki [this message]
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA46FCB21@ATCPCS16.andestech.com>
2020-04-27  2:00     ` [PATCH v4 5/5] sifive: fu540: Enable spi-nor flash support Rick Chen
2020-04-24 18:18 ` [PATCH v4 0/5] riscv: sifive/fu540: Enable SPI-NOR support Sagar Kadam
2020-04-25 11:08   ` Jagan Teki
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA46FC853@ATCPCS16.andestech.com>
2020-04-27  0:16       ` Rick Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200423170057.1976-6-jagan@amarulasolutions.com \
    --to=jagan@amarulasolutions.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox