aboutsummaryrefslogtreecommitdiff
path: root/util/ectool/ec.h
diff options
context:
space:
mode:
authorAnton Kochkov <anton.kochkov@gmail.com>2010-06-29 21:13:20 +0000
committerStefan Reinauer <stepan@openbios.org>2010-06-29 21:13:20 +0000
commit7e59f769ef02599a6e88df7443780727dc64e3ca (patch)
tree0107a088d81e0577899e47265ab64cc61afbf3a0 /util/ectool/ec.h
parent9a82eebe1a60ed5e49fbfc14cbe006c320846f01 (diff)
Add support to extended EC series
Signed-off-by: Anton Kochkov <anton.kochkov@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5650 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/ectool/ec.h')
-rw-r--r--util/ectool/ec.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/util/ectool/ec.h b/util/ectool/ec.h
index 7400778117..94ddbf893b 100644
--- a/util/ectool/ec.h
+++ b/util/ectool/ec.h
@@ -22,8 +22,8 @@
#include <stdint.h>
-#define EC_DATA 0x62
-#define EC_SC 0x66
+#define EC_DATA 0x62
+#define EC_SC 0x66
/* EC_SC input */
#define EC_SMI_EVT (1 << 6) // 1: SMI event pending
@@ -40,12 +40,16 @@
#define BE_EC 0x82 // Burst Enable Embedded Controller
#define BD_EC 0x83 // Burst Disable Embedded Controller
#define QR_EC 0x84 // Query Embedded Controller
+#define RX_EC 0xf0 // Read Extended operation
+#define WX_EC 0xf1 // Write Extended operation
int send_ec_command(uint8_t command);
int send_ec_data(uint8_t data);
int send_ec_data_nowait(uint8_t data);
uint8_t recv_ec_data(void);
uint8_t ec_read(uint8_t addr);
-
+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);
#endif