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

make the usbboot detect the target cpu type by usb id

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
Xiangfu Liu
2010-06-18 14:28:25 +08:00
parent d0db32762f
commit 046a7e7cbd
4 changed files with 26 additions and 43 deletions

View File

@@ -39,8 +39,10 @@
#define JZ4740V1 1
#define JZ4750V1 2
#define BOOT4740 3
#define BOOT4750 4
#define JZ4760V1 3
#define BOOT4740 4
#define BOOT4750 5
#define BOOT4760 6
#define STAGE_ADDR_MSB(addr) ((addr) >> 16)
#define STAGE_ADDR_LSB(addr) ((addr) & 0xffff)
@@ -49,7 +51,9 @@
#define USB_TIMEOUT 5000
#define VENDOR_ID 0x601a
#define PRODUCT_ID 0x4740
#define PRODUCT_ID_4740 0x4740
#define PRODUCT_ID_4750 0x4750
#define PRODUCT_ID_4760 0x4760
#define STAGE1_FILE_PATH (DATADIR "xburst_stage1.bin")
#define STAGE2_FILE_PATH (DATADIR "xburst_stage2.bin")