Received: from co9ehsobe005.messaging.microsoft.com ([207.46.163.28] helo=co9outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W0Q7Q-0006dM-Vh for linux-mtd@lists.infradead.org; Tue, 07 Jan 2014 06:26:29 +0000 Date: Tue, 7 Jan 2014 13:52:09 +0800 From: Huang Shijie To: Brian Norris Subject: Re: [PATCH v3 2/5] mtd: nand: add ONFI vendor block for Micron Message-ID: <20140107055208.GB8109@shlinux2.ap.freescale.net> References: <1388795828-24808-1-git-send-email-computersforpeace@gmail.com> <1388795828-24808-2-git-send-email-computersforpeace@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1388795828-24808-2-git-send-email-computersforpeace@gmail.com> Cc: linux-mtd@lists.infradead.org, Pekon Gupta List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Jan 03, 2014 at 04:37:05PM -0800, Brian Norris wrote: > Signed-off-by: Brian Norris > --- > No changes since v1 > > include/linux/mtd/nand.h | 23 ++++++++++++++++++++++- > 1 file changed, 22 insertions(+), 1 deletion(-) > > diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h > index f3ea8daf08ee..029fe5948dc4 100644 > --- a/include/linux/mtd/nand.h > +++ b/include/linux/mtd/nand.h > @@ -285,7 +285,8 @@ struct nand_onfi_params { > u8 reserved4[7]; > > /* vendor */ > - u8 reserved5[90]; > + __le16 vendor_revision; > + u8 vendor[88]; > > __le16 crc; > } __attribute__((packed)); > @@ -326,6 +327,26 @@ struct onfi_ext_param_page { > */ > } __packed; > > +struct nand_onfi_vendor_micron { > + u8 two_plane_read; > + u8 read_cache; > + u8 read_unique_id; > + u8 dq_imped; > + u8 dq_imped_num_settings; > + u8 dq_imped_feat_addr; > + u8 rb_pulldown_strength; > + u8 rb_pulldown_strength_feat_addr; > + u8 rb_pulldown_strength_num_settings; > + u8 otp_mode; > + u8 otp_page_start; > + u8 otp_data_prot_addr; > + u8 otp_num_pages; > + u8 otp_feat_addr; > + u8 read_retry_options; > + u8 reserved[72]; > + u8 param_revision; > +} __packed; > + > /** > * struct nand_hw_control - Control structure for hardware controller (e.g ECC generator) shared among independent devices > * @lock: protection lock > -- > 1.8.3.2 > > > Acked-by: Huang Shijie