summaryrefslogtreecommitdiff
path: root/util/ectool/ec.h
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2015-02-06 22:27:33 +0100
committerPeter Stuge <peter@stuge.se>2015-04-08 08:41:59 +0200
commit0edf419852501583985475ae7084e508dc66eb8f (patch)
tree8a8eae64beefa9ad9884c7fd6cabfee8e2f999ac /util/ectool/ec.h
parent46ca3a55344b326553358b5119cb8a342a493ed4 (diff)
downloadcoreboot-0edf419852501583985475ae7084e508dc66eb8f.tar.xz
ectool: add query function to ectool
`ectool -q` - Query the EC IRQ byte. Should return 0x00 otherwise the IRQ handler is usally broken or disabled. Tested-on: Lenovo X201t Change-Id: I0b8c2dbcf38d2eab89d0fbea05795759c4517f6d Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Reviewed-on: http://review.coreboot.org/8382 Tested-by: build bot (Jenkins) Reviewed-by: Nicolas Reinecke <nr@das-labor.org> Reviewed-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'util/ectool/ec.h')
-rw-r--r--util/ectool/ec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/ectool/ec.h b/util/ectool/ec.h
index a7b10e4324..f25a3d92cb 100644
--- a/util/ectool/ec.h
+++ b/util/ectool/ec.h
@@ -50,4 +50,5 @@ int ec_write(uint8_t addr, uint8_t data);
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);
#endif