All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/5] sifive: fu540: Enable spi-nor flash support
Date: Tue, 1 Oct 2019 16:42:44 +0530	[thread overview]
Message-ID: <CAMty3ZB27erWJcj5Eqe6HT==8OuSA_T2es4iQaddQZv8ut4LMw@mail.gmail.com> (raw)
In-Reply-To: <CAEUhbmU2sxkXbpjXJ+mFz3dQMihSYJRS5hQE_E8APqYWHRzbSQ@mail.gmail.com>

On Mon, Sep 30, 2019 at 3:35 PM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> On Sun, Sep 29, 2019 at 3:43 PM Jagan Teki <jagan@amarulasolutions.com> wrote:
> >
> > HiFive Unleashed A00 has internal is25wp256 spi-nor flash,
>
> What does "internal" mean? The flash is mounted "externally" to the FU540 SoC.
>
> > so enable the same. added test result log for future reference.
> >
> > Tested on Sifive fuse540 board.
>
> SiFive FU540
>
> >
> > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> > ---
> >  .../dts/hifive-unleashed-a00-u-boot.dtsi      |  1 +
> >  board/sifive/fu540/Kconfig                    |  3 +++
> >  doc/board/sifive/fu540.rst                    | 19 +++++++++++++++++++
> >  3 files changed, 23 insertions(+)
> >
> > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > index 25ec8265a5..d7a64134db 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 5d65080429..c5a1bca03c 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
> > diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst
> > index 91b94ee06f..2e70cad02e 100644
> > --- a/doc/board/sifive/fu540.rst
> > +++ b/doc/board/sifive/fu540.rst
> > @@ -366,3 +366,22 @@ load uImage.
> >
> >     Please press Enter to activate this console.
> >     / #
> > +
> > +Sample spi nor flash test
> > +-------------------------
> > +
> > +.. code-block:: none
> > +
> > +   => sf probe 0:2
>
> Why cs 2? The flash is definitely on cs 0.
>
> You may find my patch series useful to solve this issue of the cs number.
> http://patchwork.ozlabs.org/project/uboot/list/?series=129736

I have checked this, while working on this. let me rebase again.

  reply	other threads:[~2019-10-01 11:12 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-29  7:42 [U-Boot] [PATCH 0/5] riscv: sifive/fu540: Enable SPI-NOR support Jagan Teki
2019-09-29  7:42 ` [U-Boot] [PATCH 1/5] riscv: dts: Add hifive-unleashed-a00 dts from Linux Jagan Teki
2019-09-30 10:04   ` Bin Meng
2019-10-01 11:10     ` Jagan Teki
2019-10-02 10:27     ` Jagan Teki
2019-10-06 17:58       ` Auer, Lukas
2019-10-06 17:55   ` Auer, Lukas
2019-09-29  7:42 ` [U-Boot] [PATCH 2/5] sifive: fu540: Enable OF_SEPARATE Jagan Teki
2019-09-30 10:04   ` Bin Meng
2019-09-29  7:42 ` [U-Boot] [PATCH 3/5] mtd: spi-nor: ids: Add is25wp256 chip Jagan Teki
2019-09-30 10:05   ` Bin Meng
2019-09-29  7:42 ` [U-Boot] [PATCH 4/5] riscv: dts: hifive-unleashed-a00: Add -u-boot.dtsi Jagan Teki
2019-09-30 10:05   ` Bin Meng
2019-10-01 11:13     ` Jagan Teki
2019-10-02 10:36     ` Jagan Teki
2019-09-29  7:42 ` [U-Boot] [PATCH 5/5] sifive: fu540: Enable spi-nor flash support Jagan Teki
2019-09-30 10:05   ` Bin Meng
2019-10-01 11:12     ` Jagan Teki [this message]
2019-09-29  7:59 ` [U-Boot] [PATCH 0/5] riscv: sifive/fu540: Enable SPI-NOR support Bin Meng
2019-10-01 11:09   ` Jagan Teki
2019-10-01 11:32     ` Bin Meng

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='CAMty3ZB27erWJcj5Eqe6HT==8OuSA_T2es4iQaddQZv8ut4LMw@mail.gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.