Home > General > Drivers/mtd/nand/nand_ids.c

Drivers/mtd/nand/nand_ids.c

We list them first so that we can easily identify * the most specific match. */ {"TC58NVG0S3E 1G 3.3V 8-bit", { .id = {0x98, 0xd1, 0x90, 0x15, 0x76, 0x14, 0x01, 0x00} Thanks, Boris Boris Brezillon (14): mtd: nand: get rid of the mtd parameter in all auto-detection functions mtd: nand: store nand ID in struct nand_chip mtd: nand: get rid of busw BTW, that would be great if you could test it on your platforms. Still hoping to get this series [1] merged in 4.8, but if that's not the case, I'll apply your patch.

Should it be ignored? [ 0.886068] nand: Could not find valid ONFI parameter page; aborting [ 0.892571] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xd7 [ 0.898917] nand: Hynix NAND We recommend upgrading to the latest Safari, Google Chrome, or Firefox. For Toshiba SLC, we decode the 5th/6th byte as - * follows: - * - ID byte 6, bits[2:0]: 100b -> 43nm, 101b -> 32nm, - * 110b -> 24nm - ID code, pagesize, chipsize in MegaByte, eraseblock size, * options * * Pagesize; 0, 256, 512 * 0 get this information from the extended chip ID + 256 256 Byte page

Regards, Boris [1]https://lkml.org/lkml/2016/5/27/264 > > Signed-off-by: Aleksei Mamlin > --- > drivers/mtd/nand/nand_ids.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c > index ccc05f5..ccdc773 You signed in with another tab or window. On Mon, 6 Jun 2016 13:24:22 +0300 Aleksei Mamlin wrote: > Add the full description of the Hynix H27UBG8T2BTR-BC NAND chip in the > nand_ids table so that we can Reload to refresh your session.

  • Those chips do not support extended id and * have a strange page/block layout !
  • On Tue, 7 Jun 2016 00:06:45 +0300 Aleksei Mamlin wrote: > On Mon, 6 Jun 2016 22:31:38 +0200 > Boris Brezillon wrote: > > > On Mon, 6 Jun
  • This series is mainly moving vendor-specific initialization or detection code out of the core, but also introduces an infrastructure allowing support for vendor-specific features.
  • Details Message ID [email protected]s.com State Superseded Headers show Return-Path: X-Original-To: [email protected] Delivered-To: [email protected] Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by
  • See the + * GNU General Public License for more details. + */ + +#include + +static void hynix_nand_decode_id(struct nand_chip *chip) +{ + struct mtd_info *mtd = nand_to_mtd(chip); + +
  • It should be ignored: your NAND is not 'ONFI compatible', the datasheet just says that it supports the' ONFI command set', which is not the same :).

Now, let's detail what's inside this patch-set. Signed-off-by: Aleksei Mamlin --- drivers/mtd/nand/nand_ids.c | 4 ++++ 1 file changed, 4 insertions(+) Boris BREZILLON - June 6, 2016, 6:55 p.m. And trust me, you don't want to try using such a NAND without read-retry support ;). Please turn JavaScript back on and reload this page.More questions in i.MX Community Where is this place located?NXP CommunityAll Placesi.MX CommunityLog in to create and rate content, and to follow, bookmark,

It should fix the problem [1]. [1]http://code.bulix.org/6hjww1-100494 Aleksei Mamlin - June 6, 2016, 9:06 p.m. The pagesize and the * erasesize is determined from the extended id bytes */ #define LP_OPTIONS (NAND_SAMSUNG_LP_OPTIONS | NAND_NO_READRDY | NAND_NO_AUTOINCR) #define LP_OPTIONS16 (LP_OPTIONS | NAND_BUSWIDTH_16) /*512 Megabit */ {"NAND 64MiB Show 1 comment1 ReplyNameEmail AddressWebsite AddressName(Required)Email Address(Required, will not be published)Website AddressYuri Muhin Sep 9, 2013 8:05 PMMark CorrectCorrect AnswerThe following are general considerations regarding i.MX28 NAND under Linux.1.To configure NAND Message ID <[email protected]> Download mbox | patch Permalink /patch/9157735/ State New Headers show Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ED552607FD for ; Mon, 6

To add a New NAND flash to the BSP:Use the NAND datasheet to know ID bytes, timings, and dimensions of the NAND flash.Add these parameters into the BSP source code.MTD standard Reload to refresh your session. What about ONFI parameter page? WaRP 7 Read More NEWS   10 Nov 2015 7 playful uses for NFC in gaming Read More NEWS   6 Nov 2015 Meet an NFC innovator: Speech Code Read More NEWS   5

Read More NEWS   12 Nov 2015 The accidental thermal engineer: Can we know Tj by looking at Tcase? On Mon, 6 Jun 2016 22:59:03 +0300 Aleksei Mamlin wrote: > On Mon, 6 Jun 2016 20:55:49 +0200 > Boris Brezillon wrote: > > > On Mon, 6 Jun Read More NEWS   10 Nov 2015 What’s next for your wearables design? It should fix the problem [1]. > > > > [1]http://code.bulix.org/6hjww1-100494 > > > > Yes, it fixes problem.

Free Electrons Embedded Linux Experts Home Engineering Training Docs Community Company Blog twitter google+ linkedin github busybox linux u-boot Open Menu /drivers/mtd/nand/nand_ids.c Go get it 1 2 3 4 5 6 Patch 5 is introducing the vendor-specific initialization infrastructure. Patch 6 is removing the MTD_NAND_IDS Kconfig option to avoid creating a nand_ids.ko module when MTD_NAND is enabled as a module. Terms Privacy Security Status Help You can't perform that action at this time.

You signed out in another tab or window. Their page size and * eraseblock size are determined from the extended ID bytes. */ /* 512 Megabit */ EXTENDED_ID_NAND("NAND 64MiB 1,8V 8-bit", 0xA2, 64, LP_OPTIONS), EXTENDED_ID_NAND("NAND 64MiB 1,8V 8-bit", 0xA0, All others scan only the first page. */ - if (!nand_is_slc(chip) && maf_id == NAND_MFR_HYNIX) - chip->bbt_options |= NAND_BBT_SCANLASTPAGE; - else if ((nand_is_slc(chip) && - (maf_id == NAND_MFR_HYNIX || - maf_id Patch 13 is taking a patch proposed by Hans and adding support for ECC requirements extraction from the samsung extended IDs.

It seems to apply to all Samsung MLCs, but even if it's not the case, the detection code should be improved to support the new formats. Blocksize is multiples of 64KiB */ + mtd->erasesize = (64 * 1024) << (extid & 0x03); + extid >>= 2; + /* Get buswidth information */ + if (extid & 0x1) mtd/drivers/mtd/nand nand_ids.c,1.6,1.7 gleixner at infradead.org gleixner at infradead.org Sun Mar 28 18:31:31 EST 2004 Previous message: mtd/include/linux/mtd nand.h,1.35,1.36 Next message: mtd/drivers/mtd/nand nand.c,1.67,1.68 Messages sorted by: [ date ] [ thread ]

ABOUT NXP Investors Partners Careers RESOURCES Mobile Apps Press, News, Blogs Contact Us FOLLOW US NEWS   11 Jan 2016 Photo Advisory -- US Secretary of Transportation, Anthony Foxx, Meets With NXP

Powered by Redmine © 2006-2014 Jean-Philippe Lang Skip navigation Additional Communities  |  nxp.com  HomeNewsContentPeoplePlacesLog in0SearchSearchSearchCancelError: You don't have JavaScript enabled. This prevents a future cross-dependency between nand.ko where all vendor specific code will rely and nand_ids.ko which will reference vendor-specific ops in its manufacturer table, which in turn is referenced by Signed-off-by: Boris Brezillon --- drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/nand_base.c | 108 ++++++++++-------------------------------- drivers/mtd/nand/nand_hynix.c | 81 +++++++++++++++++++++++++++++++ drivers/mtd/nand/nand_ids.c | 3 +- 4 files changed, 110 insertions(+), 83 deletions(-) create mode 100644 As always, I'm open to any suggestion to improve this vendor-specific infrastructure, so please review the code :).

This is part of the "separate vendor specific code from core" cleanup process. On Mon, 6 Jun 2016 22:31:38 +0200 Boris Brezillon wrote: > On Mon, 6 Jun 2016 22:59:03 +0300 > Aleksei Mamlin wrote: > > > On Mon, 6 Jun It should fix the problem [1]. And finally, patch 15 is showing how useful this vendor-specific stuff can be by implementing read-retry support for Hynix 1x nm MLCs.

Blocksize is multiples of 64KiB */ - mtd->erasesize = (64 * 1024) << (extid & 0x03); - extid >>= 2; - /* Get buswidth information */ - if (extid & 0x1) Features Business Explore Marketplace Pricing This repository Sign in or Sign up Watch 17 Star 44 Fork 50 spotify/linux Code Issues 3 Pull requests 0 Projects 0 Insights Pulse Graphs We list them first so that we can easily identify * the most specific match. */ {"TC58NVG2S0F 4G 3.3V 8-bit", { .id = {0x98, 0xdc, 0x90, 0x26, 0x76, 0x15, 0x01, 0x08} What about ONFI parameter page?

On Mon, 6 Jun 2016 20:55:49 +0200 Boris Brezillon wrote: > On Mon, 6 Jun 2016 13:24:22 +0300 > Aleksei Mamlin wrote: > > > Add the full description This tool uses JavaScript and much of it will not work correctly without it enabled. Read More NEWS   14 Jan 2016 CES 2016 Read More NEWS   12 Jan 2016 How NFC is taking mobile payments in bold new directions Read More NEWS   12 Jan 2016 NXP