From dc910a5317b10bfa060d0e58bf01ce3ccdb71b13 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 23 Jun 2012 13:00:12 +0200 Subject: Prepair for flashing via MK II protocol (N900 in PC-Suite mode) --- src/devices.c | 7 ++++--- src/main.h | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/devices.c b/src/devices.c index 50b7f69..eec6e05 100644 --- a/src/devices.c +++ b/src/devices.c @@ -44,8 +44,9 @@ struct devices supported_devices[SUPPORTED_DEVICES] = { { "n770/n810/n900", 0x0421, 0x0105, FLASH_NORMAL }, { "n900", 0x0421, 0x0106, FLASH_COLD }, // { "n900", 0x0421, 0x????, FLASH_EMMC }, - { 0 }, - { 0 } + { "n900", 0x0421, 0x01c8, FLASH_MKII }, + { NULL }, + { NULL } }; /** Returns 0 when no device was found and a positive @@ -78,7 +79,7 @@ void list_valid_devices() int i; 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); } diff --git a/src/main.h b/src/main.h index 05c92ad..2b94d7b 100644 --- a/src/main.h +++ b/src/main.h @@ -66,7 +66,7 @@ enum flash_mode { FLASH_COLD, FLASH_NORMAL, FLASH_EMMC, - FLASH_ANY + FLASH_MKII, }; struct devices { @@ -76,7 +76,7 @@ struct devices { enum flash_mode mode; }; -#define SUPPORTED_DEVICES 6 +#define SUPPORTED_DEVICES 8 extern struct devices supported_devices[SUPPORTED_DEVICES]; extern int pcs_n; -- cgit v1.2.3