diff --git a/sys/dev/nand/files.nand b/sys/dev/nand/files.nand index 3a5807b1a70a..bb0f77adb38f 100644 --- a/sys/dev/nand/files.nand +++ b/sys/dev/nand/files.nand @@ -1,4 +1,4 @@ -# $NetBSD: files.nand,v 1.4 2011/06/28 18:14:11 ahoka Exp $ +# $NetBSD: files.nand,v 1.5 2012/10/31 18:58:08 riz Exp $ define nandbus { } @@ -9,6 +9,7 @@ file dev/nand/hamming.c nand file dev/nand/nand_bbt.c nand file dev/nand/nand_crc.c nand file dev/nand/nand_micron.c nand +file dev/nand/nand_samsung.c nand defpseudodev nandemulator: nandbus file dev/nand/nandemulator.c nandemulator diff --git a/sys/dev/nand/nand.c b/sys/dev/nand/nand.c index e13b49b655a6..58d9baa4ee2a 100644 --- a/sys/dev/nand/nand.c +++ b/sys/dev/nand/nand.c @@ -1,4 +1,4 @@ -/* $NetBSD: nand.c,v 1.17 2012/07/12 03:05:01 matt Exp $ */ +/* $NetBSD: nand.c,v 1.18 2012/10/31 18:58:08 riz Exp $ */ /*- * Copyright (c) 2010 Department of Software Engineering, @@ -34,7 +34,7 @@ /* Common driver for NAND chips implementing the ONFI 2.2 specification */ #include -__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.17 2012/07/12 03:05:01 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.18 2012/10/31 18:58:08 riz Exp $"); #include "locators.h" @@ -332,6 +332,8 @@ nand_fill_chip_structure_legacy(device_t self, struct nand_chip *chip) switch (chip->nc_manf_id) { case NAND_MFR_MICRON: return nand_read_parameters_micron(self, chip); + case NAND_MFR_SAMSUNG: + return nand_read_parameters_samsung(self, chip); default: return 1; } diff --git a/sys/dev/nand/nand.h b/sys/dev/nand/nand.h index 93d08ae3398e..a8ab8cd8734a 100644 --- a/sys/dev/nand/nand.h +++ b/sys/dev/nand/nand.h @@ -1,4 +1,4 @@ -/* $NetBSD: nand.h,v 1.13 2011/07/15 19:19:57 cliff Exp $ */ +/* $NetBSD: nand.h,v 1.14 2012/10/31 18:58:08 riz Exp $ */ /*- * Copyright (c) 2010 Department of Software Engineering, @@ -428,6 +428,7 @@ extern const struct nand_manufacturer nand_mfrs[]; * Manufacturer specific parameter functions */ int nand_read_parameters_micron(device_t, struct nand_chip *); +int nand_read_parameters_samsung(device_t, struct nand_chip *); /* debug inlines */