summaryrefslogtreecommitdiffstats
path: root/src/devices.c
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 /src/devices.c
parent34c8fb057dd04a62131410d607d5d605f27115f1 (diff)
download0xFFFF-dc910a5317b10bfa060d0e58bf01ce3ccdb71b13.tar.bz2
Prepair for flashing via MK II protocol (N900 in PC-Suite mode)
Diffstat (limited to 'src/devices.c')
-rw-r--r--src/devices.c7
1 files changed, 4 insertions, 3 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);
}