diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-01-25 21:44:09 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-04-19 16:30:23 +0000 |
commit | 2e8f4ccfe636fcb0ccd62aee503aa2320c83b6ea (patch) | |
tree | 69269ce6522780b62393167ac2630f7f8341526b /util/ectool/ec.h | |
parent | 51895d183861234db9500bd1ee33634776e91e93 (diff) | |
download | coreboot-2e8f4ccfe636fcb0ccd62aee503aa2320c83b6ea.tar.xz |
ectool: Add an option to get and use EC ports from /proc/ioports
There are boards that don't use ports 0x62 and 0x66 for EC, e.g. Dell
Latitude E6230 uses 0x930 and 0x934.
Change-Id: Ie3005f5cd6e37206ef187267b0542efdeb26b3af
Signed-off-by: Iru Cai <mytbk920423@gmail.com>
Reviewed-on: https://review.coreboot.org/23430
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'util/ectool/ec.h')
-rw-r--r-- | util/ectool/ec.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/util/ectool/ec.h b/util/ectool/ec.h index 4f65f60d99..fd062356d0 100644 --- a/util/ectool/ec.h +++ b/util/ectool/ec.h @@ -16,9 +16,6 @@ #ifndef _EC_H #define _EC_H -#define EC_DATA 0x62 -#define EC_SC 0x66 - /* EC_SC input */ #define EC_SMI_EVT (1 << 6) // 1: SMI event pending #define EC_SCI_EVT (1 << 5) // 1: SCI event pending @@ -47,4 +44,5 @@ uint8_t ec_ext_read(uint16_t addr); int ec_ext_write(uint16_t addr, uint8_t data); uint8_t ec_idx_read(uint16_t addr); uint8_t ec_query(void); +int get_ec_ports(void); #endif |