From f67f633c449c854086080763acf6e8e44dffb8f1 Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Fri, 14 Oct 2022 13:25:23 -0700 Subject: Prism: Enable host command in RO This patch enables host command interface for a RO copy. This allows the host to read console messages in case KBMCU get stuck in RO. 1708 bytes in RAM still available on prism RO. BUG=b:247611061,b:233404167 BRANCH=None TEST=Vell Signed-off-by: Daisuke Nojiri Change-Id: If06e5bd39f9859f11770d4f928e01beebc162a94 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3956544 Reviewed-by: caveh jalali --- board/prism/board.h | 8 ++------ board/prism/ec.tasklist | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/board/prism/board.h b/board/prism/board.h index 49a08d73e2..5c3cabce53 100644 --- a/board/prism/board.h +++ b/board/prism/board.h @@ -131,13 +131,9 @@ /* USB interface indexes (use define rather than enum to expand them) */ #undef CONFIG_HOSTCMD_EVENTS #define USB_IFACE_UPDATE 0 -#ifdef SECTION_IS_RW #define CONFIG_HOST_INTERFACE_USB #define USB_IFACE_HOSTCMD 1 #define USB_IFACE_COUNT 2 -#else -#define USB_IFACE_COUNT 1 -#endif /* USB endpoint indexes (use define rather than enum to expand them) */ #define USB_EP_CONTROL 0 @@ -162,14 +158,14 @@ #undef CONFIG_LID_SWITCH +#define CONFIG_USB_CONSOLE_READ + #ifdef SECTION_IS_RW #define CONFIG_CURVE25519 #define CONFIG_USB_PAIRING -#define CONFIG_USB_CONSOLE_READ - #else /* SECTION_IS_RO */ /* Sign and switch to RW partition on boot. */ #define CONFIG_RWSIG diff --git a/board/prism/ec.tasklist b/board/prism/ec.tasklist index 501be4a1db..810ef8489b 100644 --- a/board/prism/ec.tasklist +++ b/board/prism/ec.tasklist @@ -10,5 +10,5 @@ TASK_ALWAYS_RO(RWSIG, rwsig_task, NULL, 1280) \ TASK_ALWAYS (HOOKS, hook_task, NULL, 1024) \ TASK_ALWAYS_RW(RGBKBD, rgbkbd_task, NULL, 2048) \ - TASK_ALWAYS_RW(HOSTCMD, host_command_task, NULL, 1024) \ + TASK_ALWAYS (HOSTCMD, host_command_task, NULL, 1024) \ TASK_ALWAYS (CONSOLE, console_task, NULL, 1024) -- cgit v1.2.1