From 9f6e117e8283ce683efe546b32139dd723c724d1 Mon Sep 17 00:00:00 2001 From: Rob Purchase Date: Mon, 2 Mar 2009 23:36:12 +0000 Subject: TCC NAND: The BLOCKS_PER_SEGMENT define was actually the number of planes mentioned in the Samsung NAND datasheet. Add this to the nand_id struct, so that it can be runtime detected (required for some D2s to boot). Use the struct directly instead of making a local copy, and format the nand_info table to 80 columns. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20186 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/nand_id.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'firmware/export/nand_id.h') diff --git a/firmware/export/nand_id.h b/firmware/export/nand_id.h index 188b6c161a..fb7ea18b8d 100644 --- a/firmware/export/nand_id.h +++ b/firmware/export/nand_id.h @@ -29,8 +29,9 @@ struct nand_info unsigned short blocks_per_bank; unsigned short page_size; unsigned short spare_size; - unsigned short col_cycles; - unsigned short row_cycles; + unsigned char col_cycles; + unsigned char row_cycles; + unsigned char planes; }; struct nand_info* nand_identify(unsigned char data[5]); -- cgit v1.2.3