summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2022-10-14 13:25:23 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-17 20:19:09 +0000
commitf67f633c449c854086080763acf6e8e44dffb8f1 (patch)
tree5fde3c57728722eb1063505d53fdd53cc4ce74a7
parent9238aa539fafcad96df20dde6a75059f90517f41 (diff)
downloadchrome-ec-f67f633c449c854086080763acf6e8e44dffb8f1.tar.gz
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 <dnojiri@chromium.org> Change-Id: If06e5bd39f9859f11770d4f928e01beebc162a94 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3956544 Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r--board/prism/board.h8
-rw-r--r--board/prism/ec.tasklist2
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)