1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2025-04-21 12:27:27 +03:00

update README, some code cleanup

Signed-off-by: Xiangfu Liu <xiangfu.z@gmail.com>
This commit is contained in:
Xiangfu Liu
2009-08-27 21:48:03 +08:00
parent f8f75cc9f7
commit c5621d6af8
4 changed files with 28 additions and 16 deletions

View File

@@ -450,6 +450,9 @@ int nand_program_file(struct nand_in *nand_in,
transfer_size = (hand.nand_ppb * hand.nand_ps);
else
transfer_size = (hand.nand_ppb * (hand.nand_ps + hand.nand_os));
printf("nand_ppb: %d, nand_ps: %d, nand_os: %d\n", hand.nand_ppb,
hand.nand_ps, hand.nand_os);
m = flen / transfer_size;
j = flen % transfer_size;
printf(" Size to send %d, transfer_size %d\n", flen, transfer_size);

View File

@@ -126,11 +126,13 @@ int check_dump_cfg(struct hand *hand)
total_size / 0x100000, 2 * (hand->fw_args.bank_num + 1),
16 * (2 - hand->fw_args.bus_width));
printf("Nand page size %d, "
printf("Nand page per block %d, "
"Nand page size %d, "
"ECC offset in OOB %d, "
"bad block offset in OOB %d, "
"bad block page %d, "
"use %d plane mode\n",
hand->nand_ppb,
hand->nand_ps,
hand->nand_eccpos,
hand->nand_bbpos,