diff options
author | Jett Rink <jettrink@chromium.org> | 2018-05-21 10:22:55 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-22 21:56:40 -0700 |
commit | 8f6fff795bdfff6e98395b5aa3fc9127fa5748c1 (patch) | |
tree | cc9cb57f2b69300975b4691c3fcd329e77c831d5 /common/host_command.c | |
parent | df06639b1d4fd2798e577f9aead6bc4495d5f3b5 (diff) | |
download | chrome-ec-8f6fff795bdfff6e98395b5aa3fc9127fa5748c1.tar.gz |
lpc/espi: convert remaning CONFIG_LPC to CONFIG_HOSTCMD_X86
We have converted all LPC-only configs to HOSTCMD_LPC so the remaining
CONFIG_LPC defines represent the common case.
BRANCH=none
BUG=chromium:818804
TEST=Full stack builds and works on yorp (espi) and grunt (lpc)
Change-Id: Iba9a48f2cab12fadd0d9ab8eab0d5d5476eab238
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1067503
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/host_command.c')
-rw-r--r-- | common/host_command.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/host_command.c b/common/host_command.c index 0900d9e1d4..f80f43a4c5 100644 --- a/common/host_command.c +++ b/common/host_command.c @@ -36,7 +36,7 @@ static struct host_cmd_handler_args *pending_args; /* Verify Boot Mode */ static int g_vboot_mode; -#ifndef CONFIG_LPC +#ifndef CONFIG_HOSTCMD_X86 /* * Simulated memory map. Must be word-aligned, because some of the elements * in the memory map are words. @@ -91,7 +91,7 @@ static uint32_t hc_suppressed_cnt[ARRAY_SIZE(hc_suppressed_cmd)]; uint8_t *host_get_memmap(int offset) { -#ifdef CONFIG_LPC +#ifdef CONFIG_HOSTCMD_X86 return lpc_get_memmap_range() + offset; #else return host_memmap + offset; @@ -520,7 +520,7 @@ DECLARE_HOST_COMMAND(EC_CMD_READ_TEST, host_command_read_test, EC_VER_MASK(0)); -#ifndef CONFIG_LPC +#ifndef CONFIG_HOSTCMD_X86 /* * Host command to read memory map is not needed on LPC, because LPC can * directly map the data to the host's memory space. |