Browse Source

ztex: Harmonize low-speed FPGA configuration code with high-speed code

Denis Ahrens 13 years ago
parent
commit
da1c8c30be
1 changed files with 3 additions and 2 deletions
  1. 3 2
      libztex.c

+ 3 - 2
libztex.c

@@ -307,10 +307,11 @@ static int libztex_configureFpgaLS(struct libztex_device *ztex, const char* firm
 
 		fclose(fp);
 	}
+
 	libztex_getFpgaState(ztex, &state);
 	if (!state.fpgaConfigured) {
-		applog(LOG_ERR, "%s: FPGA configuration failed: DONE pin does not go high", ztex->repr);
-		return 3;
+		applog(LOG_ERR, "%s: LS FPGA configuration failed: DONE pin does not go high", ztex->repr);
+		return -3;
 	}
 	usleep(200000);
 	applog(LOG_INFO, "%s: FPGA configuration done", ztex->repr);