From a023d6b0c1f3fc6dcc2e026ea324b90a5ffa7ae0 Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Wed, 28 Oct 2015 16:10:14 -0700 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/309881 Reviewed-by: Duncan Laurie --- board/chell/board.h | 2 ++ board/glados/board.h | 2 ++ board/oak/board.h | 2 ++ test/test_config.h | 2 ++ 4 files changed, 8 insertions(+) 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