Change in flashrom[master]: Add initial support for Dediprog SF200.
David Hendricks has uploaded this change for review. ( https://review.coreboot.org/28272 Change subject: Add initial support for Dediprog SF200. ...................................................................... Add initial support for Dediprog SF200. Change-Id: I025d1533e249f6a75b6d9015a18a6abf350456b6 Signed-off-by: Jay Thompson <thompson.jay.thomas@gmail.com> --- M dediprog.c 1 file changed, 12 insertions(+), 2 deletions(-) git pull ssh://review.coreboot.org:29418/flashrom refs/changes/72/28272/1 diff --git a/dediprog.c b/dediprog.c index 7fcadfb..933b15e 100644 --- a/dediprog.c +++ b/dediprog.c @@ -51,6 +51,7 @@ enum dediprog_devtype { DEV_UNKNOWN = 0, DEV_SF100 = 100, + DEV_SF200 = 200, DEV_SF600 = 600, }; @@ -152,7 +153,7 @@ }; const struct dev_entry devs_dediprog[] = { - {0x0483, 0xDADA, OK, "Dediprog", "SF100/SF600"}, + {0x0483, 0xDADA, OK, "Dediprog", "SF100/SF200/SF600"}, {0}, }; @@ -185,6 +186,11 @@ return PROTOCOL_V1; else return PROTOCOL_V2; + case DEV_SF200: + if (dediprog_firmwareversion < FIRMWARE_VERSION(5, 5, 0)) + return PROTOCOL_V1; + else + return PROTOCOL_V2; case DEV_SF600: if (dediprog_firmwareversion < FIRMWARE_VERSION(6, 9, 0)) return PROTOCOL_V1; @@ -800,10 +806,12 @@ msg_pdbg("Found a %s\n", buf); if (memcmp(buf, "SF100", 0x5) == 0) dediprog_devicetype = DEV_SF100; + else if (memcmp(buf, "SF200", 0x5) == 0) + dediprog_devicetype = DEV_SF200; else if (memcmp(buf, "SF600", 0x5) == 0) dediprog_devicetype = DEV_SF600; else { - msg_perr("Device not a SF100 or SF600!\n"); + msg_perr("Device not a SF100, SF200, or SF600!\n"); return 1; } @@ -1139,6 +1147,8 @@ dediprog_in_endpoint = 2; if (dediprog_devicetype == DEV_SF100) dediprog_out_endpoint = 2; + else if (dediprog_devicetype == DEV_SF200) + dediprog_out_endpoint = 2; else dediprog_out_endpoint = 1; -- To view, visit https://review.coreboot.org/28272 To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: flashrom Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I025d1533e249f6a75b6d9015a18a6abf350456b6 Gerrit-Change-Number: 28272 Gerrit-PatchSet: 1 Gerrit-Owner: David Hendricks <david.hendricks@gmail.com>
participants (1)
-
David Hendricks (Code Review)