HW QC to turn hellen power ON

only:uaefi
This commit is contained in:
rusefillc 2024-09-19 15:19:58 -04:00
parent ccd3e53fe2
commit 38aa6cfa1e
1 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,10 @@
#include "settings.h"
#include "gpio/gpio_ext.h"
#ifdef HW_HELLEN
#include "hellen_meta.h"
#endif // HW_HELLEN
extern PinRepository pinRepository;
// todo: WHAT?! document why do we manually truncate higher bits?
@ -29,6 +33,11 @@ static bool qcDirectPinControlMode = false;
void setHwQcMode() {
qcDirectPinControlMode = true;
#if HW_HELLEN && EFI_PROD_CODE
if (!getHellenBoardEnabled()) {
hellenEnableEn("HW QC");
}
#endif // HW_HELLEN && EFI_PROD_CODE
}
#if EFI_CAN_SUPPORT