mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-30 02:04:04 +02:00
init the cpu_id
This commit is contained in:
parent
60cb0eb193
commit
1675108f82
@ -67,6 +67,8 @@ static int parse_configure(char * file_path)
|
|||||||
return -1;
|
return -1;
|
||||||
cfg_free(cfg);
|
cfg_free(cfg);
|
||||||
|
|
||||||
|
fw_args.cpu_id = 0x4740;
|
||||||
|
|
||||||
total_size = (unsigned int)(2 << (fw_args.row_addr + fw_args.col_addr - 1)) * 2
|
total_size = (unsigned int)(2 << (fw_args.row_addr + fw_args.col_addr - 1)) * 2
|
||||||
* (fw_args.bank_num + 1) * 2
|
* (fw_args.bank_num + 1) * 2
|
||||||
* (2 - fw_args.bus_width);
|
* (2 - fw_args.bus_width);
|
||||||
@ -147,6 +149,7 @@ int main(int argc, char **argv)
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
/* now we upload the usb boot stage1 */
|
/* now we upload the usb boot stage1 */
|
||||||
|
printf("upload usb boot stage1\n");
|
||||||
if (load_file(&ingenic_dev, STAGE1_FILE_PATH) < 1)
|
if (load_file(&ingenic_dev, STAGE1_FILE_PATH) < 1)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
@ -155,6 +158,7 @@ int main(int argc, char **argv)
|
|||||||
#if 0
|
#if 0
|
||||||
/* now we upload the usb boot stage2 */
|
/* now we upload the usb boot stage2 */
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
printf("upload usb boot stage2\n");
|
||||||
if (load_file(&ingenic_dev, STAGE2_FILE_PATH) < 1)
|
if (load_file(&ingenic_dev, STAGE2_FILE_PATH) < 1)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
@ -235,7 +235,7 @@ int usb_ingenic_upload(struct ingenic_dev *ingenic_dev, int stage)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stage != 1) {
|
if (stage == 2) {
|
||||||
usb_get_ingenic_cpu(ingenic_dev);
|
usb_get_ingenic_cpu(ingenic_dev);
|
||||||
usb_ingenic_flush_cache(ingenic_dev);
|
usb_ingenic_flush_cache(ingenic_dev);
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,7 @@ ROWADDR = 13 #Row address width in bits (11-13)
|
|||||||
COLADDR = 9 #Column address width in bits (8-12)
|
COLADDR = 9 #Column address width in bits (8-12)
|
||||||
ISMOBILE = 0 #Define whether SDRAM is mobile SDRAM, this only valid for Jz4750 ,1:yes 0:no
|
ISMOBILE = 0 #Define whether SDRAM is mobile SDRAM, this only valid for Jz4750 ,1:yes 0:no
|
||||||
ISBUSSHARE = 1 #Define whether SDRAM bus share with NAND 1:shared 0:unshared
|
ISBUSSHARE = 1 #Define whether SDRAM bus share with NAND 1:shared 0:unshared
|
||||||
|
DEBUGOPS = 0
|
||||||
|
|
||||||
# [NAND]
|
# [NAND]
|
||||||
# BUSWIDTH = 8 #The width of the NAND flash chip in bits (8|16|32)
|
# BUSWIDTH = 8 #The width of the NAND flash chip in bits (8|16|32)
|
||||||
|
Loading…
Reference in New Issue
Block a user