vell: Increase Adapter current Prochot# threshold
Vell is using a 100W adapter. This patch increases adapter current
Prochot# threshold to 5A.
BRANCH=none
TEST=On Vell. Charging and make sure ACProchot# is not asserted.
#include "compile_time_macros.h"
#include "console.h"
#include "driver/charger/isl9241.h"
+#include "hooks.h"
#include "usbc_ppc.h"
#include "usb_pd.h"
#include "util.h"
@@ -88,3 +89,9 @@ __overridable void board_set_charge_limit(int port, int supplier, int charge_ma,
CONFIG_CHARGER_INPUT_CURRENT),
charge_mv);
}
+
+static void set_ac_prochot(void)
+{
+ isl9241_set_ac_prochot(CHARGER_SOLO, PD_MAX_CURRENT_MA);
+}
+DECLARE_HOOK(HOOK_INIT, set_ac_prochot, HOOK_PRIO_DEFAULT);
