summaryrefslogtreecommitdiff
path: root/board/it8xxx2_pdevb
diff options
context:
space:
mode:
Diffstat (limited to 'board/it8xxx2_pdevb')
-rw-r--r--board/it8xxx2_pdevb/board.c7
-rw-r--r--board/it8xxx2_pdevb/board.h6
2 files changed, 12 insertions, 1 deletions
diff --git a/board/it8xxx2_pdevb/board.c b/board/it8xxx2_pdevb/board.c
index df242908b7..015a0e6d89 100644
--- a/board/it8xxx2_pdevb/board.c
+++ b/board/it8xxx2_pdevb/board.c
@@ -5,6 +5,7 @@
/* IT8xxx2 PD development board configuration */
#include "adc_chip.h"
+#include "battery.h"
#include "console.h"
#include "it83xx_pd.h"
#include "pwm.h"
@@ -25,6 +26,12 @@ int board_get_battery_soc(void)
return 100;
}
+enum battery_present battery_is_present(void)
+{
+ CPRINTS("%s", __func__);
+ return BP_NO;
+}
+
const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = {
[USB_PD_PORT_ITE_0] = {
.bus_type = EC_BUS_TYPE_EMBEDDED,
diff --git a/board/it8xxx2_pdevb/board.h b/board/it8xxx2_pdevb/board.h
index 55c335a9d8..79062b5594 100644
--- a/board/it8xxx2_pdevb/board.h
+++ b/board/it8xxx2_pdevb/board.h
@@ -47,7 +47,11 @@
#define CONFIG_USB_PD_DUAL_ROLE
#define CONFIG_USB_PD_PORT_MAX_COUNT 3
#define CONFIG_USB_PD_ITE_ACTIVE_PORT_COUNT 3
-#define CONFIG_USB_PD_TCPMV1
+#define CONFIG_USB_PD_TCPMV2
+#define CONFIG_USB_DRP_ACC_TRYSRC
+#define CONFIG_USB_PD_REV30
+#define CONFIG_USB_PID 0x1234 /* Invalid PID for development board */
+#define CONFIG_USB_PD_DEBUG_LEVEL 2
#define CONFIG_USB_PD_TCPM_ITE_ON_CHIP
#define CONFIG_USB_PD_TRY_SRC
#define CONFIG_USB_PD_VBUS_DETECT_GPIO