diff options
Diffstat (limited to 'src/ec/google/chromeec/ec_lpc.c')
-rw-r--r-- | src/ec/google/chromeec/ec_lpc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/ec_lpc.c b/src/ec/google/chromeec/ec_lpc.c index 9d1121bc6f..003a5f259e 100644 --- a/src/ec/google/chromeec/ec_lpc.c +++ b/src/ec/google/chromeec/ec_lpc.c @@ -364,6 +364,12 @@ static int google_chromeec_command_v1(struct chromeec_command *cec_command) return 0; } +/* Return the byte of EC switch states */ +uint8_t google_chromeec_get_switches(void) +{ + return read_byte(EC_LPC_ADDR_MEMMAP + EC_MEMMAP_SWITCHES); +} + #ifdef __PRE_RAM__ int google_chromeec_command(struct chromeec_command *cec_command) |