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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user