From 62398117f06e1654692823cc77eb8ef69598c3fb Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Tue, 6 Mar 2012 12:08:52 -0800 Subject: [PATCH] Add EC status bit definitions These bits are as per definition in "Chrome EC LPC Communication" document. BUG=chrome-os-partner:8351 TEST=manual . tested in concert with coreboot modifications introducing the EC command implementation Change-Id: I46d5795e06854e34584132c7fdb37e29150ce179 Signed-off-by: Vadim Bendebury --- include/lpc_commands.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/lpc_commands.h b/include/lpc_commands.h index 6ffa1253c1..38b24a31b3 100644 --- a/include/lpc_commands.h +++ b/include/lpc_commands.h @@ -27,6 +27,15 @@ #define EC_LPC_ADDR_USER_PARAM 0x880 #define EC_LPC_PARAM_SIZE 128 /* Size of each param area in bytes */ +/* EC command register bit functions */ +#define EC_LPC_CMDR_DATA (1 << 0) +#define EC_LPC_CMDR_PENDING (1 << 1) +#define EC_LPC_CMDR_BUSY (1 << 2) +#define EC_LPC_CMDR_CMD (1 << 3) +#define EC_LPC_CMDR_ACPI_BRST (1 << 4) +#define EC_LPC_CMDR_SCI (1 << 5) +#define EC_LPC_CMDR_SMI (1 << 6) + #define EC_LPC_ADDR_MEMMAP 0x900 #define EC_LPC_MEMMAP_SIZE 256