Prepair for flashing via MK II protocol (N900 in PC-Suite mode)

This commit is contained in:
Pali Rohár committed 2012-06-23 13:00:12 +02:00
1 parent 34c8fb057d
commit dc910a5317
2 files changed
+6 -5

No files matched your search

+4 -3
View File
@@ -44,8 +44,9 @@ struct devices supported_devices[SUPPORTED_DEVICES] = {
{ "n770/n810/n900", 0x0421, 0x0105, FLASH_NORMAL }, { "n770/n810/n900", 0x0421, 0x0105, FLASH_NORMAL },
{ "n900", 0x0421, 0x0106, FLASH_COLD }, { "n900", 0x0421, 0x0106, FLASH_COLD },
// { "n900", 0x0421, 0x????, FLASH_EMMC }, // { "n900", 0x0421, 0x????, FLASH_EMMC },
{ 0 }, { "n900", 0x0421, 0x01c8, FLASH_MKII },
{ 0 } { NULL },
{ NULL }
}; };
/** Returns 0 when no device was found and a positive /** Returns 0 when no device was found and a positive
@@ -78,7 +79,7 @@ void list_valid_devices()
int i; int i;
struct devices ptr = supported_devices[1]; struct devices ptr = supported_devices[1];
for(i=1; ptr.vendor_id; ptr = supported_devices[++i]) for(i=1; ptr.name; ptr = supported_devices[++i])
printf("%04x:%04x %s\n", ptr.vendor_id, ptr.product_id, ptr.name); printf("%04x:%04x %s\n", ptr.vendor_id, ptr.product_id, ptr.name);
} }
+2 -2
View File
@@ -66,7 +66,7 @@ enum flash_mode {
FLASH_COLD, FLASH_COLD,
FLASH_NORMAL, FLASH_NORMAL,
FLASH_EMMC, FLASH_EMMC,
FLASH_ANY FLASH_MKII,
}; };
struct devices { struct devices {
@@ -76,7 +76,7 @@ struct devices {
enum flash_mode mode; enum flash_mode mode;
}; };
#define SUPPORTED_DEVICES 6 #define SUPPORTED_DEVICES 8
extern struct devices supported_devices[SUPPORTED_DEVICES]; extern struct devices supported_devices[SUPPORTED_DEVICES];
extern int pcs_n; extern int pcs_n;