Skip to content
Snippets Groups Projects
Commit f1269925 authored by Simon Glass's avatar Simon Glass
Browse files

x86: cros_ec: Update LPC driver for new cros_ec header


There was a minor rename of one of the defines, so update the driver.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent ca42d3f7
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ int cros_ec_lpc_command(struct cros_ec_dev *dev, uint8_t cmd, int cmd_version, ...@@ -54,7 +54,7 @@ int cros_ec_lpc_command(struct cros_ec_dev *dev, uint8_t cmd, int cmd_version,
int csum; int csum;
int i; int i;
if (dout_len > EC_HOST_PARAM_SIZE) { if (dout_len > EC_PROTO2_MAX_PARAM_SIZE) {
debug("%s: Cannot send %d bytes\n", __func__, dout_len); debug("%s: Cannot send %d bytes\n", __func__, dout_len);
return -1; return -1;
} }
...@@ -159,7 +159,7 @@ int cros_ec_lpc_init(struct cros_ec_dev *dev, const void *blob) ...@@ -159,7 +159,7 @@ int cros_ec_lpc_init(struct cros_ec_dev *dev, const void *blob)
byte = 0xff; byte = 0xff;
byte &= inb(EC_LPC_ADDR_HOST_CMD); byte &= inb(EC_LPC_ADDR_HOST_CMD);
byte &= inb(EC_LPC_ADDR_HOST_DATA); byte &= inb(EC_LPC_ADDR_HOST_DATA);
for (i = 0; i < EC_HOST_PARAM_SIZE && (byte == 0xff); i++) for (i = 0; i < EC_PROTO2_MAX_PARAM_SIZE && (byte == 0xff); i++)
byte &= inb(EC_LPC_ADDR_HOST_PARAM + i); byte &= inb(EC_LPC_ADDR_HOST_PARAM + i);
if (byte == 0xff) { if (byte == 0xff) {
debug("%s: CROS_EC device not found on LPC bus\n", debug("%s: CROS_EC device not found on LPC bus\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment