]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/cros_ec_message.h
configs: ls1028a: Enable DM support for pcf2127 rtc
[thirdparty/u-boot.git] / include / cros_ec_message.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
88364387
HT
2/*
3 * Chromium OS Matrix Keyboard Message Protocol definitions
4 *
5 * Copyright (c) 2012 The Chromium OS Authors.
88364387
HT
6 */
7
8#ifndef _CROS_MESSAGE_H
9#define _CROS_MESSAGE_H
10
11/*
12 * Command interface between EC and AP, for LPC, I2C and SPI interfaces.
13 *
14 * This is copied from the Chromium OS Open Source Embedded Controller code.
15 */
16enum {
17 /* The header byte, which follows the preamble */
18 MSG_HEADER = 0xec,
19
20 MSG_HEADER_BYTES = 3,
21 MSG_TRAILER_BYTES = 2,
22 MSG_PROTO_BYTES = MSG_HEADER_BYTES + MSG_TRAILER_BYTES,
23
24 /* Max length of messages */
836bb6e8 25 MSG_BYTES = EC_PROTO2_MAX_PARAM_SIZE + MSG_PROTO_BYTES,
88364387
HT
26};
27
28#endif