summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-10-28 16:10:14 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-30 17:51:20 -0700
commita023d6b0c1f3fc6dcc2e026ea324b90a5ffa7ae0 (patch)
treeb59bb02b1dc05e24148673c77da5f1559aa9d443
parent813e56e10af48dc010dc629cb6d0c37efcb995dd (diff)
downloadchrome-ec-a023d6b0c1f3fc6dcc2e026ea324b90a5ffa7ae0.tar.gz
glados: oak: chell: enable USB PD logging
Enable USB PD logging. BUG=chrome-os-partner:45933 BRANCH=none TEST=make -j buildall make -j BOARD=glados tests Load on glados and test that PDLOG events show up in dmesg Change-Id: I61dbc5019ea3228542c2c244228bbb483cf51ead Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/309881 Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
-rw-r--r--board/chell/board.h2
-rw-r--r--board/glados/board.h2
-rw-r--r--board/oak/board.h2
-rw-r--r--test/test_config.h2
4 files changed, 8 insertions, 0 deletions
diff --git a/board/chell/board.h b/board/chell/board.h
index c2cd17b7fd..752ac7278a 100644
--- a/board/chell/board.h
+++ b/board/chell/board.h
@@ -55,6 +55,8 @@
#define CONFIG_USB_PD_ALT_MODE_DFP
#define CONFIG_USB_PD_CUSTOM_VDM
#define CONFIG_USB_PD_DUAL_ROLE
+#define CONFIG_USB_PD_LOGGING
+#define CONFIG_USB_PD_LOG_SIZE 512
#define CONFIG_USB_PD_PORT_COUNT 2
#define CONFIG_USB_PD_TCPM_TCPCI
#define CONFIG_USB_PD_TRY_SRC
diff --git a/board/glados/board.h b/board/glados/board.h
index afb5772043..d783741c0d 100644
--- a/board/glados/board.h
+++ b/board/glados/board.h
@@ -65,6 +65,8 @@
#define CONFIG_USB_PD_ALT_MODE_DFP
#define CONFIG_USB_PD_CUSTOM_VDM
#define CONFIG_USB_PD_DUAL_ROLE
+#define CONFIG_USB_PD_LOGGING
+#define CONFIG_USB_PD_LOG_SIZE 512
#define CONFIG_USB_PD_PORT_COUNT 2
#define CONFIG_USB_PD_TCPM_TCPCI
#define CONFIG_USB_PD_TRY_SRC
diff --git a/board/oak/board.h b/board/oak/board.h
index a09dbf43bf..3d5711494c 100644
--- a/board/oak/board.h
+++ b/board/oak/board.h
@@ -68,6 +68,8 @@
#define CONFIG_USB_PD_ALT_MODE_DFP
#define CONFIG_USB_PD_CUSTOM_VDM
#define CONFIG_USB_PD_DUAL_ROLE
+#define CONFIG_USB_PD_LOGGING
+#define CONFIG_USB_PD_LOG_SIZE 512
#define CONFIG_USB_PD_PORT_COUNT 2
#define CONFIG_USB_PD_TCPM_TCPCI
#define CONFIG_USB_PD_TRY_SRC
diff --git a/test/test_config.h b/test/test_config.h
index 1ef48eba69..ba645dff69 100644
--- a/test/test_config.h
+++ b/test/test_config.h
@@ -13,6 +13,8 @@
/* Don't compile vboot hash support unless specifically testing for it */
#undef CONFIG_VBOOT_HASH
+/* Don't compile PD logging unless specifically testing for it */
+#undef CONFIG_USB_PD_LOGGING
#ifdef TEST_BKLIGHT_LID
#define CONFIG_BACKLIGHT_LID