From: Sagar Shrikant Kadam <sagar.kadam@sifive.com>
To: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-mtd@lists.infradead.org
Cc: aou@eecs.berkeley.edu, vigneshr@ti.com,
tudor.ambarus@microchip.com, richard@nod.at,
paul.walmsley@sifive.com, anup.patel@wdc.com, palmer@dabbelt.com,
Sagar Shrikant Kadam <sagar.kadam@sifive.com>,
miquel.raynal@bootlin.com
Subject: [PATCH v2 0/2] enable spi flash and update is25wp256d page write capabilities
Date: Tue, 19 May 2020 03:46:25 -0700 [thread overview]
Message-ID: <1589885187-31247-1-git-send-email-sagar.kadam@sifive.com> (raw)
HiFive Unleashed A00 board has is25wp256d snor chip. It is observed
that it gets configured with Serial Input Page program by the end
of spi_nor_scan. Using the post bfpt fixup hook we prioritize the
page program settings to use quad input page program (opcode:0x34)
over serial input page program (opcode: 0x12).
The patchset is tested on Linux 5.7.0-rc5.
Changelog:
===============================
V2:
-Split common code between is25lp256 and is25wp256 devices as suggested
Added a generic post bfpt fixup handler that identifies the flash parts
based on their device id and uses the corresponding fixup. Other device's
that need a post bfpt fixup can just add the device id check and either
reuse the available fixups or write the necessary fixup code if one is not
available.
V1:
-Moved SPI_SIFIVE from defconfig to Kconfig.socs for SOC_SIFIVE.
Retained it's configurability using "imply" instead of "select"
V0: Base version patch (Tested on 5.7.0-rc3).
Sagar Shrikant Kadam (2):
riscv: defconfig: enable spi nor on Hifive Unleashed A00
spi: nor: update page program settings for is25wp256 using post bfpt
fixup
arch/riscv/Kconfig.socs | 1 +
arch/riscv/configs/defconfig | 3 +-
drivers/mtd/spi-nor/issi.c | 72 ++++++++++++++++++++++++++++++++++++--------
3 files changed, 63 insertions(+), 13 deletions(-)
--
2.7.4
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next reply other threads:[~2020-05-19 10:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-19 10:46 Sagar Shrikant Kadam [this message]
2020-05-19 10:46 ` [PATCH v2 1/2] riscv: defconfig: enable spi nor on Hifive Unleashed A00 Sagar Shrikant Kadam
2020-05-19 10:46 ` [PATCH v2 2/2] spi: nor: update page program settings for is25wp256 using post bfpt fixup Sagar Shrikant Kadam
2020-05-25 5:45 ` [PATCH v2 0/2] enable spi flash and update is25wp256d page write capabilities Sagar Kadam
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=1589885187-31247-1-git-send-email-sagar.kadam@sifive.com \
--to=sagar.kadam@sifive.com \
--cc=anup.patel@wdc.com \
--cc=aou@eecs.berkeley.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-riscv@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=richard@nod.at \
--cc=tudor.ambarus@microchip.com \
--cc=vigneshr@ti.com \
/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;
as well as URLs for NNTP newsgroup(s).