From: Miquel Raynal <miquel.raynal@bootlin.com> To: <christophe.kerello@st.com> Cc: <boris.brezillon@bootlin.com>, <richard@nod.at>, <dwmw2@infradead.org>, <computersforpeace@gmail.com>, <marek.vasut@gmail.com>, <robh+dt@kernel.org>, <mark.rutland@arm.com>, <linux-mtd@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-stm32@st-md-mailman.stormreply.com> Subject: Re: [PATCH 2/3] mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver Date: Sun, 23 Sep 2018 13:34:51 +0200 [thread overview] Message-ID: <20180923133451.78c95cef@xps13> (raw) In-Reply-To: <1537199260-7280-3-git-send-email-christophe.kerello@st.com> Hi Christophe, <christophe.kerello@st.com> wrote on Mon, 17 Sep 2018 17:47:39 +0200: > From: Christophe Kerello <christophe.kerello@st.com> > > The driver adds the support for the STMicroelectronics FMC2 NAND > Controller found on STM32MP SOCs. > > This patch is based on FMC2 command sequencer. > The purpose of the command sequencer is to facilitate the programming > and the reading of NAND flash pages with the ECC and to free the CPU > of sequencing tasks. > It requires one DMA channel for write and two DMA channels for read > operations. > > Only NAND_ECC_HW mode is actually supported. > The driver supports a maximum 8k page size. > The following ECC strength and step size are currently supported: > - nand-ecc-strength = <8>, nand-ecc-step-size = <512> (BCH8) > - nand-ecc-strength = <4>, nand-ecc-step-size = <512> (BCH4) > - nand-ecc-strength = <1>, nand-ecc-step-size = <512> (Extended ecc > based on HAMMING) > > This patch has been tested on Micron MT29F8G08ABACAH4 and > MT29F8G16ABACAH4 > > Signed-off-by: Christophe Kerello <christophe.kerello@st.com> > --- [...] > +/* NAND callbacks setup */ > +static void stm32_fmc2_nand_callbacks_setup(struct stm32_fmc2 *fmc2) > +{ > + struct nand_chip *chip = &fmc2->chip; > + > + /* Specific callbacks to read/write a page */ > + chip->ecc.correct = stm32_fmc2_ham_correct; > + chip->ecc.write_page = stm32_fmc2_sequencer_write_page; > + chip->ecc.read_page = stm32_fmc2_sequencer_read_page; > + chip->ecc.write_page_raw = stm32_fmc2_sequencer_write_page_raw; > + chip->ecc.read_page_raw = stm32_fmc2_sequencer_read_page_raw; Are you sure all the tests in mtd-utils are successful? Thanks, Miquèl
WARNING: multiple messages have this Message-ID (diff)
From: Miquel Raynal <miquel.raynal@bootlin.com> To: christophe.kerello@st.com Cc: boris.brezillon@bootlin.com, richard@nod.at, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH 2/3] mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver Date: Sun, 23 Sep 2018 13:34:51 +0200 [thread overview] Message-ID: <20180923133451.78c95cef@xps13> (raw) In-Reply-To: <1537199260-7280-3-git-send-email-christophe.kerello@st.com> Hi Christophe, <christophe.kerello@st.com> wrote on Mon, 17 Sep 2018 17:47:39 +0200: > From: Christophe Kerello <christophe.kerello@st.com> > > The driver adds the support for the STMicroelectronics FMC2 NAND > Controller found on STM32MP SOCs. > > This patch is based on FMC2 command sequencer. > The purpose of the command sequencer is to facilitate the programming > and the reading of NAND flash pages with the ECC and to free the CPU > of sequencing tasks. > It requires one DMA channel for write and two DMA channels for read > operations. > > Only NAND_ECC_HW mode is actually supported. > The driver supports a maximum 8k page size. > The following ECC strength and step size are currently supported: > - nand-ecc-strength = <8>, nand-ecc-step-size = <512> (BCH8) > - nand-ecc-strength = <4>, nand-ecc-step-size = <512> (BCH4) > - nand-ecc-strength = <1>, nand-ecc-step-size = <512> (Extended ecc > based on HAMMING) > > This patch has been tested on Micron MT29F8G08ABACAH4 and > MT29F8G16ABACAH4 > > Signed-off-by: Christophe Kerello <christophe.kerello@st.com> > --- [...] > +/* NAND callbacks setup */ > +static void stm32_fmc2_nand_callbacks_setup(struct stm32_fmc2 *fmc2) > +{ > + struct nand_chip *chip = &fmc2->chip; > + > + /* Specific callbacks to read/write a page */ > + chip->ecc.correct = stm32_fmc2_ham_correct; > + chip->ecc.write_page = stm32_fmc2_sequencer_write_page; > + chip->ecc.read_page = stm32_fmc2_sequencer_read_page; > + chip->ecc.write_page_raw = stm32_fmc2_sequencer_write_page_raw; > + chip->ecc.read_page_raw = stm32_fmc2_sequencer_read_page_raw; Are you sure all the tests in mtd-utils are successful? Thanks, Miquèl
next prev parent reply other threads:[~2018-09-23 11:34 UTC|newest] Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-09-17 15:47 [PATCH 0/3] mtd: rawnand: add STM32 FMC2 NAND flash controller driver christophe.kerello 2018-09-17 15:47 ` christophe.kerello 2018-09-17 15:47 ` [PATCH 1/3] dt-bindings: mtd: stm32_fmc2: add STM32 FMC2 NAND controller documentation christophe.kerello 2018-09-17 15:47 ` christophe.kerello 2018-09-22 8:34 ` Miquel Raynal 2018-09-22 8:34 ` Miquel Raynal 2018-09-24 16:36 ` Christophe Kerello 2018-09-24 16:36 ` Christophe Kerello 2018-09-24 17:17 ` Boris Brezillon 2018-09-24 17:17 ` Boris Brezillon 2018-09-25 9:14 ` Christophe Kerello 2018-09-25 9:14 ` Christophe Kerello 2018-09-17 15:47 ` [PATCH 2/3] mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver christophe.kerello 2018-09-17 15:47 ` christophe.kerello 2018-09-17 17:05 ` kbuild test robot 2018-09-17 17:05 ` kbuild test robot 2018-09-17 17:32 ` kbuild test robot 2018-09-17 17:32 ` kbuild test robot 2018-09-22 13:48 ` Miquel Raynal 2018-09-22 13:48 ` Miquel Raynal 2018-09-24 16:36 ` Christophe Kerello 2018-09-24 16:36 ` Christophe Kerello 2018-09-24 17:26 ` Boris Brezillon 2018-09-24 17:26 ` Boris Brezillon 2018-10-29 9:22 ` Miquel Raynal 2018-10-29 9:22 ` Miquel Raynal 2018-09-23 11:34 ` Miquel Raynal [this message] 2018-09-23 11:34 ` Miquel Raynal 2018-09-24 16:36 ` Christophe Kerello 2018-09-24 16:36 ` Christophe Kerello 2018-09-24 17:23 ` Boris Brezillon 2018-09-24 17:23 ` Boris Brezillon 2018-09-25 9:14 ` Christophe Kerello 2018-09-25 9:14 ` Christophe Kerello 2018-09-17 15:47 ` [PATCH 3/3] mtd: rawnand: stm32_fmc2: add manual mode christophe.kerello 2018-09-17 15:47 ` christophe.kerello
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=20180923133451.78c95cef@xps13 \ --to=miquel.raynal@bootlin.com \ --cc=boris.brezillon@bootlin.com \ --cc=christophe.kerello@st.com \ --cc=computersforpeace@gmail.com \ --cc=devicetree@vger.kernel.org \ --cc=dwmw2@infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mtd@lists.infradead.org \ --cc=linux-stm32@st-md-mailman.stormreply.com \ --cc=marek.vasut@gmail.com \ --cc=mark.rutland@arm.com \ --cc=richard@nod.at \ --cc=robh+dt@kernel.org \ /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: linkBe 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.