Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/nand Set nc_block_pages
details: https://anonhg.NetBSD.org/src/rev/5cbe440b7aa8
branches: trunk
changeset: 782435:5cbe440b7aa8
user: ahoka <ahoka%NetBSD.org@localhost>
date: Fri Nov 02 21:27:46 2012 +0000
description:
Set nc_block_pages
diffstat:
sys/dev/nand/nand_samsung.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r eb2ad094d245 -r 5cbe440b7aa8 sys/dev/nand/nand_samsung.c
--- a/sys/dev/nand/nand_samsung.c Fri Nov 02 21:17:26 2012 +0000
+++ b/sys/dev/nand/nand_samsung.c Fri Nov 02 21:27:46 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nand_samsung.c,v 1.6 2012/11/02 21:17:26 ahoka Exp $ */
+/* $NetBSD: nand_samsung.c,v 1.7 2012/11/02 21:27:46 ahoka Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nand_samsung.c,v 1.6 2012/11/02 21:17:26 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand_samsung.c,v 1.7 2012/11/02 21:27:46 ahoka Exp $");
#include "nand.h"
#include "onfi.h"
@@ -122,6 +122,8 @@
KASSERTMSG(false, "ID Data parsing bug detected!");
}
+ chip->nc_block_pages = chip->nc_block_size / chip->nc_page_size;
+
/* 8/16 bytes per 512 bytes! XXX do i get this right? */
switch ((params2 & NAND_SAMSUNG_SPAREMASK) >> 2) {
case 0x0:
Home |
Main Index |
Thread Index |
Old Index