summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-06-23 13:00:12 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-06-23 13:00:12 +0200
commitdc910a5317b10bfa060d0e58bf01ce3ccdb71b13 (patch)
tree19ef97bf8aa47a37728b2bde307e59acc04e98eb
parent34c8fb057dd04a62131410d607d5d605f27115f1 (diff)
download0xFFFF-dc910a5317b10bfa060d0e58bf01ce3ccdb71b13.tar.bz2
Prepair for flashing via MK II protocol (N900 in PC-Suite mode)
-rw-r--r--src/devices.c7
-rw-r--r--src/main.h4
2 files changed, 6 insertions, 5 deletions
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;