diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2009-03-02 23:36:12 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2009-03-02 23:36:12 +0000 |
commit | 9f6e117e8283ce683efe546b32139dd723c724d1 (patch) | |
tree | 4439fd3dc5836038159aae4569e893b006e1a276 /firmware/export/nand_id.h | |
parent | 3fe6152a1a6095e41426709d4a2eb3780529d518 (diff) | |
download | rockbox-9f6e117e8283ce683efe546b32139dd723c724d1.tar.gz rockbox-9f6e117e8283ce683efe546b32139dd723c724d1.zip |
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
Diffstat (limited to 'firmware/export/nand_id.h')
-rw-r--r-- | firmware/export/nand_id.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 | |||
29 | unsigned short blocks_per_bank; | 29 | unsigned short blocks_per_bank; |
30 | unsigned short page_size; | 30 | unsigned short page_size; |
31 | unsigned short spare_size; | 31 | unsigned short spare_size; |
32 | unsigned short col_cycles; | 32 | unsigned char col_cycles; |
33 | unsigned short row_cycles; | 33 | unsigned char row_cycles; |
34 | unsigned char planes; | ||
34 | }; | 35 | }; |
35 | 36 | ||
36 | struct nand_info* nand_identify(unsigned char data[5]); | 37 | struct nand_info* nand_identify(unsigned char data[5]); |