mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-25 20:04:03 +02:00
make the 2gb nand cfg as the default configure
This commit is contained in:
parent
845ae95905
commit
6b31e71e8e
@ -41,11 +41,11 @@ DEBUGOPS = 0
|
|||||||
# [NAND]
|
# [NAND]
|
||||||
NAND_BUSWIDTH = 8 #The width of the NAND flash chip in bits (8|16|32)
|
NAND_BUSWIDTH = 8 #The width of the NAND flash chip in bits (8|16|32)
|
||||||
NAND_ROWCYCLES = 3 #The row address cycles (2|3)
|
NAND_ROWCYCLES = 3 #The row address cycles (2|3)
|
||||||
NAND_PAGESIZE = 2048 #The page size of the NAND chip in bytes(512|2048|4096)
|
NAND_PAGESIZE = 4096 #The page size of the NAND chip in bytes(512|2048|4096)
|
||||||
NAND_PAGEPERBLOCK = 128 #The page number per block
|
NAND_PAGEPERBLOCK = 128 #The page number per block
|
||||||
NAND_FORCEERASE = 1 #The force to erase flag (0|1)
|
NAND_FORCEERASE = 1 #The force to erase flag (0|1)
|
||||||
NAND_OOBSIZE = 64 #oob size in byte
|
NAND_OOBSIZE = 128 #oob size in byte
|
||||||
NAND_ECCPOS = 6 #Specify the ECC offset inside the oob data (0-[oobsize-1])
|
NAND_ECCPOS = 12 #Specify the ECC offset inside the oob data (0-[oobsize-1])
|
||||||
NAND_BADBLOCKPOS = 0 #Specify the badblock flag offset inside the oob (0-[oobsize-1])
|
NAND_BADBLOCKPOS = 0 #Specify the badblock flag offset inside the oob (0-[oobsize-1])
|
||||||
NAND_BADBLOCKPAGE = 127 #Specify the page number of badblock flag inside a block(0-[PAGEPERBLOCK-1])
|
NAND_BADBLOCKPAGE = 127 #Specify the page number of badblock flag inside a block(0-[PAGEPERBLOCK-1])
|
||||||
NAND_PLANENUM = 1 #The planes number of target nand flash
|
NAND_PLANENUM = 1 #The planes number of target nand flash
|
||||||
|
@ -41,11 +41,11 @@ DEBUGOPS = 0
|
|||||||
# [NAND]
|
# [NAND]
|
||||||
NAND_BUSWIDTH = 8 #The width of the NAND flash chip in bits (8|16|32)
|
NAND_BUSWIDTH = 8 #The width of the NAND flash chip in bits (8|16|32)
|
||||||
NAND_ROWCYCLES = 3 #The row address cycles (2|3)
|
NAND_ROWCYCLES = 3 #The row address cycles (2|3)
|
||||||
NAND_PAGESIZE = 4096 #The page size of the NAND chip in bytes(512|2048|4096)
|
NAND_PAGESIZE = 2048 #The page size of the NAND chip in bytes(512|2048|4096)
|
||||||
NAND_PAGEPERBLOCK = 128 #The page number per block
|
NAND_PAGEPERBLOCK = 128 #The page number per block
|
||||||
NAND_FORCEERASE = 1 #The force to erase flag (0|1)
|
NAND_FORCEERASE = 1 #The force to erase flag (0|1)
|
||||||
NAND_OOBSIZE = 128 #oob size in byte
|
NAND_OOBSIZE = 64 #oob size in byte
|
||||||
NAND_ECCPOS = 12 #Specify the ECC offset inside the oob data (0-[oobsize-1])
|
NAND_ECCPOS = 6 #Specify the ECC offset inside the oob data (0-[oobsize-1])
|
||||||
NAND_BADBLOCKPOS = 0 #Specify the badblock flag offset inside the oob (0-[oobsize-1])
|
NAND_BADBLOCKPOS = 0 #Specify the badblock flag offset inside the oob (0-[oobsize-1])
|
||||||
NAND_BADBLOCKPAGE = 127 #Specify the page number of badblock flag inside a block(0-[PAGEPERBLOCK-1])
|
NAND_BADBLOCKPAGE = 127 #Specify the page number of badblock flag inside a block(0-[PAGEPERBLOCK-1])
|
||||||
NAND_PLANENUM = 1 #The planes number of target nand flash
|
NAND_PLANENUM = 1 #The planes number of target nand flash
|
@ -164,7 +164,7 @@ int usb_get_ingenic_cpu(struct ingenic_dev *ingenic_dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ingenic_dev->cpu_info_buff[8] = '\0';
|
ingenic_dev->cpu_info_buff[8] = '\0';
|
||||||
/* printf(" CPU data: %s\n", ingenic_dev->cpu_info_buff); */
|
printf(" CPU data: %s\n", ingenic_dev->cpu_info_buff);
|
||||||
|
|
||||||
if (!strcmp(ingenic_dev->cpu_info_buff,"JZ4740V1")) return 1;
|
if (!strcmp(ingenic_dev->cpu_info_buff,"JZ4740V1")) return 1;
|
||||||
if (!strcmp(ingenic_dev->cpu_info_buff,"JZ4750V1")) return 2;
|
if (!strcmp(ingenic_dev->cpu_info_buff,"JZ4750V1")) return 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user