From: Marek Vasut <marek.vasut@gmail.com>
To: matthew.gerlach@linux.intel.com, vndao@altera.com,
dwmw2@infradead.org, computersforpeace@gmail.com,
boris.brezillon@free-electrons.com, richard@nod.at,
cyrille.pitchen@wedev4u.fr, robh+dt@kernel.org,
mark.rutland@arm.com, linux-mtd@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
gregkh@linuxfoundation.org, davem@davemloft.net,
mchehab@kernel.org, linux-fpga@vger.kernel.org,
tien.hock.loh@intel.com, hean.loong.ong@intel.com
Subject: Re: [PATCH v2 2/3] mtd: spi-nor: Altera ASMI Parallel II IP Core
Date: Tue, 10 Oct 2017 11:24:03 +0200 [thread overview]
Message-ID: <deae5a9f-4301-c7de-b265-b09292f8da15@gmail.com> (raw)
In-Reply-To: <1505932139-2905-3-git-send-email-matthew.gerlach@linux.intel.com>
On 09/20/2017 08:28 PM, matthew.gerlach@linux.intel.com wrote:
> From: Matthew Gerlach <matthew.gerlach@linux.intel.com>
>
> This patch adds support for a spi-nor, platform driver for the
> Altera ASMI Parallel II IP Core. The intended use case is to be able
> to update the flash used to load a FPGA at power up with mtd-utils.
>
> Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> ---
> v2:
> minor checkpatch fixing by Wu Hao <hao.wu@intel.com>
> Use read_dummy value as suggested by Cyrille Pitchen.
> Don't assume 4 byte addressing (Cryille Pichecn and Marek Vasut).
> Fixed #define indenting as suggested by Marek Vasut.
> Added units to timer values as suggested by Marek Vasut.
> Use io(read|write)8_rep() as suggested by Marek Vasut.
> Renamed function prefixed with __ as suggested by Marek Vasut.
[...]
> +#define QSPI_ACTION_REG 0
> +#define QSPI_ACTION_RST BIT(0)
> +#define QSPI_ACTION_EN BIT(1)
> +#define QSPI_ACTION_SC BIT(2)
> +#define QSPI_ACTION_CHIP_SEL_SFT 4
> +#define QSPI_ACTION_DUMMY_SFT 8
> +#define QSPI_ACTION_READ_BACK_SFT 16
> +
> +#define QSPI_FIFO_CNT_REG 4
> +#define QSPI_FIFO_DEPTH 0x200
> +#define QSPI_FIFO_CNT_MSK 0x3ff
> +#define QSPI_FIFO_CNT_RX_SFT 0
> +#define QSPI_FIFO_CNT_TX_SFT 12
> +
> +#define QSPI_DATA_REG 0x8
> +
> +#define QSPI_POLL_TIMEOUT_US 10000000
10 s poll timeout ? :)
> +#define QSPI_POLL_INTERVAL_US 5
> +
> +struct altera_asmip2 {
[...]
Otherwise looks good
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2017-10-10 9:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-20 18:28 [PATCH v2 0/3] Altera ASMI Parallel II IP Core matthew.gerlach
2017-09-20 18:28 ` [PATCH v2 1/3] dt-bindings: mtd: " matthew.gerlach
2017-09-27 21:52 ` Rob Herring
2017-09-20 18:28 ` [PATCH v2 2/3] mtd: spi-nor: " matthew.gerlach
2017-10-10 9:24 ` Marek Vasut [this message]
2017-10-11 17:00 ` matthew.gerlach
2017-10-11 21:06 ` Marek Vasut
[not found] ` <ca36c177-0e7c-647d-f821-ab4bb7d85b10-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-10-13 19:24 ` matthew.gerlach-VuQAYsv1563Yd54FQh9/CA
2017-10-13 20:34 ` Marek Vasut
2017-09-20 18:28 ` [PATCH v2 3/3] mtd: spi-nor: add flag for reading dummy cycles from nv cfg reg matthew.gerlach
[not found] ` <1505932139-2905-4-git-send-email-matthew.gerlach-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2017-10-10 19:23 ` Cyrille Pitchen
[not found] ` <28c32a9c-1fd8-3af4-abc6-f4938e138daa-yU5RGvR974pGWvitb5QawA@public.gmane.org>
2017-10-16 18:41 ` matthew.gerlach-VuQAYsv1563Yd54FQh9/CA
2017-10-10 0:49 ` [PATCH v2 0/3] Altera ASMI Parallel II IP Core matthew.gerlach
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=deae5a9f-4301-c7de-b265-b09292f8da15@gmail.com \
--to=marek.vasut@gmail.com \
--cc=boris.brezillon@free-electrons.com \
--cc=computersforpeace@gmail.com \
--cc=cyrille.pitchen@wedev4u.fr \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=dwmw2@infradead.org \
--cc=gregkh@linuxfoundation.org \
--cc=hean.loong.ong@intel.com \
--cc=linux-fpga@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=matthew.gerlach@linux.intel.com \
--cc=mchehab@kernel.org \
--cc=richard@nod.at \
--cc=robh+dt@kernel.org \
--cc=tien.hock.loh@intel.com \
--cc=vndao@altera.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).