summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2021-01-05 15:32:20 +0100
committerPali Rohár <pali.rohar@gmail.com>2021-01-05 15:32:20 +0100
commit673ccaf71dc5d1db38b5e87753d23193630fcff3 (patch)
tree71d7ddaa0641010a6b20dbdf2ced4d960cca7983
parent9bc4b8c26f2ae32a4cedb73c015ba5dad8bef032 (diff)
download0xFFFF-673ccaf71dc5d1db38b5e87753d23193630fcff3.tar.bz2
usb-device: Add N900 U-Boot mode (TTY via USB) to device list
-rw-r--r--src/usb-device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usb-device.c b/src/usb-device.c
index 27d2809..07559d6 100644
--- a/src/usb-device.c
+++ b/src/usb-device.c
@@ -53,6 +53,7 @@ static struct usb_flash_device usb_devices[] = {
{ 0x0421, 0x0189, -1, -1, FLASH_DISK, { DEVICE_RX_48, 0 } },
{ 0x0421, 0x01c7, -1, -1, FLASH_DISK, { DEVICE_RX_51, 0 } },
{ 0x0421, 0x01c8, 1, 1, FLASH_MKII, { DEVICE_RX_51, DEVICE_RM_680, 0 } },
+ { 0x0421, 0x01c8, 1, 0, FLASH_UNKN, { DEVICE_RX_51, 0 } }, /* U-Boot mode (TTY via USB) */
{ 0x0421, 0x03d1, -1, -1, FLASH_DISK, { DEVICE_RM_680, 0 } },
{ 0x0421, 0x03d2, 1, 1, FLASH_MKII, { DEVICE_RM_680, 0 } },
{ 0x0421, 0x0431, -1, -1, FLASH_DISK, { DEVICE_SU_18, DEVICE_RX_34, 0 } },
@@ -238,7 +239,7 @@ static struct usb_device_info * usb_device_is_valid(struct usb_device * dev) {
ret->device = DEVICE_RX_44;
else if ( strcmp(product, "Nokia N810 Internet Tablet WiMAX Edition") == 0 || strcmp(product, "Nokia-RX48 (Update mode)") == 0 )
ret->device = DEVICE_RX_48;
- else if ( strcmp(product, "N900 (Storage Mode)") == 0 || strcmp(product, "Nokia N900 (Update mode)") == 0 || strcmp(product, "N900 (PC-Suite Mode)") == 0 )
+ else if ( strcmp(product, "N900 (Storage Mode)") == 0 || strcmp(product, "Nokia N900 (Update mode)") == 0 || strcmp(product, "N900 (PC-Suite Mode)") == 0 || strcmp(product, "N900 (U-Boot)") == 0 )
ret->device = DEVICE_RX_51;
else if ( strcmp(product, "Nokia N950") == 0 || strcmp(product, "N950 (Update mode)") == 0 )
ret->device = DEVICE_RM_680;