summaryrefslogtreecommitdiff
path: root/baseboard/guybrush/usb_pd_policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'baseboard/guybrush/usb_pd_policy.c')
-rw-r--r--baseboard/guybrush/usb_pd_policy.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/baseboard/guybrush/usb_pd_policy.c b/baseboard/guybrush/usb_pd_policy.c
index 86e4400b63..79725e827a 100644
--- a/baseboard/guybrush/usb_pd_policy.c
+++ b/baseboard/guybrush/usb_pd_policy.c
@@ -12,6 +12,7 @@
#include "console.h"
#include "ec_commands.h"
#include "gpio.h"
+#include "ioexpander.h"
#include "system.h"
#include "usb_mux.h"
#include "usb_pd.h"
@@ -64,6 +65,20 @@ int pd_set_power_supply_ready(int port)
return EC_SUCCESS;
}
+__override int board_pd_set_frs_enable(int port, int enable)
+{
+ /*
+ * Both PPCs require the FRS GPIO to be set as soon as FRS capability
+ * is established.
+ */
+ if (port == 0)
+ ioex_set_level(IOEX_USB_C0_TCPC_FASTSW_CTL_EN, enable);
+ else if (port == 1)
+ ioex_set_level(IOEX_USB_C1_TCPC_FASTSW_CTL_EN, enable);
+
+ return EC_SUCCESS;
+}
+
/* Used by Vbus discharge common code with CONFIG_USB_PD_DISCHARGE */
int board_vbus_source_enabled(int port)
{