From af51b9ea19c0ba4c6d57cdc4c5f3380647be3034 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 23 Aug 2019 15:06:57 -0700 Subject: common: Add uptime host command This moves the EC_CMD_GET_UPTIME_INFO command from behind the CONFIG_CMD_AP_RESET_LOG config in chipset.c into the generic common/uptime.c file, so that all boards in the codebase can use it. If CONFIG_CMD_AP_RESET_LOG is enabled, the "AP reset stats" will be filled. Otherwise, ap_reset_stats is a no-op and recent_ap_reset is filled with zero. BRANCH=none BUG=chromium:997314 TEST=cat /sys/kernel/debug/cros_fp/uptime Change-Id: I3b6f91b2dd22d3d55b707309ec1fdfd26d42fd70 Signed-off-by: Tom Hughes Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1769393 Reviewed-by: Tim Wawrzynczak --- board/jerry/board.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'board/jerry') diff --git a/board/jerry/board.h b/board/jerry/board.h index 9b696cfd8f..a7d05165ff 100644 --- a/board/jerry/board.h +++ b/board/jerry/board.h @@ -55,6 +55,9 @@ #undef CONFIG_WATCHDOG_HELP #undef CONFIG_CMD_KEYBOARD +/* Not enough RO flash space */ +#undef CONFIG_HOSTCMD_GET_UPTIME_INFO + #define CONFIG_HIBERNATE_WAKEUP_PINS (STM32_PWR_CSR_EWUP1 | STM32_PWR_CSR_EWUP6) #ifndef __ASSEMBLER__ -- cgit v1.2.1