1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Rob Purchase 2009-03-02 23:36:12 +00:00
parent 3fe6152a1a
commit 9f6e117e82
3 changed files with 90 additions and 71 deletions

View file

@ -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]);