David Hendricks has uploaded a new change for review. ( https://review.coreboot.org/19673 )
Change subject: dediprog: Add socket support for SF600 ......................................................................
dediprog: Add socket support for SF600
This enables use of the socket rather than clip on SF600 programmers.
Change-Id: I5fd4133f08882d60ac596273ab8aa9dab893c9cd Signed-off-by: David Hendricks dhendricks@fb.com --- M dediprog.c 1 file changed, 11 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/73/19673/1
diff --git a/dediprog.c b/dediprog.c index 6f82772..a579c1b 100644 --- a/dediprog.c +++ b/dediprog.c @@ -1006,7 +1006,7 @@ free(target_str); return 1; } - if (target < 1 || target > 2) { + if (target < 1 || target > 3) { msg_perr("Error: Value for 'target' is out of range.\n"); free(target_str); return 1; @@ -1025,6 +1025,9 @@ msg_pinfo("Using target %s.\n", "FLASH_TYPE_APPLICATION_FLASH_2"); target = FLASH_TYPE_APPLICATION_FLASH_2; break; + case 3: + msg_pinfo("Using target %s.\n", "FLASH_TYPE_SOCKET"); + target = FLASH_TYPE_SOCKET; default: break; } @@ -1086,6 +1089,13 @@ dediprog_set_leds(LED_ALL);
/* Select target/socket, frequency and VCC. */ + if (target == FLASH_TYPE_SOCKET) { + if (dediprog_devicetype != DEV_SF600) { + msg_perr("Socket flash is only supported on SF600.\n"); + return 1; + } + } + if (set_target_flash(target) || dediprog_set_spi_speed(spispeed_idx) || dediprog_set_spi_voltage(millivolt)) {