diff options
author | Duncan Laurie <dlaurie@google.com> | 2017-06-17 23:11:29 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-20 02:31:49 -0700 |
commit | ced1b4f90a1e1c28f45b152c3f17675f32233623 (patch) | |
tree | 73edd697a84434454b0d730b6efd7e4c439f2e4d /include/ec_commands.h | |
parent | 1442cbdebb85f5fbd501feeabd3d85ac5ab0af5f (diff) | |
download | chrome-ec-ced1b4f90a1e1c28f45b152c3f17675f32233623.tar.gz |
ec_commands: Fix portability issues
Recent changes broke the portability of this header file.
Fix the ACPI guards so it can be used in coreboot.
BUG=b:36024430
BRANCH=none
TEST=make -j buildall (as usual many haven boards fail)
Change-Id: I0d737e7aad7ead90289b43db09352092ef7e3e98
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/539135
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index a60ed65729..61bfa345fe 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -8,7 +8,9 @@ #ifndef __CROS_EC_EC_COMMANDS_H #define __CROS_EC_EC_COMMANDS_H +#ifndef __ACPI__ #include <stdint.h> +#endif /* * Include common.h for CONFIG_HOSTCMD_ALIGNED, if it's defined. This @@ -4178,8 +4180,6 @@ struct __ec_align4 ec_params_rwsig_action { uint32_t action; }; -#endif /* !__ACPI__ */ - /*****************************************************************************/ /* The command range 0x200-0x2FF is reserved for Rotor. */ @@ -4369,4 +4369,6 @@ struct __ec_align4 ec_params_tp_frame_get { #define EC_LPC_ADDR_OLD_PARAM EC_HOST_CMD_REGION1 #define EC_OLD_PARAM_SIZE EC_HOST_CMD_REGION_SIZE +#endif /* !__ACPI__ */ + #endif /* __CROS_EC_EC_COMMANDS_H */ |