diff options
author | Simon Glass <sjg@chromium.org> | 2019-09-25 08:56:24 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-10-08 13:57:44 +0800 |
commit | e37d963ec80351e51c3b0832d9306bd91b1dafbf (patch) | |
tree | a8988f0c734086d3c73ae7e19352866d57281728 /include/ec_commands.h | |
parent | fd42948fc9868207573992eaabf4f3e8144a3d1e (diff) | |
download | u-boot-e37d963ec80351e51c3b0832d9306bd91b1dafbf.zip u-boot-e37d963ec80351e51c3b0832d9306bd91b1dafbf.tar.gz u-boot-e37d963ec80351e51c3b0832d9306bd91b1dafbf.tar.bz2 |
cros_ec: Add MEC_EMI_BASE and size to the header file
Provide these values which are part of the EC interface now.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 392c1f1..444ba61 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -71,6 +71,10 @@ #define EC_LPC_CMDR_SCI (1 << 5) /* SCI event is pending */ #define EC_LPC_CMDR_SMI (1 << 6) /* SMI event is pending */ +/* MEC uses 0x800/0x804 as register/index pair, thus an 8-byte resource */ +#define MEC_EMI_BASE 0x800 +#define MEC_EMI_SIZE 8 + #define EC_LPC_ADDR_MEMMAP 0x900 #define EC_MEMMAP_SIZE 255 /* ACPI IO buffer max is 255 bytes */ #define EC_MEMMAP_TEXT_MAX 8 /* Size of a string in the memory map */ |