|
@@ -283,6 +283,7 @@ static float limit_freq(struct COMPAC_INFO *info, float freq, bool zero)
|
|
|
freq = fbound(freq, info->freq_base, 500);
|
|
|
break;
|
|
|
case IDENT_GSH:
|
|
|
+ case IDENT_BAX:
|
|
|
case IDENT_GSI:
|
|
|
freq = fbound(freq, 50, 900);
|
|
|
break;
|
|
@@ -3478,6 +3479,10 @@ static bool compac_init(struct thr_info *thr)
|
|
|
info->frequency_requested = limit_freq(info, opt_gekko_gsh_freq, false);
|
|
|
info->frequency_start = limit_freq(info, opt_gekko_start_freq, false);
|
|
|
break;
|
|
|
+ case IDENT_BAX:
|
|
|
+ info->frequency_requested = limit_freq(info, opt_gekko_bax_freq, false);
|
|
|
+ info->frequency_start = limit_freq(info, opt_gekko_start_freq, false);
|
|
|
+ break;
|
|
|
case IDENT_GSI:
|
|
|
info->frequency_requested = limit_freq(info, opt_gekko_gsi_freq, false);
|
|
|
info->frequency_start = limit_freq(info, opt_gekko_start_freq, false);
|
|
@@ -3783,8 +3788,8 @@ static struct cgpu_info *compac_detect_one(struct libusb_device *dev, struct usb
|
|
|
info->ident = usb_ident(compac);
|
|
|
|
|
|
if (opt_gekko_gsc_detect || opt_gekko_gsd_detect || opt_gekko_gse_detect
|
|
|
- || opt_gekko_gsh_detect || opt_gekko_gsi_detect || opt_gekko_gsf_detect
|
|
|
- || opt_gekko_r909_detect)
|
|
|
+ || opt_gekko_gsh_detect || opt_gekko_bax_detect || opt_gekko_gsi_detect
|
|
|
+ || opt_gekko_gsf_detect || opt_gekko_r909_detect)
|
|
|
{
|
|
|
exclude_me = (info->ident == IDENT_BSC && !opt_gekko_gsc_detect);
|
|
|
exclude_me |= (info->ident == IDENT_GSC && !opt_gekko_gsc_detect);
|
|
@@ -3793,6 +3798,7 @@ static struct cgpu_info *compac_detect_one(struct libusb_device *dev, struct usb
|
|
|
exclude_me |= (info->ident == IDENT_BSE && !opt_gekko_gse_detect);
|
|
|
exclude_me |= (info->ident == IDENT_GSE && !opt_gekko_gse_detect);
|
|
|
exclude_me |= (info->ident == IDENT_GSH && !opt_gekko_gsh_detect);
|
|
|
+ exclude_me |= (info->ident == IDENT_BAX && !opt_gekko_gsh_detect);
|
|
|
exclude_me |= (info->ident == IDENT_GSI && !opt_gekko_gsi_detect);
|
|
|
exclude_me |= (info->ident == IDENT_GSF && !opt_gekko_gsf_detect);
|
|
|
exclude_me |= (info->ident == IDENT_GSFM && !opt_gekko_r909_detect);
|
|
@@ -3835,6 +3841,10 @@ static struct cgpu_info *compac_detect_one(struct libusb_device *dev, struct usb
|
|
|
info->asic_type = BM1387;
|
|
|
info->expected_chips = 2;
|
|
|
break;
|
|
|
+ case IDENT_BAX:
|
|
|
+ info->asic_type = BM1387;
|
|
|
+ info->expected_chips = 2;
|
|
|
+ break;
|
|
|
case IDENT_GSI:
|
|
|
info->asic_type = BM1387;
|
|
|
info->expected_chips = 12;
|